-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
57 lines (43 loc) · 881 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
REBAR := $(CURDIR)/rebar3
.PHONY: all
all: es
$(REBAR):
@curl -k -f -L "https://github.com/emqx/rebar3/releases/download/3.19.0-emqx-6/rebar3" -o ./rebar3
@chmod +x ./rebar3
.PHONY: compile
compile: $(REBAR)
$(REBAR) compile
.PHONY: clean
clean: distclean
.PHONY: distclean
distclean:
@rm -rf rebar3 _build erl_crash.dump rebar3.crashdump src/hocon_parser.erl src/hocon_scanner.erl
.PHONY: xref
xref:
$(REBAR) xref
.PHONY: eunit
eunit: compile
$(REBAR) eunit -v -c
$(REBAR) cover
.PHONY: ct
ct: compile
$(REBAR) as test ct -v
cover:
$(REBAR) cover
.PHONY: dialyzer
dialyzer: compile
$(REBAR) dialyzer
.PHONY: es
es: export HOCON_ESCRIPT = true
es: $(REBAR)
$(REBAR) as es escriptize
.PHONY: elvis
elvis:
./scripts/elvis-check.sh
.PHONY: fmt erlfmt
fmt: erlfmt
erlfmt: $(REBAR)
$(REBAR) fmt -w
.PHONY: erlfmt-check
erlfmt-check: $(REBAR)
$(REBAR) fmt -c