Debian Codegraph @

Makefile

raw
1 # See LICENSE for licensing information.
2
3 DIALYZER = dialyzer
4 REBAR = rebar
5 APPNAME = goldrush
6
7 all: app
8
9 app: deps
10 @$(REBAR) compile
11
12 deps:
13 @$(REBAR) get-deps
14
15 clean:
16 @$(REBAR) clean
17 rm -f test/*.beam
18 rm -f erl_crash.dump
19
20 tests: clean app eunit ct
21
22 eunit:
23 @$(REBAR) -C rebar.test.config eunit skip_deps=true
24
25 ct:
26 @$(REBAR) -C rebar.test.config ct skip_deps=true
27
28 build-plt:
29 @$(DIALYZER) --build_plt --output_plt .$(APPNAME)_dialyzer.plt \
30 --apps kernel stdlib sasl inets crypto public_key ssl compiler syntax_tools
31
32 dialyze:
33 @$(DIALYZER) --src src --plt .$(APPNAME)_dialyzer.plt --no_native \
34 -Werror_handling -Wrace_conditions -Wunmatched_returns # -Wunderspecs
35
36 docs:
37 @$(REBAR) doc skip_deps=true