-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (37 loc) · 697 Bytes
/
Makefile
File metadata and controls
50 lines (37 loc) · 697 Bytes
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
REBAR := rebar3
REBAR_CONFIG := rebar.config
APPS_OPT := apps=gen_tw
.DEFAULT_GOAL := all
.PHONY: all
all: deps compile
.PHONY: compile
compile:
$(REBAR) clean skip_deps=true
$(REBAR) compile verbose=1
.PHONY: rel
rel: compile
$(REBAR) generate -f
.PHONY: clean-all
clean-all: clean
$(REBAR) delete-deps
rm -f $(REBAR) $(REBAR_CONFIG_NEW) $(REBAR_BOOTSTRAP)
mv $(REBAR_CONFIG_O) $(REBAR_CONFIG)
.PHONY: clean
clean:
$(REBAR) clean
.PHONY: test
test: eunit
.PHONY: check
check: eunit
.PHONY: eunit
eunit: rebar.config
$(REBAR) eunit -v --dir="src,test"
.PHONY: deps
deps:
$(REBAR) deps
.PHONY: shell
shell:
$(REBAR) shell
.PHONY: doc
doc:
cd doc && make all