forked from mesosphere-backup/minuteman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (43 loc) · 823 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
PACKAGE ?= minuteman
VERSION ?= $(shell git describe --tags)
BASE_DIR = $(shell pwd)
ERLANG_BIN = $(shell dirname $(shell which erl))
REBAR = $(shell pwd)/rebar3
.PHONY: rel deps test eqc
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 cover
test: ct eunit
eqc:
./rebar3 as test eqc
eunit:
./rebar3 as test eunit
ct:
./rebar3 as test ct -v
cover:
./rebar3 as test cover
rock:
./elvis rock
##
## Release targets
##
rel:
./rebar3 as prod release
stage:
./rebar3 release
vct:
./rebar3 at test ct --readable=false
DIALYZER_APPS = kernel stdlib erts sasl eunit syntax_tools compiler crypto
include tools.mk