-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
56 lines (38 loc) · 822 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
REBAR := $(shell which rebar3 2>/dev/null || which ./rebar3)
ELVIS := $(shell which elvis 2>/dev/null || which ./elvis)
.PHONY: rebar-update compile xref lint dialyze start devrel release clean distclean test ci_dev ci_build ci_%
default: compile
rebar-update:
$(REBAR) update
compile:
$(REBAR) compile
xref:
$(REBAR) xref
lint:
$(ELVIS) rock
dialyze:
$(REBAR) dialyzer
test:
$(REBAR) eunit
$(REBAR) ct
start:
$(REBAR) run
devrel:
$(REBAR) release
release:
$(REBAR) as prod release
clean:
$(REBAR) clean
distclean:
$(REBAR) clean -a
rm -rf _build
# wercker CI and cli
WERCKER = $(shell which wercker 2>/dev/null)
X_HOST_HOME = $(HOME)
export X_HOST_HOME
ci_dev:
wercker dev --enable-volumes
ci_build:
wercker build --enable-volumes
ci_%:
export X_CI_BUILD_CMD="make $*" && $(MAKE) ci_dev