forked from NetComposer/nksip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
70 lines (38 loc) · 1.04 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
APP = nksip
REBAR = rebar3
AFLAGS = "-kernel shell_history enabled -kernel logger_sasl_compatible true"
.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:
ERL_AFLAGS=$(AFLAGS) $(REBAR) shell --config config/shell.config --name $(APP)@127.0.0.1 --setcookie nk --apps $(APP)
remsh:
erl -name [email protected] -setcookie nk -remsh $(APP)@127.0.0.1
remsh2:
erl -name [email protected] -setcookie nk -remsh $(APP)@127.0.0.1