forked from hdima/erlport
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
56 lines (39 loc) · 1.02 KB
/
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
## shallow clone for speed
REBAR_GIT_CLONE_OPTIONS += --depth 1
export REBAR_GIT_CLONE_OPTIONS
REBAR = rebar3
all: compile
compile:
$(REBAR) compile
clean:
$(REBAR) clean
ct: compile
$(REBAR) as test ct -v --name [email protected]
eunit: compile
$(REBAR) as test eunit
xref:
$(REBAR) xref
proper:
$(REBAR) proper -d test
dialyzer:
$(REBAR) dialyzer
cover:
$(REBAR) cover
distclean: clean
@rm -rf _build
@rm -f data/app.*.config data/vm.*.args rebar.lock
compile-priv:
@for folder in $$(ls -1 priv); do \
(cd priv/$$folder; $(MAKE)) \
done
@mkdir -p ebin
priv-clean:
@for folder in $$(ls -1 priv); do \
(cd priv/$$folder; $(MAKE) clean) \
done
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) etc/emqx_exproto.conf
$(verbose) $(CUTTLEFISH_SCRIPT) -l info -e etc/ -c etc/emqx_exproto.conf -i priv/emqx_exproto.schema -d data