Commit | Line | Data |
---|---|---|
caf75ed8 SK |
1 | REBAR := ./rebar --config rebar_test_build.config |
2 | ||
3 | .PHONY: \ | |
4 | all \ | |
5 | clean_all \ | |
6 | clean_app \ | |
7 | compile_all \ | |
8 | compile_app \ | |
9 | deps \ | |
10 | deps_get \ | |
11 | deps_update \ | |
12 | dialyze \ | |
13 | dialyzer_blt_build | |
14 | ||
15 | all: \ | |
16 | clean_all \ | |
17 | deps_get \ | |
c5111006 SK |
18 | compile_all \ |
19 | dialyze | |
caf75ed8 SK |
20 | |
21 | deps_get: | |
22 | @$(REBAR) get-deps | |
23 | ||
24 | deps_update: | |
25 | @$(REBAR) update-deps | |
26 | ||
27 | deps: \ | |
28 | deps_get \ | |
29 | deps_update | |
30 | ||
31 | compile_all: | |
32 | $(REBAR) compile skip_deps=false | |
33 | ||
34 | compile_app: | |
35 | $(REBAR) compile skip_deps=true | |
36 | ||
37 | clean_all: | |
38 | $(REBAR) clean skip_deps=false | |
39 | ||
40 | clean_app: | |
41 | $(REBAR) clean skip_deps=true | |
42 | ||
43 | dialyze: | |
44 | @dialyzer deps/*/ebin ebin | |
45 | ||
46 | dialyzer_blt_build: | |
47 | @dialyzer \ | |
48 | --build_plt \ | |
49 | --apps $(shell ls $(shell \ | |
50 | erl -eval 'io:format(code:lib_dir()), init:stop().' -noshell) \ | |
51 | | grep -v interface \ | |
52 | | sed -e 's/-[0-9.]*//' \ | |
53 | ) |