Added Makefile

This commit is contained in:
agolybev
2016-03-24 12:48:39 +03:00
committed by Alexander.Trofimov
parent 1dda4d96e2
commit 631e2e85e1

24
Makefile Normal file
View File

@ -0,0 +1,24 @@
GRUNT = grunt
GRUNT_FLAGS = --no-color -v
OUTPUT_DIR = build
OUTPUT = $(OUTPUT_DIR)
WEBAPPS_DIR = web-apps
WEBAPPS = $(OUTPUT)/$(WEBAPPS_DIR)
GRUNT_FILES = web-apps/sdkjs/build/deploy/Gruntfile.js.out web-apps/build/Gruntfile.js.out
all: $(WEBAPPS)
$(WEBAPPS): $(GRUNT_FILES)
mkdir -p $(OUTPUT)/$(WEBAPPS_DIR) && \
cp -r -t $(OUTPUT)/$(WEBAPPS_DIR) $(WEBAPPS_DIR)/deploy/**
$(GRUNT_FILES):
cd $(@D) && \
npm install && \
$(GRUNT) $(GRUNT_FLAGS)
echo "Done" > $@
clean:
rm -f $(GRUNT_FILES)