forked from adorsys/xs2a
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (24 loc) · 870 Bytes
/
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
WORKDIR=${PWD}
# https://www.gnu.org/software/make/manual/make.html#Phony-Targets
.PHONY : clean usage pages
usage :
@echo "Use \"make clean\" or \"make pages\""
.PHONY : prepare_pages
prepare_pages:
mkdir -p pages/html/doc
bash -c "rsync -armR --include="*/" --include="*."{adoc,puml,png} --exclude="*" doc/ pages"
.PHONY : prepare_diagrams
prepare_diagrams: prepare_pages
cd pages/doc && plantuml **/*.puml -DPLANTUML_LIMIT_SIZE=8192
pages : prepare_pages prepare_diagrams
cd pages && asciidoctor --failure-level WARN -R doc -D html '**/*.adoc'
cd pages && rsync -amR --include="*/" --include="*.png" --exclude="*" doc/ html
cd pages && cd html/doc && rsync -amR --include="*/" --include="*.png" --exclude="*" . ..
cd pages && cd html && rm -rf doc
clean :
-rm -r pages
mvn clean
build: maven_build pages
maven_build:
mvn install
all: clean build