-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
59 lines (43 loc) · 1.12 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
56
57
58
59
BASEDIR = $(shell pwd)
SUPPORTDIR = $(BASEDIR)/support
REBAR ?= $(SUPPORTDIR)/rebar3
EPMD ?= $(shell which epmd)
.PHONY: help all rel tar store apply eqc
all: compile
compile:
@$(REBAR) compile
## Create a barrel release
rel:
@$(REBAR) as prod release
devrel: ## Create a barrel release
@$(REBAR) release
tar: ## Create a tar file containing a portable release
@$(REBAR) as prod tar
clean:
@$(REBAR) clean
distclean: clean ## Clean all build and releases artifacts
@rm -rf _build
@rm -rf data
cleantest:
@rm -rf _build/test
dialyzer:
@$(REBAR) dialyzer
test: cleantest dialyzer
@$(REBAR) eunit
@$(EPMD) -daemon
@$(REBAR) ct --sname=barrel_test
cover:
@$(REBAR) cover
eqc:
@$(REBAR) as eqc eunit
eqcshell:
@$(REBAR) as eqc shell --sname barreleqc@localhost
shell:
@$(REBAR) as eqc shell --sname barrel@localhost
help: ## This documentation
@echo Build commands for barrel platform:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@echo
@echo Default command is \'compile\'
@echo Consult README.md for more information.