-
Notifications
You must be signed in to change notification settings - Fork 140
/
Makefile
247 lines (183 loc) · 4.73 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
.PHONY: check reformat venv
.SHELL := bash
# --platform linux/amd64
DOCKER_PLATFORMS ?=
# --push
DOCKER_PUSH ?= --output=type=docker
DOCKER_TAG ?= synesthesiam/opentts
DOCKER_BUILD ?= docker buildx build . -f Dockerfile $(DOCKER_PLATFORMS) $(DOCKER_PUSH)
DOCKER_RUN ?= docker run -it -p 5500:5500
RUN_ARGS ?= --debug
all:
./configure --language ar,bn,ca,cs,de,el,en,es,fi,fr,gu,hi,hu,it,ja,kn,ko,mr,nl,pa,ru,sv,sw,ta,te,tr,zh
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):all
run:
$(DOCKER_RUN) $(DOCKER_TAG):all $(RUN_ARGS)
# Arabic
ar:
./configure --language ar
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):ar
ar-run:
$(DOCKER_RUN) $(DOCKER_TAG):ar $(RUN_ARGS)
# Bengali
bn:
./configure --languages bn
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):bn
bn-run:
$(DOCKER_RUN) $(DOCKER_TAG):bn $(RUN_ARGS)
# Catalan
ca:
./configure --language ca
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):ca
ca-run:
$(DOCKER_RUN) $(DOCKER_TAG):ca $(RUN_ARGS)
# Czech
cs:
./configure --language cs
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):cs
cs-run:
$(DOCKER_RUN) $(DOCKER_TAG):cs $(RUN_ARGS)
# German
de:
./configure --language de
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):de
de-run:
$(DOCKER_RUN) $(DOCKER_TAG):de $(RUN_ARGS)
# Greek
el:
./configure --language el
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):el
el-run:
$(DOCKER_RUN) $(DOCKER_TAG):el $(RUN_ARGS)
# English
en:
./configure --language en
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):en --tag $(DOCKER_TAG):latest
en-run:
$(DOCKER_RUN) $(DOCKER_TAG):en $(RUN_ARGS)
# Spanish
es:
./configure --language es
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):es
es-run:
$(DOCKER_RUN) $(DOCKER_TAG):es $(RUN_ARGS)
# Finnish
fi:
./configure --language fi
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):fi
fi-run:
$(DOCKER_RUN) $(DOCKER_TAG):fi $(RUN_ARGS)
# French
fr:
./configure --language fr
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):fr
fr-run:
$(DOCKER_RUN) $(DOCKER_TAG):fr $(RUN_ARGS)
# Gujarati
gu:
./configure --language gu
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):gu
gu-run:
$(DOCKER_RUN) $(DOCKER_TAG):gu $(RUN_ARGS)
# Hindi
hi:
./configure --language hi
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):hi
hi-run:
$(DOCKER_RUN) $(DOCKER_TAG):hi $(RUN_ARGS)
# Hungarian
hu:
./configure --language hu
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):hu
hu-run:
$(DOCKER_RUN) $(DOCKER_TAG):hu $(RUN_ARGS)
# Italian
it:
./configure --language it
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):it
it-run:
$(DOCKER_RUN) $(DOCKER_TAG):it $(RUN_ARGS)
# Japanese
ja:
./configure --language ja
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):ja
ja-run:
$(DOCKER_RUN) $(DOCKER_TAG):ja $(RUN_ARGS)
# Kannada
kn:
./configure --language kn
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):kn
kn-run:
$(DOCKER_RUN) $(DOCKER_TAG):kn $(RUN_ARGS)
# Korean
ko:
./configure --language ko
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):ko
ko-run:
$(DOCKER_RUN) $(DOCKER_TAG):ko $(RUN_ARGS)
# Marathi
mr:
./configure --language mr
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):mr
mr-run:
$(DOCKER_RUN) $(DOCKER_TAG):mr $(RUN_ARGS)
# Dutch
nl:
./configure --language nl
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):nl
nl-run:
$(DOCKER_RUN) $(DOCKER_TAG):nl $(RUN_ARGS)
# Punjabi
pa:
./configure --language pa
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):pa
pa-run:
$(DOCKER_RUN) $(DOCKER_TAG):pa $(RUN_ARGS)
# Russian
ru:
./configure --language ru
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):ru
ru-run:
$(DOCKER_RUN) $(DOCKER_TAG):ru $(RUN_ARGS)
# Swedish
sv:
./configure --language sv
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):sv
sv-run:
$(DOCKER_RUN) $(DOCKER_TAG):sv $(RUN_ARGS)
# Swahili
sw:
./configure --language sw
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):sw
sw-run:
$(DOCKER_RUN) $(DOCKER_TAG):sw $(RUN_ARGS)
# Tamil
ta:
./configure --language ta
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):ta
ta-run:
$(DOCKER_RUN) $(DOCKER_TAG):ta $(RUN_ARGS)
# Telugu
te:
./configure --language te
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):te
te-run:
$(DOCKER_RUN) $(DOCKER_TAG):te $(RUN_ARGS)
# Turkish
tr:
./configure --language tr
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):tr
tr-run:
$(DOCKER_RUN) $(DOCKER_TAG):tr $(RUN_ARGS)
# Chinese
zh:
./configure --language zh
xargs < .dockerargs $(DOCKER_BUILD) --tag $(DOCKER_TAG):zh
zh-run:
$(DOCKER_RUN) $(DOCKER_TAG):zh $(RUN_ARGS)
check:
scripts/check-code.sh
reformat:
scripts/format-code.sh
venv:
scripts/create-venv.sh