-
Notifications
You must be signed in to change notification settings - Fork 38
/
Makefile
64 lines (33 loc) · 824 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
APP = nklib
REBAR = rebar3
.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)