Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 53 lines (39 sloc) 1.009 kb
d6077b4 @Vagabond Remove needless targets from Makefile
Vagabond authored
1 .PHONY: rel stagedevrel deps test
9085282 @Vagabond Update build scripts; add riak_err as a dep
Vagabond authored
2
3 all: deps compile
4
5 compile:
7bcf044 @Vagabond Initial import
Vagabond authored
6 ./rebar compile
7
9085282 @Vagabond Update build scripts; add riak_err as a dep
Vagabond authored
8 deps:
9 ./rebar get-deps
10
7bcf044 @Vagabond Initial import
Vagabond authored
11 clean:
12 ./rebar clean
13
d6077b4 @Vagabond Remove needless targets from Makefile
Vagabond authored
14 distclean: clean
9085282 @Vagabond Update build scripts; add riak_err as a dep
Vagabond authored
15 ./rebar delete-deps
16
17 test:
cc371c9 @Vagabond Test also calls compile
Vagabond authored
18 ./rebar compile eunit
9085282 @Vagabond Update build scripts; add riak_err as a dep
Vagabond authored
19
20 ##
21 ## Doc targets
22 ##
23 docs:
d6077b4 @Vagabond Remove needless targets from Makefile
Vagabond authored
24 ./rebar doc
9085282 @Vagabond Update build scripts; add riak_err as a dep
Vagabond authored
25
26 APPS = kernel stdlib sasl erts ssl tools os_mon runtime_tools crypto inets \
a192bd9 @Vagabond Replace mochiglobal with a public ETS table
Vagabond authored
27 xmerl webtool snmp public_key mnesia eunit
9085282 @Vagabond Update build scripts; add riak_err as a dep
Vagabond authored
28 COMBO_PLT = $(HOME)/.riak_combo_dialyzer_plt
29
30 check_plt: compile
d6077b4 @Vagabond Remove needless targets from Makefile
Vagabond authored
31 dialyzer --check_plt --plt $(COMBO_PLT) --apps $(APPS)
9085282 @Vagabond Update build scripts; add riak_err as a dep
Vagabond authored
32
33 build_plt: compile
d6077b4 @Vagabond Remove needless targets from Makefile
Vagabond authored
34 dialyzer --build_plt --output_plt $(COMBO_PLT) --apps $(APPS)
9085282 @Vagabond Update build scripts; add riak_err as a dep
Vagabond authored
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
d1de19b @Vagabond Stricter dialyzer options
Vagabond authored
42 dialyzer -Wunmatched_returns --plt $(COMBO_PLT) ebin | \
9085282 @Vagabond Update build scripts; add riak_err as a dep
Vagabond authored
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.