-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (45 loc) · 873 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
PACKAGE ?= trcb_base
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
${REBAR} cover -v
lint:
${REBAR} as lint lint
eunit:
${REBAR} eunit
ct:
${REBAR} ct
shell:
${REBAR} shell --apps trcb_base
logs:
tail -F priv/lager/*/log/*.log
cover: test
open _build/test/cover/index.html
##
## Release targets
##
rel:
${REBAR} release
stage:
${REBAR} release -d
DIALYZER_APPS = kernel stdlib erts sasl eunit syntax_tools compiler crypto
include tools.mk