Commit 631e2e85 authored by agolybev's avatar agolybev Committed by Alexander.Trofimov

Added Makefile

parent 1dda4d96
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)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment