Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 67 lines (50 sloc) 1.43 kb
0363566 @rzezeski Add initial code/structure, not working yet
authored
1 REBAR = $(shell pwd)/rebar
2
1a2bc1a @rzezeski Fix the JSON extractor, add unit test
authored
3 .PHONY: deps rel stagedevrel test
0363566 @rzezeski Add initial code/structure, not working yet
authored
4
5 all: deps compile
6
7 compile:
8 $(REBAR) compile
9
05026b3 @rzezeski Remove riak_test as dependency
authored
10 compile-riak-test: all
11 $(REBAR) skip_deps=true riak_test_compile
12
0363566 @rzezeski Add initial code/structure, not working yet
authored
13 deps:
14 $(REBAR) get-deps
15
16 clean:
17 $(REBAR) clean
05026b3 @rzezeski Remove riak_test as dependency
authored
18 rm -rf riak_test/ebin
0363566 @rzezeski Add initial code/structure, not working yet
authored
19
20 distclean: clean devclean relclean
21 $(REBAR) delete-deps
22
23 test:
24 $(REBAR) skip_deps=true eunit
25
26 ##
27 ## Dialyzer
28 ##
29 APPS = kernel stdlib sasl erts ssl tools os_mon runtime_tools crypto inets \
30 xmerl webtool snmp public_key mnesia eunit syntax_tools compiler
31 COMBO_PLT = $(HOME)/.yokozuna_combo_dialyzer_plt
32
33 check_plt: deps compile
34 dialyzer --check_plt --plt $(COMBO_PLT) --apps $(APPS) \
35 deps/*/ebin
36
37 build_plt: deps compile
38 dialyzer --build_plt --output_plt $(COMBO_PLT) --apps $(APPS) \
39 deps/*/ebin
40
41 dialyzer: deps compile
42 @echo
43 @echo Use "'make check_plt'" to check PLT prior to using this target.
44 @echo Use "'make build_plt'" to build PLT prior to using this target.
45 @echo
46 @sleep 1
4eab3bb @rzezeski Fix dialyzer target
authored
47 dialyzer -Wno_return --plt $(COMBO_PLT) ebin
0363566 @rzezeski Add initial code/structure, not working yet
authored
48
49
50 cleanplt:
51 @echo
52 @echo "Are you sure? It takes about 1/2 hour to re-build."
53 @echo Deleting $(COMBO_PLT) in 5 seconds.
54 @echo
55 sleep 5
56 rm $(COMBO_PLT)
0d5a148 @rzezeski Add purity targets
authored
57
58 ##
59 ## Purity
60 ##
61 ## NOTE: Must add purity to ERL_LIBS for these targets to work
62 build_purity_plt:
63 @erl -noshell -run purity_cli main -extra --build-plt --apps $(APPS) deps/*/ebin ebin
64
65 purity:
66 @erl -noshell -run purity_cli main -extra -v -s stats --with-reasons -l 3 --apps ebin
Something went wrong with that request. Please try again.