forked from emqx/emqx-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (35 loc) · 689 Bytes
/
Makefile
File metadata and controls
48 lines (35 loc) · 689 Bytes
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
## shallow clone for speed
BUILD_WITHOUT_QUIC ?= true
export BUILD_WITHOUT_QUIC
REBAR = $(CURDIR)/rebar3
REBAR_VERSION = 3.16.1-emqx-1
.PHONY: all
all: compile
.PHONY: get-rebar3
get-rebar3:
@$(CURDIR)/get-rebar3 $(REBAR_VERSION)
$(REBAR): get-rebar3
.PHONY: compile
compile: $(REBAR)
$(REBAR) compile
.PHONY: ct
ct: $(REBAR)
$(REBAR) as test ct -v
.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