-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (32 loc) · 1.71 KB
/
Makefile
File metadata and controls
45 lines (32 loc) · 1.71 KB
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
REBAR:=./rebar
PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
.PHONY: all erl test clean doc
all: erl
erl:
$(REBAR) -j 1 -C rebar.config get-deps compile
erldebug:
$(REBAR) -C rebar.debug.config compile
test: all
@mkdir -p .eunit
$(REBAR) skip_deps=true eunit
clean:
$(REBAR) clean
# -rm -rvf deps/*/ebin ebin doc .eunit
doc:
$(REBAR) doc
run: all
#erl -pa ebin -boot start_sasl -s rmqclient_app start
#erl +W w -pa ebin -pa deps/*/ebin -boot start_sasl -kernel error_logger=silent -sasl sasl_error_logger=false -sasl errlog_type=error -s start_app
erl -sname transcode -setcookie `cat priv/cookie` +W w -pa ebin -pa deps/*/ebin -config cf -boot start_sasl -sasl sasl_error_logger=false -eval "inets:start(), application:start(rfc4627_jsonrpc), application:start(transcode), reloader:start()"
#erl +W w -pa ebin -pa deps/*/ebin -config cf -boot start_sasl -sasl sasl_error_logger=false -eval "reloader:start()"
daemon: all
#erl -pa ebin -boot start_sasl -s rmqclient_app start
#erl +W w -pa ebin -pa deps/*/ebin -boot start_sasl -kernel error_logger=silent -sasl sasl_error_logger=false -sasl errlog_type=error -s start_app
erl -detached -name transcode -setcookie `cat priv/cookie` +W w -pa ebin -pa deps/*/ebin -config cf -boot start_sasl -sasl sasl_error_logger=false -eval "inets:start(), application:start(rfc4627_jsonrpc), application:start(transcode), reloader:start()"
debug: erldebug
erl +W w -pa ebin -pa deps/*/ebin -config cf -boot start_sasl -eval "application:start(transcode), reloader:start()"
shell:
erl -name tr_shell -setcookie `cat priv/cookie` -remsh transcode
tidy:
erl -detached -eval "erl_tidy:dir(\"src\", [{recursive,true}, {verbose, true}])"
find . -name "*.bak" -exec rm {} \;