-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
76 lines (62 loc) · 1.1 KB
/
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
67
68
69
70
71
72
73
74
75
76
.PHONY: \
ci \
fresh-build \
deps \
deps-get \
deps-update \
select_plt \
compile \
compile_all \
test \
test_all \
clean \
clean_all \
dialyze
ci: \
deps \
compile_all \
remove_cover_spec_from_deps \
test
# A kludge to avoid the conflict of cover.spec files with Travis' rebar
remove_cover_spec_from_deps:
@find deps -name cover.spec -exec rm '{}' \;
select_plt:
@./plt/select.sh
fresh-build: \
clean_all \
deps \
compile_all
deps: \
deps-get \
deps-update
deps-get:
@rebar get-deps
deps-update:
@rebar update-deps
compile:
@rebar compile skip_deps=true
compile_all:
@rebar compile skip_deps=false
test:
@rebar ct skip_deps=true --verbose=0
test_all:
@rebar ct skip_deps=false --verbose=0
clean:
@rebar clean skip_deps=true
@rm -rf ebin/
clean_all:
@rebar clean skip_deps=false
@rm -rf ebin/
dialyze:
@dialyzer \
$(shell \
ls -1 src/*.erl \
| grep -v oauth1_http_header_authorization_lexer.erl \
| grep -v oauth1_http_header_authorization_parser.erl \
) \
$(shell \
ls -1 deps/*/src/*.erl \
| grep -v deps/meck \
| grep -v deps/proper \
) \
test/*.erl