-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
77 lines (52 loc) · 1.66 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
70
71
72
73
74
75
76
77
REBAR = $(shell pwd)/rebar3
BASEDIR = $(shell pwd)
RELPATH = _build/default/rel/rcl_memkv
PRODRELPATH = _build/prod/rel/rcl_memkv
DEV1RELPATH = _build/dev1/rel/rcl_memkv
DEV2RELPATH = _build/dev2/rel/rcl_memkv
DEV3RELPATH = _build/dev3/rel/rcl_memkv
APPNAME = rcl_memkv
SHELL = /bin/bash
.PHONY: rel
all: compile
compile:
$(REBAR) compile
clean:
$(REBAR) clean
console: rel
_build/default/rel/rcl_memkv/bin/rcl_memkv console ${ARGS}
rel:
$(REBAR) release
xref: compile
${REBAR} xref skip_deps=true
dialyzer:
${REBAR} dialyzer
devrel1:
$(REBAR) as dev1 release
devrel2:
$(REBAR) as dev2 release
devrel3:
$(REBAR) as dev3 release
devrel: devrel1 devrel2 devrel3
dev1-attach:
$(BASEDIR)/_build/dev1/rel/rcl_memkv/bin/$(APPNAME) remote_console
dev2-attach:
$(BASEDIR)/_build/dev2/rel/rcl_memkv/bin/$(APPNAME) remote_console
dev3-attach:
$(BASEDIR)/_build/dev3/rel/rcl_memkv/bin/$(APPNAME) remote_console
dev1-console:
$(BASEDIR)/_build/dev1/rel/rcl_memkv/bin/$(APPNAME) console
dev2-console:
$(BASEDIR)/_build/dev2/rel/rcl_memkv/bin/$(APPNAME) console
dev3-console:
$(BASEDIR)/_build/dev3/rel/rcl_memkv/bin/$(APPNAME) console
devrel-start:
for d in $(BASEDIR)/_build/dev*; do $$d/rel/rcl_memkv/bin/$(APPNAME) start; done
devrel-stop:
for d in $(BASEDIR)/_build/dev*; do $$d/rel/rcl_memkv/bin/$(APPNAME) stop; done
devrel-join:
for d in $(BASEDIR)/_build/dev{2,3}; do $$d/rel/rcl_memkv/bin/$(APPNAME) eval 'riak_core:join("[email protected]")'; done
devrel-cluster-plan:
$(BASEDIR)/_build/dev1/rel/rcl_memkv/bin/$(APPNAME) eval 'riak_core_claimant:plan()'
devrel-cluster-commit:
$(BASEDIR)/_build/dev1/rel/rcl_memkv/bin/$(APPNAME) eval 'riak_core_claimant:commit()'