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 \ | |
b0ab6ee2 SK |
13 | dialyzer_blt_build \ |
14 | test | |
caf75ed8 SK |
15 | |
16 | all: \ | |
17 | clean_all \ | |
18 | deps_get \ | |
c5111006 | 19 | compile_all \ |
b0ab6ee2 SK |
20 | dialyze \ |
21 | test | |
caf75ed8 SK |
22 | |
23 | deps_get: | |
24 | @$(REBAR) get-deps | |
25 | ||
26 | deps_update: | |
27 | @$(REBAR) update-deps | |
28 | ||
29 | deps: \ | |
30 | deps_get \ | |
31 | deps_update | |
32 | ||
33 | compile_all: | |
34 | $(REBAR) compile skip_deps=false | |
35 | ||
36 | compile_app: | |
37 | $(REBAR) compile skip_deps=true | |
38 | ||
39 | clean_all: | |
40 | $(REBAR) clean skip_deps=false | |
41 | ||
42 | clean_app: | |
43 | $(REBAR) clean skip_deps=true | |
44 | ||
45 | dialyze: | |
46 | @dialyzer deps/*/ebin ebin | |
47 | ||
48 | dialyzer_blt_build: | |
49 | @dialyzer \ | |
50 | --build_plt \ | |
51 | --apps $(shell ls $(shell \ | |
52 | erl -eval 'io:format(code:lib_dir()), init:stop().' -noshell) \ | |
53 | | grep -v interface \ | |
54 | | sed -e 's/-[0-9.]*//' \ | |
55 | ) | |
b0ab6ee2 SK |
56 | |
57 | test: | |
58 | @rebar ct skip_deps=true |