jiti-meet/Makefile

26 lines
545 B
Makefile
Raw Normal View History

2015-10-27 19:30:02 +00:00
BROWSERIFY = ./node_modules/.bin/browserify
2015-08-25 03:49:39 +00:00
GLOBAL_FLAGS =
2014-12-17 16:21:25 +00:00
OUTPUT_DIR = .
2015-08-25 03:49:39 +00:00
DEPLOY_DIR = ../../jitsi-meet
2014-12-17 16:21:25 +00:00
2015-08-25 03:49:39 +00:00
all: compile deploy
2014-12-17 16:21:25 +00:00
compile:FLAGS = $(GLOBAL_FLAGS)
compile: app
2015-08-25 03:49:39 +00:00
debug: compile-debug deploy
compile-debug:FLAGS = -d $(GLOBAL_FLAGS)
compile-debug: app
2014-12-17 16:21:25 +00:00
app:
2015-08-25 03:49:39 +00:00
$(BROWSERIFY) $(FLAGS) JitsiMeetJS.js -s JitsiMeetJS -o $(OUTPUT_DIR)/lib-jitsi-meet.js
2014-12-17 16:21:25 +00:00
clean:
2015-08-25 03:49:39 +00:00
rm -f $(OUTPUT_DIR)/lib-jitsi-meet.js
2014-12-17 16:21:25 +00:00
deploy:
mkdir -p $(DEPLOY_DIR) && \
2015-08-25 03:49:39 +00:00
cp $(OUTPUT_DIR)/lib-jitsi-meet.js $(DEPLOY_DIR) && \
([ ! -x deploy-local.sh ] || ./deploy-local.sh)