-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
51 lines (34 loc) · 970 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
BASE=$(abspath .)
REBAR ?= ./rebar
APP_DIR=$(BASE)/apps
.PHONY: all compile clean cleanall test dep update
compile:
$(REBAR) compile
compile-app-only:
$(REBAR) compile skip_deps=true
all: dep compile
dep:
$(REBAR) get-deps
update:
$(REBAR) update
clean: clean-test
$(REBAR) clean
cleanall: clean-dep clean-files clean
test: eunit ct
xref:
@echo "=================== Xref =============================="
$(REBAR) xref skip_apps=build skip_deps=true
eunit:
$(REBAR) eunit skip_apps=build skip_deps=true
ct:
@echo "=================== Common Test ======================="
$(REBAR) ct skip_apps=build skip_deps=true
clean-dep:
$(REBAR) delete-deps
clean-test:
$(REBAR) clean skip_apps=build skip_deps=true
clean-files:
find . -name '*~' -exec rm -f -- \{\} \;
find . -name 'erl_crash.dump' -exec rm -f -- \{\} \;
find . -name 'MnesiaCore.*' -type f -exec rm -rf -- \{\} \;
find $(APP_DIR) -depth -type d -name 'logs' -exec rm -rf -- \{\} \;