forked from eltex-ecss/chronica
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (29 loc) · 761 Bytes
/
Makefile
File metadata and controls
40 lines (29 loc) · 761 Bytes
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
.PHONY: all deps compile test eunit inttest clean travis
REBAR?=${PWD}/rebar
RELX?=${PWD}/relx
RETEST=${PWD}/deps/retest/retest
LOG_LEVEL?=debug
RT_TARGETS?=inttest
all: deps compile test dialyze
deps:
@REBAR_EXTRA_DEPS=1 rebar get-deps u-d
@(cd deps/retest && rebar compile escriptize)
compile:
rebar compile
test: eunit inttest
eunit:
rebar eunit skip_deps=true
inttest:
@REBAR=rebar RELX=relx ${RETEST} -l ${LOG_LEVEL} ${RT_TARGETS}
dialyze: .rebar/*.plt
rebar dialyze
.rebar/*.plt:
rebar build-plt
travis:
@REBAR_EXTRA_DEPS=1 $(REBAR) get-deps compile
@(cd deps/retest && $(REBAR) compile escriptize)
$(REBAR) eunit skip_deps=true
@REBAR=$(REBAR) RELX=$(RELX) ${RETEST} -l ${LOG_LEVEL} ${RT_TARGETS}
clean:
rebar clean
-rm -rf .rebar