-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (34 loc) · 1.21 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
SECTIONS = \
src/about \
src/bulletin \
src/override \
src/version \
.DEFAULT_GOAL := all
all:
@echo "Build all ......................."
for dir in $(SECTIONS); do $(MAKE) -C $$dir || exit "$$?"; done
@echo "Build all finished successfully! ......"
mkdir -p output/
mkdir -p output/about/
cp src/about/index.html output/about/
mkdir -p output/bulletin/
cp src/bulletin/output.json output/bulletin/content.json
cp src/bulletin/output_mock_api.json output/bulletin/mock_api.json
cp src/bulletin/output_meta.json output/bulletin/meta.json
mkdir -p output/override/
cp src/override/override.json output/override/
cp src/override/override.*.json output/override/
mkdir -p output/version/
cp src/version/version.json output/version/
cp src/version/message.html output/version/
mkdir -p output/api/v1/ output/api/v2/
cp output/bulletin/mock_api.json output/api/v1/notice
cp output/bulletin/mock_api.json output/api/v2/notice
for dir in $(SECTIONS); do $(MAKE) -C $$dir clean || exit "$$?"; done
@echo "Copy to output dir finished successfully! ......"
.PHONY : clean
clean:
for dir in $(SECTIONS); do $(MAKE) -C $$dir clean || exit "$$?"; done
rm -rf output/
installRequirements:
pip install -r requirements.txt