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.1KB

12345678910111213141516171819202122232425262728293031323334353637
  1. BROWSERIFY = ./node_modules/.bin/browserify
  2. DEPLOY_DIR = libs
  3. GLOBAL_FLAGS = -x jquery -e
  4. NPM = npm
  5. OUTPUT_DIR = .
  6. UGLIFYJS = uglifyjs
  7. all: compile deploy clean uglify
  8. compile:FLAGS = $(GLOBAL_FLAGS)
  9. compile: app
  10. debug: compile-debug deploy clean
  11. compile-debug:FLAGS = -d $(GLOBAL_FLAGS)
  12. compile-debug: app
  13. app:
  14. $(NPM) update && $(BROWSERIFY) $(FLAGS) app.js -s APP -o $(OUTPUT_DIR)/app.bundle.js
  15. clean:
  16. rm -f $(OUTPUT_DIR)/*.bundle.js
  17. deploy:
  18. mkdir -p $(DEPLOY_DIR) && \
  19. cp $(OUTPUT_DIR)/*.bundle.js $(DEPLOY_DIR) && \
  20. ./bump-js-versions.sh && \
  21. ([ ! -x deploy-local.sh ] || ./deploy-local.sh)
  22. uglify:
  23. $(UGLIFYJS) -p relative libs/app.bundle.js -o libs/app.bundle.min.js --source-map libs/app.bundle.js.map --source-map-url=app.bundle.js.map
  24. source-package:
  25. mkdir -p source_package/jitsi-meet && \
  26. 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 && \
  27. (cd source_package ; tar cjf ../jitsi-meet.tar.bz2 jitsi-meet) && \
  28. rm -rf source_package