Makes the default make target execute "deploy" and "clean".

This commit is contained in:
Boris Grozev 2015-01-22 17:36:12 +02:00
parent d2453b1f1f
commit 447d8f5677
1 changed files with 8 additions and 5 deletions

View File

@ -6,11 +6,15 @@ MODULES = $(MODULE_SUBDIRS:$(MODULE_DIR)/%/=%)
OUTPUT_DIR = . OUTPUT_DIR = .
DEPLOY_DIR = libs/modules DEPLOY_DIR = libs/modules
all:FLAGS = $(GLOBAL_FLAGS) all: compile deploy clean
all:$(MODULES)
debug:FLAGS = -d $(GLOBAL_FLAGS) compile:FLAGS = $(GLOBAL_FLAGS)
debug:$(MODULES) compile:$(MODULES)
debug: compile-debug deploy clean
compile-debug:FLAGS = -d $(GLOBAL_FLAGS)
compile-debug:$(MODULES)
$(MODULES): *.js $(MODULES): *.js
$(BROWSERIFY) $(FLAGS) $(MODULE_DIR)/$@/$@.js -s $@ -o $(OUTPUT_DIR)/$@.bundle.js $(BROWSERIFY) $(FLAGS) $(MODULE_DIR)/$@/$@.js -s $@ -o $(OUTPUT_DIR)/$@.bundle.js
@ -20,4 +24,3 @@ clean:
deploy: deploy:
@mkdir -p $(DEPLOY_DIR) && cp $(OUTPUT_DIR)/*.bundle.js $(DEPLOY_DIR) @mkdir -p $(DEPLOY_DIR) && cp $(OUTPUT_DIR)/*.bundle.js $(DEPLOY_DIR)