forked from inaka/worker_pool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (34 loc) · 929 Bytes
/
Makefile
File metadata and controls
46 lines (34 loc) · 929 Bytes
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
RUN := erl -pa ebin -pa deps/*/ebin -smp enable -s lager -boot start_sasl ${ERL_ARGS}
HOST := `hostname`
REBAR ?= './rebar'
all:
${REBAR} get-deps && ${REBAR} compile
erl:
${REBAR} skip_deps=true 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 ~/.wpool.plt -pa deps/*/ebin ebin
analyze: erl
dialyzer --verbose -pa deps/*/ebin --plt ~/.wpool.plt -Werror_handling ebin
xref: all
${REBAR} skip_deps=true --verbose xref
shell: erl
if [ -n "${NODE}" ]; then ${RUN} -name ${NODE}@${HOST}; \
else ${RUN}; \
fi
run: erl
if [ -n "${NODE}" ]; then ${RUN} -name ${NODE}@${HOST} -s wpool; \
else ${RUN} -s wpool; \
fi
test: erl
mkdir -p log/ct
${REBAR} skip_deps=true ct --verbose 3
open log/ct/index.html
doc: erl
${REBAR} skip_deps=true doc
erldocs: erl
erldocs . -o doc/