Prevents 'make prod' from failing when auto-generated files do not change.

This commit is contained in:
Patrice Levesque
2016-02-15 10:18:34 -05:00
parent e1b8d80420
commit 5bd2f558bf

View File

@@ -26,7 +26,11 @@ prod:
grunt --stack build
git update-index --no-assume-unchanged $(CSS_FILES) $(JS_FILES) $(JS_LIB_FILES)
git add -f $(CSS_FILES) $(JS_FILES) $(JS_LIB_FILES)
git commit -m "(js/css) Update generated files"
@if ! git diff --quiet --exit-code; then \
git commit -m "(js/css) Update generated files"; \
else \
echo "Nothing to commit; skipping git-commit"; \
fi
git update-index --assume-unchanged $(CSS_FILES) $(JS_FILES) $(JS_LIB_FILES)
all: