-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (47 loc) · 1.52 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
# maybe get a real makefile: https://github.com/ninenines/erlang.mk
_ARCH := $(shell arch)
ifeq ($(_ARCH),armv7l)
_NO_NATIVE = --no_native
else
_NO_NATIVE =
endif
all:
rebar compile
run:
cd src; erl -config ../release/sys.config -sync log all
#run:
# werl.exe -pa ./ebin -pa ./deps/*/ebin -config terl.config
# relx not working, searching for hipe and dialyzer
relx: all
~/erl-src/relx/relx
install:
_rel/terl/bin/terl install
start:
_rel/terl/bin/terl start
uninstall:
_rel/terl/bin/terl uninstall
stop:
_rel/terl/bin/terl stop
console:
_rel/terl/bin/terl console
wc:
wc src/shc*.erl
dialyzer:
cd ~/data3/repos/terl/; rebar clean compile
cd ~/data3/repos/terl/; dialyzer $(_NO_NATIVE) --fullpath --verbose -Wunderspecs -Wunmatched_returns -Werror_handling ebin/*.beam
dialyzer_sample:
cd ~/data3/repos/terl/samples/; erlc +debug_info *.erl
cd ~/data3/repos/terl/samples/; dialyzer $(_NO_NATIVE) --fullpath --verbose -Wunderspecs -Wunmatched_returns -Werror_handling *.beam
dialyzer_over:
cd ~/data3/repos/terl/; rebar clean compile
cd ~/data3/repos/terl/; dialyzer $(_NO_NATIVE) --fullpath --verbose -Wunderspecs -Wunmatched_returns -Werror_handling -Woverspecs ebin/*.beam
build_dialyzer:
dialyzer $(_NO_NATIVE) --build_plt --apps erts kernel stdlib mnesia eunit
dialyzer --add_to_plt --apps ./deps/*/ebin/*.beam
etags:
etags src/*.erl include/*.hrl
erl:
erl +sbwt none -pa ./ebin -pa ./deps/*/ebin -pa ./libs/sync/ebin
typer:
cd ~/data3/repos/terl/; rebar compile
cd ~/data3/repos/terl/; typer ebin/*.beam