-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (47 loc) · 1.11 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
AQL_HOME = $(shell pwd)
REBAR = $(AQL_HOME)/rebar3
AQL = ./_build/default/lib/aql
AQL_REL = ./_build/default/rel/aql
NODE_NAME = 'aql@127.0.0.1'
NODE_DEV_NAME = 'aqldev@127.0.0.1'
COOKIE = antidote
MAIN = "aql:start_shell()"
EBIN = ./_build/default/lib/*/ebin
TEST_LOGS = _build/test/logs
SCRIPTS = ./scripts
.PHONY: all test clean antidote
shell:
chmod u+x $(SCRIPTS)/rebar_shell.sh; sync
$(SCRIPTS)/rebar_shell.sh
aqlshell: compile
chmod u+x $(SCRIPTS)/start_shell.sh; sync
$(SCRIPTS)/start_shell.sh
dev_public:
chmod u+x $(SCRIPTS)/start_dev_public.sh; sync
$(SCRIPTS)/start_dev_public.sh
shell_public:
chmod u+x $(SCRIPTS)/start_shell_public.sh; sync
$(SCRIPTS)/start_shell_public.sh
dev:
chmod +x $(SCRIPTS)/start_dev.sh; sync
$(SCRIPTS)/start_dev.sh
compile:
$(REBAR) compile
mkdir -p _build/test/logs
clean:
$(REBAR) clean
release:
$(REBAR) release
relclean:
rm -rf _build/default/rel
test:
$(REBAR) eunit --cover
$(REBAR) cover
ct:
chmod +x $(SCRIPTS)/run_ct.sh; sync
$(SCRIPTS)/run_ct.sh $(TEST_LOGS) $(NODE_NAME) $(COOKIE)
# style checks
lint:
$(REBAR) as lint lint
dialyzer:
$(REBAR) dialyzer