forked from rpl/yaterl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
69 lines (52 loc) · 1.27 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
REBAR=./build-tools/rebar
PLANTUML=plantuml
RESIZE_IMGS=./build-tools/resize_images
default: release
help:
@echo "YATErl building tool."
@echo " ./make {compile|clean}"
@echo
@echo " ./make test"
@echo
@echo " ./make doc"
@echo
@echo " ./make {release|clean-release}"
@echo
test: FORCE compile
${REBAR} ct
compile:
${REBAR} compile
clean:
${REBAR} clean
doc: FORCE
${REBAR} doc
make doc-img
doc-img:
${PLANTUML} doc-src/plantuml/*.txt
${RESIZE_IMGS} doc/img/*.png
release: release-yaterl release-devtool release-examples
clean-release: clean clean-devtool clean-examples
rm -rf ./builds
release-yaterl: compile
${REBAR} install target=./builds/
release-devtool: compile-devtool
mkdir -p builds
make -C devtool release
release-examples: compile-examples
mkdir -p builds/examples
make -C examples/route release
make -C examples/resolver release
make -C examples/registration release
compile-devtool:
make -C devtool compile
compile-examples: release-devtool
make -C examples/route compile
make -C examples/resolver compile
make -C examples/registration compile
clean-devtool:
make -C devtool clean
clean-examples:
make -C examples/route clean
make -C examples/resolver clean
make -C examples/registration clean
FORCE: