-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
147 lines (129 loc) · 4.64 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
GIT_BASE_URL=https://github.com/SonyCSL
apis-bom:
git clone $(GIT_BASE_URL)/apis-bom.git
apis-common:
git clone $(GIT_BASE_URL)/apis-common.git
apis-main:
git clone $(GIT_BASE_URL)/apis-main.git
apis-ccc:
git clone $(GIT_BASE_URL)/apis-ccc.git
apis-log:
git clone $(GIT_BASE_URL)/apis-log.git
apis-web:
git clone $(GIT_BASE_URL)/apis-web.git
apis-emulator:
git clone $(GIT_BASE_URL)/apis-emulator.git
apis-main_controller:
git clone $(GIT_BASE_URL)/apis-main_controller.git
apis-service_center:
git clone $(GIT_BASE_URL)/apis-service_center.git
apis-tester:
git clone $(GIT_BASE_URL)/apis-tester.git
build-apis-bom: apis-bom
cd apis-bom/ && make install
build-apis-common:apis-common
cd apis-common/ && make install
build-apis-main: apis-main
cd apis-main/ && make package
build-apis-ccc: apis-ccc
cd apis-ccc/ && make package
build-apis-log: apis-log
cd apis-log/ && make package
build-apis-web: apis-web
cd apis-web/ && make package
build-apis-emulator: apis-emulator
cd apis-emulator/ && sh venv.sh
build-apis-main_controller: apis-main_controller
cd apis-main_controller/ && sh venv.sh
build-apis-service_center: apis-service_center
cd apis-service_center/ && sh venv.sh && sh initdb.sh
build-apis-tester: apis-tester
cd apis-tester/ && sh venv.sh
build: build-apis-bom build-apis-common build-apis-main build-apis-ccc build-apis-log build-apis-web build-apis-emulator build-apis-main_controller build-apis-service_center build-apis-tester
update-apis-bom: apis-bom
cd apis-bom/ && git pull
update-apis-common:apis-common
cd apis-common/ && git pull
update-apis-main: apis-main
cd apis-main/ && git pull
update-apis-ccc: apis-ccc
cd apis-ccc/ && git pull
update-apis-log: apis-log
cd apis-log/ && git pull
update-apis-web: apis-web
cd apis-web/ && git pull
update-apis-emulator: apis-emulator
cd apis-emulator/ && git pull
update-apis-main_controller: apis-main_controller
cd apis-main_controller/ && git pull
update-apis-service_center: apis-service_center
cd apis-service_center/ && git pull
update-apis-tester: apis-tester
cd apis-tester/ && git pull
update: update-apis-bom update-apis-common update-apis-main update-apis-ccc update-apis-log update-apis-web update-apis-emulator update-apis-main_controller update-apis-service_center update-apis-tester
clean-apis-bom:
cd apis-bom/ && make clean
clean-apis-common:
cd apis-common/ && make clean
clean-apis-main:
cd apis-main/ && make clean
clean-apis-ccc:
cd apis-ccc/ && make clean
clean-apis-log:
cd apis-log/ && make clean
clean-apis-web:
cd apis-web/ && make clean
clean-apis-emulator:
cd apis-emulator/ && rm -rf venv
clean-apis-main_controller:
cd apis-main_controller/ && rm -rf venv
clean-apis-service_center:
cd apis-service_center/ && rm -rf venv
clean-apis-tester:
cd apis-tester/ && rm -rf venv
clean: clean-apis-bom clean-apis-common clean-apis-main clean-apis-ccc clean-apis-log clean-apis-web clean-apis-common clean-apis-bom clean-apis-emulator clean-apis-main_controller clean-apis-service_center clean-apis-tester
run-apis-main-1:
@sh runner.sh apis-main/exe/ 'sh start.sh'
run-apis-main-2:
@sh runner.sh apis-main/exe/ 'sh start2.sh'
run-apis-main-3:
@sh runner.sh apis-main/exe/ 'sh start3.sh'
run-apis-main-4:
@sh runner.sh apis-main/exe/ 'sh start4.sh'
run-apis-main: run-apis-main-1 run-apis-main-2 run-apis-main-3 run-apis-main-4
run-apis-ccc:
@sh runner.sh apis-ccc/exe/ 'sh start.sh'
run-apis-log:
@sh runner.sh apis-log/exe/ 'sh start.sh'
run-apis-web:
@sh runner.sh apis-web/exe/ 'sh start.sh'
run-apis-emulator:
@sh runner.sh apis-emulator/ '. venv/bin/activate && ./startEmul.py 4'
run-apis-main_controller:
@sh runner.sh apis-main_controller/ '. venv/bin/activate && ./startMain.py'
run-apis-service_center:
@sh runner.sh apis-service_center/ 'sh start.sh'
run-apis-tester:
@sh runner.sh apis-tester/ '. venv/bin/activate && ./startTester.py'
run-mongodb:
@sh runner.sh mongodb/ 'sh start.sh'
run: run-mongodb run-apis-service_center run-apis-emulator run-apis-main run-apis-ccc run-apis-log run-apis-web run-apis-main_controller run-apis-tester
stop-apis-main:
cd apis-main/exe/ && sh stop-kill.sh
stop-apis-ccc:
cd apis-ccc/exe/ && sh stop-kill.sh
stop-apis-log:
cd apis-log/exe/ && sh stop-kill.sh
stop-apis-web:
cd apis-web/exe/ && sh stop-kill.sh
stop-apis-emulator:
cd apis-emulator/ && sh stop.sh
stop-apis-main_controller:
cd apis-main_controller/ && sh stop.sh
stop-apis-service_center:
cd apis-service_center/ && sh stop.sh
stop-apis-tester:
cd apis-tester/ && sh stop.sh
stop-mongodb:
cd mongodb/ && sh stop.sh
stop: stop-apis-tester stop-apis-main_controller stop-apis-main stop-apis-ccc stop-apis-log stop-apis-web stop-apis-emulator stop-apis-service_center stop-mongodb