You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 561B

123456789101112131415161718192021222324252627
  1. NPM = npm
  2. BROWSERIFY = browserify
  3. GLOBAL_FLAGS = -x jquery -e
  4. OUTPUT_DIR = .
  5. DEPLOY_DIR = libs
  6. all: compile deploy clean
  7. compile:FLAGS = $(GLOBAL_FLAGS)
  8. compile: app
  9. debug: compile-debug deploy clean
  10. compile-debug:FLAGS = -d $(GLOBAL_FLAGS)
  11. compile-debug: app
  12. app:
  13. $(NPM) update && $(BROWSERIFY) $(FLAGS) app.js -s APP -o $(OUTPUT_DIR)/app.bundle.js
  14. clean:
  15. rm -f $(OUTPUT_DIR)/*.bundle.js
  16. deploy:
  17. mkdir -p $(DEPLOY_DIR) && \
  18. cp $(OUTPUT_DIR)/*.bundle.js $(DEPLOY_DIR) && \
  19. ./bump-js-versions.sh && \
  20. ([ ! -x deploy-local.sh ] || ./deploy-local.sh)