forked from basho/riak_core
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
61 lines (45 loc) · 1000 Bytes
/
Makefile
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
55
56
57
58
59
60
61
PULSE_TESTS = worker_pool_pulse
COVERPATH = ./_build/test/cover
REBAR ?= ./rebar3
.PHONY: deps test docs xref dialyzer format
all: compile
compile: deps
${REBAR} compile
clean: clean-test
${REBAR} clean
distclean: clean
clean-test:
rm -rf t1000
rm -rf t2000
rm -rf t1
rm -rf t2
rm -rf ring_manager_eunit/test.ring
rm -rf ring_manager_eunit
rm -rf nonode@nohost
rm -rf log.nonode@nohost
rm -rf data.nonode@nohost
rm -rf data
# You should 'clean' before your first run of this target
# so that deps get built with PULSE where needed.
pulse:
${REBAR} compile -D PULSE
${REBAR} eunit -D PULSE skip_deps=true suite=$(PULSE_TESTS)
proper:
${REBAR} as proper do eunit
epc:
${REBAR} as epc eunit
format:
${REBAR} format
test: compile
${REBAR} eunit
coverage: compile
cp _build/proper+test/cover/eunit.coverdata ${COVERPATH}/proper.coverdata ;\
${REBAR} cover --verbose
docs:
${REBAR} edoc
xref: compile
${REBAR} xref
dialyzer:
${REBAR} dialyzer
lint:
${REBAR} lint