mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
Added Makefile
This commit is contained in:
committed by
Alexander.Trofimov
parent
1dda4d96e2
commit
631e2e85e1
24
Makefile
Normal file
24
Makefile
Normal 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)
|
||||
Reference in New Issue
Block a user