-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
53 lines (37 loc) · 1.05 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
REBAR = $(shell pwd)/rebar3
DIALYZER ?= dialyzer
DIALYZER_WARNINGS = -Wunmatched_returns -Werror_handling \
-Wrace_conditions -Wunderspecs
.PHONY: deps compile
all: compile
compile: clean
@$(REBAR) compile
test: compile
@$(REBAR) as test eunit
ct:
@$(REBAR) ct --setcookie devcook --name mxtest001@127.0.0.1
clean:
@$(REBAR) clean
deps:
@$(REBAR) deps
build-plt:
@$(DIALYZER) --build_plt --output_plt .dialyzer_plt \
--apps kernel stdlib
dialyze: build-plt
@$(DIALYZER) --src src --plt .dialyzer_plt $(DIALYZER_WARNINGS)
rel: compile
$(REBAR) release
release: compile
$(REBAR) as prod release -n mx
run: release
$(REBAR) run
tar:
$(REBAR) as prod tar release -n mx
demo_run: compile
# only for demonstration purposes
erl -name $(node_name) -pa _build/default/lib/mx/ebin \
_build/default/lib/gproc/ebin \
_build/default/lib/lager/ebin \
_build/default/lib/goldrush/ebin \
-config "conf/sys.config" \
-eval "lists:map(fun(App) -> application:start(App) end, [gproc, syntax_tools, compiler, goldrush, lager])"