Updates the Makefile. It calls npm update before building the project.

pull/228/merge 416
George Politis 10 years ago
parent 5322ba086b
commit 2852740e71
  1. 3
      Makefile

@ -1,3 +1,4 @@
NPM = npm
BROWSERIFY = browserify
GLOBAL_FLAGS = -x jquery -e
OUTPUT_DIR = .
@ -14,7 +15,7 @@ compile-debug:FLAGS = -d $(GLOBAL_FLAGS)
compile-debug: app
app:
$(BROWSERIFY) $(FLAGS) app.js -s APP -o $(OUTPUT_DIR)/app.bundle.js
$(NPM) update && $(BROWSERIFY) $(FLAGS) app.js -s APP -o $(OUTPUT_DIR)/app.bundle.js
clean:
@rm -f $(OUTPUT_DIR)/*.bundle.js

Loading…
Cancel
Save