-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
59 lines (44 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
all: compile dialyzer test
###===================================================================
### build
###===================================================================
.PHONY: co compile es escriptize run
co:compile
compile:
./rebar3 compile
es:escriptize
escriptize: clean
./rebar3 escriptize
### clean
.PHONY: clean distclean
clean:
./rebar3 clean
distclean:
./rebar3 clean -a
###===================================================================
### test
###===================================================================
.PHONY: test eunit ct testclean
test: epmd dialyzer ct eunit
eunit: epmd
./rebar3 do eunit -d test/eunit -v
ct: epmd
./rebar3 do ct --dir test/ct -v --config test/ct/ct.config --sys_config config/test.config, cover
testclean:
@rm -fr _build/test
shell: epmd config
./rebar3 as test shell
config: epmd
#./tool.sh replace_config
dialyzer: epmd
./rebar3 do dialyzer
tar: epmd
rm -rf _build/prod
./rebar3 as prod release
./rebar3 as prod tar
###===================================================================
### other
###===================================================================
.PHONY: epmd
epmd:
@pgrep epmd 2> /dev/null > /dev/null || epmd -daemon || true