-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
59 lines (37 loc) · 1.15 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
ERLANG_ROOT := $(shell erl -eval 'io:format("~s", [code:root_dir()])' -s init stop -noshell)
APPNAME = deliverly
ERL_LIBS:=apps:deps
ERL=erl +A 4 +K true
ifeq (,$(wildcard ./rebar))
REBAR := $(shell which rebar)
else
REBAR := ./rebar
endif
all: compile
update:
git pull
get_deps:
@$(REBAR) get-deps
update_deps:
@$(REBAR) update-deps
compile:
@$(REBAR) compile
release: clean compile
@$(REBAR) generate force=1
soft-release:
@$(REBAR) generate force=1
test: eunit ct
eunit:
@$(REBAR) skip_deps=true eunit
ct:
@$(REBAR) skip_deps=true ct
clean:
@$(REBAR) clean
dialyze:
dialyzer -r apps/deliverly/ebin/
shell:
ERL_LIBS=apps:deps erl -args_file files/vm.args -sasl errlog_type error -boot start_sasl -config files/app.config
run:
ERL_LIBS=apps:deps erl -args_file files/vm.args -sasl errlog_type error -boot start_sasl -sname de1@localhost -s $(APPNAME) -s tb_perf -s tb_visits -embedded -config files/app.config
run2:
ERL_LIBS=apps:deps erl -args_file files/vm.args -sasl errlog_type error -boot start_sasl -sname de2@localhost -s $(APPNAME) -s tb_perf -s tb_visits -deliverly config \"del2.config\" -embedded -config files/app.config