forked from qingliangcn/mgee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·42 lines (32 loc) · 874 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
35
36
37
38
39
40
41
SHELL := /bin/bash
.PHONY: all test edoc dialyzer clean proto
PLT=".dialyzer_plt"
all:
(cd src;$(MAKE))
(cd src/library;$(MAKE))
(cd src/game_mod;$(MAKE))
(cd test;$(MAKE))
proto:
@(cd scripts; $(SHELL) rebuild_proto.sh)
test:
(cd src;$(MAKE) TEST=true)
(cd src/library;$(MAKE) TEST=true)
(cd src/game_mod;$(MAKE) TEST=true)
(cd unittest;$(MAKE) TEST=true)
(erl -pa ./ebin -eval "eunit:test(\"./ebin/mgee_unittest_all.beam\",[verbose]), init:stop()")
comm_test:
(mkdir -p ./test/log)
(run_test -logdir ./test/log -dir ./test/)
edoc:
(mkdir -p ./edoc)
(cd src; $(MAKE) edoc)
plt:
(./scripts/gen_plt.sh -a sasl)
dialyzer: clean
(cd src;$(MAKE) DEBUG=true)
(dialyzer --plt $(PLT) -Werror_handling -Wrace_conditions -r .)
clean:
(cd src;$(MAKE) clean)
(cd src/library;$(MAKE) clean)
(cd src/game_mod;$(MAKE) clean)
(cd unittest;$(MAKE) clean)