forked from inaka/apns4erl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (34 loc) · 969 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
43
44
RUN := +Bc +K true -smp enable -pa ebin -s crypto -s inets -s ssl
all:
./rebar get-deps && ./rebar compile
compile:
./rebar compile
clean:
./rebar clean
build_plt: all
dialyzer --verbose --build_plt --apps kernel stdlib erts compiler hipe crypto \
edoc gs syntax_tools --output_plt ~/.apns4erl.plt
analyze: all
dialyzer --verbose --plt ~/.apns4erl.plt -Werror_handling ebin
xref: all
./rebar skip_deps=true --verbose xref
shell: all
if [ -f `hostname`.config ]; then\
erl -config `hostname` -boot start_sasl ${RUN};\
else\
erl -boot start_sasl ${RUN};\
fi
run: all
if [ -f `hostname`.config ]; then\
erl -config `hostname` -boot start_sasl ${RUN} -s apns;\
else\
erl -boot start_sasl ${RUN} -s apns;\
fi
test: all
if [ -f `hostname`.config ]; then\
erl -noshell -noinput -config `hostname` ${RUN} -run apns_tests main;\
else\
erl -noshell -noinput ${RUN} -run apns_tests main;\
fi
doc: compile
./rebar skip_deps=true doc