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 1.0KB

123456789101112131415161718192021222324252627282930313233343536
  1. NPM = npm
  2. BROWSERIFY = browserify
  3. GLOBAL_FLAGS = -x jquery -e
  4. OUTPUT_DIR = .
  5. DEPLOY_DIR = libs
  6. all: compile deploy clean uglify
  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)
  21. uglify:
  22. uglifyjs libs/app.bundle.js -o libs/app.bundle.min.js --source-map libs/app.bundle.js.map --source-map-url=app.bundle.js.map
  23. source-package:
  24. mkdir -p source_package/jitsi-meet && \
  25. cp -r analytics.js app.js css external_api.js favicon.ico fonts images index.html interface_config.js libs plugin.*html sounds title.html unsupported_browser.html LICENSE config.js lang source_package/jitsi-meet && \
  26. (cd source_package ; tar cjf ../jitsi-meet.tar.bz2 jitsi-meet) && \
  27. rm -rf source_package