-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
70 lines (53 loc) · 1.08 KB
/
Makefile
File metadata and controls
70 lines (53 loc) · 1.08 KB
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
# rebar variables
REBAR3 := rebar3
ELVIS := _build/elvis/lib/elvis/_build/default/bin/elvis
.PHONY: all
.NOTPARALLEL: all
all: compile elvis test cover check doc format-verify
.PHONY: compile
compile:
$(REBAR3) compile
.PHONY: doc
doc:
$(REBAR3) ex_doc
.PHONY: check
check: xref hank dialyzer app_calls
.PHONY: dialyzer
dialyzer:
$(REBAR3) dialyzer
.PHONY: app_calls
app_calls:
$(REBAR3) check_app_calls
.PHONY: xref
xref:
$(REBAR3) xref
.PHONY: hank
hank:
@ERL_FLAGS="-enable-feature maybe_expr" $(REBAR3) hank
.PHONY: gradualizer
gradualizer:
$(REBAR3) gradualizer
.PHONY: test
test: eunit
.PHONY: eunit
eunit:
$(REBAR3) as test eunit --cover
.PHONY: cover
cover:
$(REBAR3) as test cover --verbose
.PHONY: clean
clean:
$(REBAR3) clean
rm -rf _build
.PHONY: format
format:
@ERL_FLAGS="-enable-feature maybe_expr" $(REBAR3) format
.PHONY: format-verify
format-verify:
@ERL_FLAGS="-enable-feature maybe_expr" $(REBAR3) format --verify
.PHONY: elvis
elvis: $(ELVIS)
$(ELVIS) rock -V
$(ELVIS):
$(REBAR3) as elvis compile
cd _build/elvis/lib/elvis && $(REBAR3) escriptize