-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
79 lines (42 loc) · 1.25 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
APP = nkactor
REBAR = rebar3
PRE1 = ERL_AFLAGS="-kernel net_ticktime 20"
.PHONY: rel stagedevrel package version all tree shell
all: version compile
version:
@echo "$(shell git symbolic-ref HEAD 2> /dev/null | cut -b 12-)-$(shell git log --pretty=format:'%h, %ad' -1)" > $(APP).version
version_header: version
@echo "-define(VERSION, <<\"$(shell cat $(APP).version)\">>)." > include/$(APP)_version.hrl
clean:
$(REBAR) clean
rel:
$(REBAR) release
compile:
$(REBAR) compile
tests:
$(REBAR) eunit
dialyzer:
$(REBAR) dialyzer
xref:
$(REBAR) xref
upgrade:
$(REBAR) upgrade
make tree
update:
$(REBAR) update
tree:
$(REBAR) tree | grep -v '=' | sed 's/ (.*//' > tree
tree-diff: tree
git diff test -- tree
docs:
$(REBAR) edoc
shell:
$(REBAR) shell --config config/shell.config --name $(APP)@127.0.0.1 --setcookie nk --apps $(APP)
shell_env:
$(REBAR) shell --config config/shell.config --name $(ERL_HOST) --setcookie nk --apps $(APP)
shell_a:
$(REBAR) shell --config config/shell.config --name [email protected] --setcookie nk --apps $(APP)
shell_b:
$(REBAR) shell --config config/shell.config --name [email protected] --setcookie nk --apps $(APP)
shell_c:
$(REBAR) shell --config config/shell.config --name [email protected] --setcookie nk --apps $(APP)