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