-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
66 lines (52 loc) · 891 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
REBAR := ./rebar
.PHONY: \
all \
clean_all \
clean_app \
compile_all \
compile_app \
deps \
deps_get \
deps_update \
dialyze \
dialyzer_plt_build \
test \
travis_ci
all: \
travis_ci \
dialyze
travis_ci: \
clean_all \
deps_get \
compile_all \
test
deps_get:
@$(REBAR) get-deps
deps_update:
@$(REBAR) update-deps
deps: \
deps_get \
deps_update
compile_all:
$(REBAR) compile skip_deps=false
compile_app:
$(REBAR) compile skip_deps=true
clean_all:
$(REBAR) clean skip_deps=false
clean_app:
$(REBAR) clean skip_deps=true
dialyze:
@dialyzer $(shell \
find . -name '*.beam' \
| grep -v deps/meck/ \
)
dialyzer_plt_build:
@dialyzer \
--build_plt \
--apps $(shell ls $(shell \
erl -eval 'io:format(code:lib_dir()), init:stop().' -noshell) \
| grep -v interface \
| sed -e 's/-[0-9.]*//' \
)
test:
@$(REBAR) ct skip_deps=true --verbose=1