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 453B

123456789101112131415161718192021222324
  1. BROWSERIFY = browserify
  2. GLOBAL_FLAGS = -x jquery -e
  3. OUTPUT_DIR = .
  4. DEPLOY_DIR = libs
  5. all: compile deploy clean
  6. compile:FLAGS = $(GLOBAL_FLAGS)
  7. compile: app
  8. debug: compile-debug deploy clean
  9. compile-debug:FLAGS = -d $(GLOBAL_FLAGS)
  10. compile-debug: app
  11. app:
  12. $(BROWSERIFY) $(FLAGS) app.js -s APP -o $(OUTPUT_DIR)/app.bundle.js
  13. clean:
  14. @rm -f $(OUTPUT_DIR)/*.bundle.js
  15. deploy:
  16. @mkdir -p $(DEPLOY_DIR) && cp $(OUTPUT_DIR)/*.bundle.js $(DEPLOY_DIR)