-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (38 loc) · 885 Bytes
/
Makefile
File metadata and controls
54 lines (38 loc) · 885 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
51
52
53
54
DEPS =
all: compile all_tests
all_tests: dialyzer eunit
use_locked_config = $(wildcard USE_REBAR_LOCKED)
ifeq ($(use_locked_config),USE_REBAR_LOCKED)
rebar_config = rebar.config.lock
else
rebar_config = rebar.config
endif
REBAR = rebar -C $(rebar_config)
clean:
$(REBAR) clean
allclean: depclean clean
depclean:
@rm -rf deps
compile: $(DEPS)
$(REBAR) compile
compile_app:
$(REBAR) skip_deps=true compile
plt_clean:
@dialyzer --build_plt --apps erts kernel stdlib
plt:
@dialyzer --add_to_plt deps/*/ebin
dialyze:
dialyzer --src -Wunmatched_returns -Werror_handling -Wrace_conditions -r src -I deps
dialyzer:
@rm -rf .eunit
@dialyzer -Wrace_conditions -Wunderspecs -r src --src
$(DEPS):
$(REBAR) get-deps
eunit: compile
$(REBAR) eunit
test: eunit
tags:
@find src deps -name "*.[he]rl" -print | etags -
distclean: relclean
@rm -rf deps
$(REBAR) clean