Commit c62941e8 authored by agolybev's avatar agolybev

Added Makefile

parent 5df78568
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