-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker.mk
72 lines (49 loc) · 989 Bytes
/
docker.mk
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
71
72
ERL = $(shell which erl)
ifeq ($(ERL),)
$(error "Erlang not available on this system")
endif
REBAR = @`which rebar3`
DEPS_PLT=$(CURDIR)/.deps_plt
DEPS=erts kernel stdlib
# export QUIET:=1
# export DEBUG:=1
export REBAR_COLOR:="low"
# use to override vars for your platform
ifeq (env.mk,$(wildcard env.mk))
include env.mk
endif
.PHONY: deps doc
all: compile
compile:
$(REBAR) compile
tests:
$(REBAR) as test ct --spec ./test/spec.spec
tests_cover:
$(REBAR) as test ct --spec ./test/spec.spec --cover
cover:
@$(REBAR) cover
@xdg-open "_build/test/cover/index.html"
doc:
$(REBAR) edoc
lint:
$(REBAR) as lint lint
xref:
$(REBAR) as prod xref skip_deps=true
dialyzer:
$(REBAR) dialyzer skip_deps=true
deps:
$(REBAR) deps
clean:
$(REBAR) clean
prod:
$(REBAR) as prod release
rel: compile
$(REBAR) release
run: rel
$(REBAR) run
auto:
$(REBAR) auto
attach:
$(ERL) -name [email protected] -remsh [email protected] -setcookie dev
upgrade_rebar:
$(REBAR) local upgrade