forked from benoitc/couchbeam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (39 loc) · 838 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
ERL ?= erl
ERLC ?= erlc
APP := couchbeam
REBAR?=./rebar
.PHONY: deps doc
all: deps compile
dev: devbuild
compile:
@$(REBAR) compile
deps:
@$(REBAR) get-deps
doc: dev
$(REBAR) -C rebar_dev.config doc skip_deps=true
test: dev
@$(ERLC) -o t/ t/etap.erl
prove t/*.t
verbose-test: devbuild
@$(ERLC) -o t/ t/etap.erl
prove -v t/*.t
cover: dev
COVER=1 prove t/*.t
@$(ERL) -detached -noshell -eval 'etap_report:create()' -s init stop
clean:
@$(REBAR) clean
@rm -f t/*.beam
@rm -f doc/*.html doc/*.css doc/edoc-info doc/*.png
distclean: clean
@$(REBAR) delete-deps
@rm -rf deps
dialyzer: compile
@dialyzer -Wno_return -c ebin
# development
#
devclean:
$(REBAR) -C rebar_dev.config clean
devbuild: devdeps
$(REBAR) -C rebar_dev.config compile
devdeps:
$(REBAR) -C rebar_dev.config get-deps