jiti-meet/Makefile

38 lines
1.0 KiB
Makefile
Raw Normal View History

NPM = npm
2014-12-17 16:21:25 +00:00
BROWSERIFY = browserify
GLOBAL_FLAGS = -x jquery -e
2014-12-17 16:21:25 +00:00
OUTPUT_DIR = .
DEPLOY_DIR = libs
2014-12-17 16:21:25 +00:00
all: compile deploy clean
2014-12-17 16:21:25 +00:00
compile:FLAGS = $(GLOBAL_FLAGS)
compile: app
debug: compile-debug deploy clean
compile-debug:FLAGS = -d $(GLOBAL_FLAGS)
compile-debug: app
2014-12-17 16:21:25 +00:00
app:
$(NPM) update && $(BROWSERIFY) $(FLAGS) app.js -s APP -o $(OUTPUT_DIR)/app.bundle.js
2014-12-17 16:21:25 +00:00
clean:
rm -f $(OUTPUT_DIR)/*.bundle.js
2014-12-17 16:21:25 +00:00
deploy:
mkdir -p $(DEPLOY_DIR) && \
cp $(OUTPUT_DIR)/*.bundle.js $(DEPLOY_DIR) && \
./bump-js-versions.sh && \
([ ! -x deploy-local.sh ] || ./deploy-local.sh)
uglify:
uglifyjs libs/app.bundle.js -o libs/app.bundle.min.js --source-map libs/app.bundle.js.map
rm -f libs/app.bundle.js
source-package:
mkdir -p source_package/jitsi-meet && \
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 && \
(cd source_package ; tar cjf ../jitsi-meet.tar.bz2 jitsi-meet) && \
rm -rf source_package