-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
70 lines (50 loc) · 885 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
REBAR3 ?= $(shell test -e `which rebar3` 2>/dev/null && which rebar3 || echo "./rebar3")
COZODB_TMP_DIR ?= "/tmp/cozodb/"
.PHONY: all
all: build
.PHONY: build
build: $(REBAR3)
@$(REBAR3) compile
.PHONY: deps
deps:
@$(REBAR3) deps
.PHONY: shell
shell:
@$(REBAR3) shell
.PHONY: clean
clean:
@$(REBAR3) cargo clean
@$(REBAR3) clean
.PHONY: clean-all
clean-all:
rm -rf $(CURDIR)/priv/crates
rm -rf $(CURDIR)/_build
.PHONY: distclean
distclean: clean
@$(REBAR3) clean --all
.PHONY: docs
docs:
@$(REBAR3) edoc
.PHONY: eunit
eunit:
@$(REBAR3) eunit
.PHONY: ct
ct:
@COZODB_TMP_DIR=$(COZODB_TMP_DIR) $(REBAR3) ct
.PHONY: xref
xref:
@$(REBAR3) xref
.PHONY: cover
cover:
@$(REBAR3) cover
.PHONY: proper
proper:
@$(REBAR3) proper
.PHONY: dyalizer
dyalizer:
@$(REBAR3) dyalizer
.PHONY: test
test: eunit ct
.PHONY: release
release: xref
@$(REBAR3) as prod release