-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathMakefile
42 lines (31 loc) · 829 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
42
RUN := erl -pa ebin -pa deps/*/ebin -smp enable -s lager -boot start_sasl ${ERL_ARGS}
all:
rebar get-deps && rebar compile
erl:
rebar compile
clean:
rebar clean
clean_logs:
rm -rf log*
build_plt: erl
dialyzer --verbose --build_plt --apps kernel stdlib erts compiler hipe crypto \
edoc gs syntax_tools --output_plt ~/.et.plt -pa deps/*/ebin ebin
analyze: erl
dialyzer --verbose -pa deps/*/ebin --plt ~/.et.plt -Werror_handling ebin
xref: all
rebar skip_deps=true --verbose xref
shell: erl
if [ -n "${NODE}" ]; then ${RUN} -name ${NODE}@`hostname`; \
else ${RUN}; \
fi
run: erl
if [ -n "${NODE}" ]; then ${RUN} -name ${NODE}@`hostname` -s et; \
else ${RUN} -s et; \
fi
test: erl
mkdir -p log/ct
rebar skip_deps=true ct -vvv
open log/ct/index.html
doc: erl
rebar skip_deps=true doc
open doc/index.html