forked from emqx/ekka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (34 loc) · 869 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
REBAR := rebar3
CT_NODE_NAME = ct@127.0.0.1
.PHONY: all
all: compile
compile:
$(REBAR) do compile, dialyzer, xref
.PHONY: clean
clean: distclean
.PHONY: distclean
distclean:
@rm -rf _build erl_crash.dump rebar3.crashdump rebar.lock
.PHONY: xref
xref:
$(REBAR) xref
.PHONY: eunit
eunit: compile
$(REBAR) eunit verbose=true
.PHONY: ct
ct: compile
$(REBAR) as test ct -v --readable=false --name $(CT_NODE_NAME)
cover:
$(REBAR) cover
.PHONY: coveralls
coveralls:
@rebar3 as test coveralls send
.PHONY: dialyzer
dialyzer:
$(REBAR) dialyzer
CUTTLEFISH_SCRIPT = _build/default/lib/cuttlefish/cuttlefish
$(CUTTLEFISH_SCRIPT):
@${REBAR} get-deps
@if [ ! -f cuttlefish ]; then make -C _build/default/lib/cuttlefish; fi
app.config: $(CUTTLEFISH_SCRIPT)
$(verbose) $(CUTTLEFISH_SCRIPT) -l info -e etc/ -c etc/ekka.conf.example -i priv/ekka.schema -d data/