-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
54 lines (41 loc) · 798 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
##
## Makefile for bsd make
##
## Use bmake on linux
##
include nodes.mk
STARTS = $(NODES:=_start)
STOPS = $(NODES:=_stop)
ATTACHES = $(NODES:=_attach)
RESTARTS = $(NODES:=_restart)
INITS = $(NODES:=_init)
CMD = ./tarantoolctl.lua
$(STARTS):
@$(CMD) start $(@:_start=)
$(STOPS):
@$(CMD) stop $(@:_stop=)
$(ATTACHES):
@echo ./attach.sh $(@:_attach=)
@./attach.sh $(@:_attach=)
$(RESTARTS):
@$(CMD) restart $(@:_restart=)
$(INITS):
@$(CMD) init $(@:_init=)
l:
@echo $(NODES:R:[-1..1])
fstart:
-@for i in $(NODES); do \
$(CMD) start $$i; \
done
fstop:
-@for i in $(NODES); do \
$(CMD) stop $$i; \
done
frestart:
-@for i in $(NODES); do \
$(CMD) restart $$i; \
done
finit:
-@for i in $(NODES); do \
$(CMD) init $$i; \
done