-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
59 lines (41 loc) · 971 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
NAME=smppload
REBAR=./rebar3
OTP_PLT=~/.otp.plt
PRJ_PLT=$(NAME).plt
.PHONY: test
all: rel escriptize
rel: compile
@rm -rf ./rel/$(NAME)
@$(REBAR) release
escriptize: compile xref
@$(REBAR) escriptize
compile: get-deps
@$(REBAR) compile
xref: compile
@$(REBAR) xref
get-deps:
@$(REBAR) get-deps
update-deps:
@$(REBAR) upgrade
clean:
@$(REBAR) clean
check: xref
test:
@$(REBAR) eunit
cover:
@$(REBAR) cover
dialyze: $(OTP_PLT) compile $(PRJ_PLT)
@dialyzer --plt $(PRJ_PLT) -r ./subapps/*/ebin
$(OTP_PLT):
@dialyzer --build_plt --output_plt $(OTP_PLT) --apps erts \
kernel stdlib crypto mnesia sasl common_test eunit ssl \
asn1 compiler syntax_tools inets
$(PRJ_PLT):
@dialyzer --add_to_plt --plt $(OTP_PLT) --output_plt $(PRJ_PLT) \
-r ./deps/*/ebin ./subapps/*/ebin
console:
@./_build/default/rel/$(NAME)/bin/$(NAME) console
develop:
@./_build/default/rel/$(NAME)/bin/$(NAME) develop
tags:
@find . -name "*.[e,h]rl" -print | etags -