Skip to content
Newer
Older
100644 53 lines (39 sloc) 1015 Bytes
0e63d5f @Vagabond Initial checkin
Vagabond authored Aug 11, 2011
1 .PHONY: rel stagedevrel deps test
2
3 all: deps compile
4
5 compile:
6 ./rebar compile
7
8 deps:
9 ./rebar get-deps
10
11 clean:
12 ./rebar clean
13
14 distclean: clean
15 ./rebar delete-deps
16
17 test:
18 ./rebar eunit
19
20 ##
21 ## Doc targets
22 ##
23 docs:
24 ./rebar doc
25
26 APPS = kernel stdlib sasl erts ssl tools os_mon runtime_tools crypto inets \
27 xmerl webtool snmp public_key mnesia eunit syntax_tools compiler
28 COMBO_PLT = $(HOME)/.riak_combo_dialyzer_plt
29
30 check_plt: compile
31 dialyzer --check_plt --plt $(COMBO_PLT) --apps $(APPS)
32
33 build_plt: compile
34 dialyzer --build_plt --output_plt $(COMBO_PLT) --apps $(APPS)
35
36 dialyzer: compile
37 @echo
38 @echo Use "'make check_plt'" to check PLT prior to using this target.
39 @echo Use "'make build_plt'" to build PLT prior to using this target.
40 @echo
41 @sleep 1
42 dialyzer -Wno_return --plt $(COMBO_PLT) ebin | \
43 fgrep -v -f ./dialyzer.ignore-warnings
44
45 cleanplt:
46 @echo
47 @echo "Are you sure? It takes about 1/2 hour to re-build."
48 @echo Deleting $(COMBO_PLT) in 5 seconds.
49 @echo
50 sleep 5
51 rm $(COMBO_PLT)
52
Something went wrong with that request. Please try again.