From 447d8f5677cb95420537d8c8cd0fa8607566fdfc Mon Sep 17 00:00:00 2001 From: Boris Grozev Date: Thu, 22 Jan 2015 17:36:12 +0200 Subject: [PATCH] Makes the default make target execute "deploy" and "clean". --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index d8a1350b5..60784b508 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,15 @@ MODULES = $(MODULE_SUBDIRS:$(MODULE_DIR)/%/=%) OUTPUT_DIR = . DEPLOY_DIR = libs/modules -all:FLAGS = $(GLOBAL_FLAGS) -all:$(MODULES) +all: compile deploy clean -debug:FLAGS = -d $(GLOBAL_FLAGS) -debug:$(MODULES) +compile:FLAGS = $(GLOBAL_FLAGS) +compile:$(MODULES) + +debug: compile-debug deploy clean + +compile-debug:FLAGS = -d $(GLOBAL_FLAGS) +compile-debug:$(MODULES) $(MODULES): *.js $(BROWSERIFY) $(FLAGS) $(MODULE_DIR)/$@/$@.js -s $@ -o $(OUTPUT_DIR)/$@.bundle.js @@ -20,4 +24,3 @@ clean: deploy: @mkdir -p $(DEPLOY_DIR) && cp $(OUTPUT_DIR)/*.bundle.js $(DEPLOY_DIR) -