-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (41 loc) · 849 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
## shallow clone for speed
BUILD_WITHOUT_QUIC ?= true
export BUILD_WITHOUT_QUIC
BUILD_WITHOUT_ROCKSDB ?= true
export BUILD_WITHOUT_ROCKSDB
REBAR ?= $(or $(shell which rebar3 2>/dev/null),$(CURDIR)/rebar3)
REBAR_VERSION ?= 3.19.0-emqx-1
.PHONY: all
all: compile
.PHONY: get-rebar3
get-rebar3:
@$(CURDIR)/get-rebar3 $(REBAR_VERSION)
$(REBAR):
$(MAKE) get-rebar3
.PHONY: compile
compile: $(REBAR)
$(REBAR) compile
.PHONY: ct
ct: $(REBAR)
$(REBAR) as test ct -v
.PHONY: format
format: $(REBAR)
$(REBAR) format
.PHONY: eunit
eunit: $(REBAR)
$(REBAR) as test eunit
.PHONY: xref
xref: $(REBAR)
$(REBAR) xref
.PHONY: cover
cover: $(REBAR)
$(REBAR) cover
.PHONY: clean
clean: distclean
.PHONY: distclean
distclean:
@rm -rf _build
@rm -f data/app.*.config data/vm.*.args rebar.lock
.PHONY: rel
rel: $(REBAR)
$(REBAR) emqx_plugrel tar