-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
70 lines (48 loc) · 969 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
62
63
64
65
66
67
68
69
70
PACKAGE ?= rcb
VERSION ?= $(shell git describe --tags)
BASE_DIR = $(shell pwd)
ERLANG_BIN = $(shell dirname $(shell which erl))
REBAR = $(shell pwd)/rebar3
MAKE = make
.PHONY: rel deps test eqc plots
all: compile
##
## Compilation targets
##
compile:
$(REBAR) compile
clean: packageclean
$(REBAR) clean
packageclean:
rm -fr *.deb
rm -fr *.tar.gz
##
## Test targets
##
check: test xref dialyzer lint
test: ct eunit
lint:
${REBAR} as lint lint
eqc:
${REBAR} as test eqc
eunit:
${REBAR} as test eunit
ct: rcb
${REBAR} cover -v
rcb:
pkill -9 beam.smp ; rm -rf priv/lager ; ${REBAR} ct --suite=test/rcb_SUITE
cover: test
open _build/test/cover/index.html
shell:
${REBAR} shell --apps rcb
logs:
tail -F priv/lager/*/log/*.log
##
## Release targets
##
rel:
${REBAR} release
stage:
${REBAR} release -d
DIALYZER_APPS = kernel stdlib erts sasl eunit syntax_tools compiler crypto
include tools.mk