-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (26 loc) · 597 Bytes
/
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
.PHONY: rel devrel
DEVNODES ?= 1
DEVNODE ?= dev1
SEQ = $(shell seq $(DEVNODES))
compile:
./rebar compile
clean:
./rebar clean
rel: compile
./rebar generate
$(eval devrel : $(foreach n,$(SEQ),dev$(n)))
dev%: compile
rel/gen_dev $@
./rebar generate target_dir=dev/$@ overlay_vars=../rel/vars/$@_vars.config
start:
rel/chorderl/bin/chorderl start
devstart:
rel/dev/$(DEVNODE)/bin/chorderl start
stop:
rel/chorderl/bin/chorderl stop
devstop:
rel/dev/$(DEVNODE)/bin/chorderl stop
attach:
rel/chorderl/bin/chorderl attach
devattach:
rel/dev/$(DEVNODE)/bin/chorderl attach