Makes the default make target execute "deploy" and "clean".
This commit is contained in:
parent
d2453b1f1f
commit
447d8f5677
13
Makefile
13
Makefile
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue