Executes a local (git-ignored) script on "make deploy".

This commit is contained in:
Boris Grozev
2015-08-10 13:25:21 -05:00
parent 6ca1e131af
commit deaff6af5b
2 changed files with 6 additions and 2 deletions
+1
View File
@@ -3,3 +3,4 @@ node_modules
.idea/
*.iml
.*.tmp
deploy-local.sh
+5 -2
View File
@@ -18,7 +18,10 @@ app:
$(NPM) update && $(BROWSERIFY) $(FLAGS) app.js -s APP -o $(OUTPUT_DIR)/app.bundle.js
clean:
@rm -f $(OUTPUT_DIR)/*.bundle.js
rm -f $(OUTPUT_DIR)/*.bundle.js
deploy:
@mkdir -p $(DEPLOY_DIR) && cp $(OUTPUT_DIR)/*.bundle.js $(DEPLOY_DIR) && ./bump-js-versions.sh
mkdir -p $(DEPLOY_DIR) && \
cp $(OUTPUT_DIR)/*.bundle.js $(DEPLOY_DIR) && \
./bump-js-versions.sh && \
([ ! -x deploy-local.sh ] || ./deploy-local.sh)