-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
309 lines (261 loc) · 13.6 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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
clean:
rm -rf build/
rm -rf build-artifact/
clean-docker-build:
docker rmi kafe/centos:7-build
docker rmi kafe/almalinux:8-build
docker rmi kafe/debian:9-build
docker rmi kafe/debian:10-build
docker rmi kafe/debian:11-build
docker rmi kafe/debian:12-build
docker rmi kafe/ubuntu:1804-build
docker rmi kafe/ubuntu:2004-build
docker rmi kafe/ubuntu:2204-build
docker rmi kafe/fedora:31-build
docker rmi kafe/fedora:32-build
docker rmi kafe/fedora:33-build
docker rmi kafe/fedora:34-build
docker rmi kafe/fedora:35-build
docker rmi kafe/fedora:36-build
build-el-7:
-rm -rf build-artifact/centos-7/
if [[ "$(docker images -q "kafe/centos:7-build" 2> /dev/null)" == "" ]]; then \
docker build -t kafe/centos:7-build dist/centos/7; \
fi
docker run -it --rm -v `pwd`:/kafe:z kafe/centos:7-build
mkdir -p build-artifact/centos-7/
cp build/centos/7/kafe-cli-*.rpm build-artifact/centos-7/
cp build/centos/7/libkafe-*.rpm build-artifact/centos-7/
for f in build-artifact/centos-7/*; do mv -v "$$f" `sed "s/\.rpm/\.el7\.rpm/" <<< "$$f"`; done
build-el-8:
-rm -rf build-artifact/almalinux-8/
if [[ "$(docker images -q "kafe/almalinux:8-build" 2> /dev/null)" == "" ]]; then \
docker build -t kafe/almalinux:8-build dist/almalinux/8; \
fi
docker run -it --rm -v `pwd`:/kafe:z kafe/almalinux:8-build
mkdir -p build-artifact/almalinux-8/
cp build/almalinux/8/kafe-cli-*.rpm build-artifact/almalinux-8/
cp build/almalinux/8/libkafe-*.rpm build-artifact/almalinux-8/
for f in build-artifact/almalinux-8/*; do mv -v "$$f" `sed "s/\.rpm/\.el8\.rpm/" <<< "$$f"`; done
build-debian-9:
-rm -rf build-artifact/debian-9/
if [[ "$(docker images -q "kafe/debian:9-build" 2> /dev/null)" == "" ]]; then \
docker build -t kafe/debian:9-build dist/debian/9; \
fi
docker run -it --rm -v `pwd`:/kafe:z kafe/debian:9-build
mkdir -p build-artifact/debian-9/
cp build/debian/9/kafe-cli*.deb build-artifact/debian-9/
cp build/debian/9/libkafe*.deb build-artifact/debian-9/
for f in build-artifact/debian-9/*; do mv -v "$$f" `sed "s/\.deb/\.deb9\.deb/" <<< "$$f"`; done
build-debian-10:
-rm -rf build-artifact/debian-10/
if [[ "$(docker images -q "kafe/debian:10-build" 2> /dev/null)" == "" ]]; then \
docker build -t kafe/debian:10-build dist/debian/10; \
fi
docker run -it --rm -v `pwd`:/kafe:z kafe/debian:10-build
mkdir -p build-artifact/debian-10/
cp build/debian/10/kafe-cli*.deb build-artifact/debian-10/
cp build/debian/10/libkafe*.deb build-artifact/debian-10/
for f in build-artifact/debian-10/*; do mv -v "$$f" `sed "s/\.deb/\.deb10\.deb/" <<< "$$f"`; done
build-debian-11:
-rm -rf build-artifact/debian-11/
if [[ "$(docker images -q "kafe/debian:11-build" 2> /dev/null)" == "" ]]; then \
docker build -t kafe/debian:11-build dist/debian/11; \
fi
docker run -it --rm -v `pwd`:/kafe:z kafe/debian:11-build
mkdir -p build-artifact/debian-11/
cp build/debian/11/kafe-cli*.deb build-artifact/debian-11/
cp build/debian/11/libkafe*.deb build-artifact/debian-11/
for f in build-artifact/debian-11/*; do mv -v "$$f" `sed "s/\.deb/\.deb11\.deb/" <<< "$$f"`; done
build-debian-12:
-rm -rf build-artifact/debian-12/
if [[ "$(docker images -q "kafe/debian:12-build" 2> /dev/null)" == "" ]]; then \
docker build -t kafe/debian:12-build dist/debian/12; \
fi
docker run -it --rm -v `pwd`:/kafe:z kafe/debian:12-build
mkdir -p build-artifact/debian-12/
cp build/debian/12/kafe-cli*.deb build-artifact/debian-12/
cp build/debian/12/libkafe*.deb build-artifact/debian-12/
for f in build-artifact/debian-12/*; do mv -v "$$f" `sed "s/\.deb/\.deb12\.deb/" <<< "$$f"`; done
build-ubuntu-1804:
-rm -rf build-artifact/ubuntu-1804/
if [[ "$(docker images -q "kafe/ubuntu:1804-build" 2> /dev/null)" == "" ]]; then \
docker build -t kafe/ubuntu:1804-build dist/ubuntu/1804; \
fi
docker run -it --rm -v `pwd`:/kafe:z kafe/ubuntu:1804-build
mkdir -p build-artifact/ubuntu-1804/
cp build/ubuntu/1804/kafe-cli*.deb build-artifact/ubuntu-1804/
cp build/ubuntu/1804/libkafe*.deb build-artifact/ubuntu-1804/
for f in build-artifact/ubuntu-1804/*; do mv -v "$$f" `sed "s/\.deb/\.ubu1804\.deb/" <<< "$$f"`; done
build-ubuntu-2004:
-rm -rf build-artifact/ubuntu-2004/
if [[ "$(docker images -q "kafe/ubuntu:2004-build" 2> /dev/null)" == "" ]]; then \
docker build -t kafe/ubuntu:2004-build dist/ubuntu/2004; \
fi
docker run -it --rm -v `pwd`:/kafe:z kafe/ubuntu:2004-build
mkdir -p build-artifact/ubuntu-2004/
cp build/ubuntu/2004/kafe-cli*.deb build-artifact/ubuntu-2004/
cp build/ubuntu/2004/libkafe*.deb build-artifact/ubuntu-2004/
for f in build-artifact/ubuntu-2004/*; do mv -v "$$f" `sed "s/\.deb/\.ubu2004\.deb/" <<< "$$f"`; done
build-ubuntu-2204:
-rm -rf build-artifact/ubuntu-2204/
if [[ "$(docker images -q "kafe/ubuntu:2204-build" 2> /dev/null)" == "" ]]; then \
docker build -t kafe/ubuntu:2204-build dist/ubuntu/2204; \
fi
docker run -it --rm -v `pwd`:/kafe:z kafe/ubuntu:2204-build
mkdir -p build-artifact/ubuntu-2204/
cp build/ubuntu/2204/kafe-cli*.deb build-artifact/ubuntu-2204/
cp build/ubuntu/2204/libkafe*.deb build-artifact/ubuntu-2204/
for f in build-artifact/ubuntu-2204/*; do mv -v "$$f" `sed "s/\.deb/\.ubu2204\.deb/" <<< "$$f"`; done
build-fedora-31:
-rm -rf build-artifact/fedora-31/
if [[ "$(docker images -q "kafe/fedora:31-build" 2> /dev/null)" == "" ]]; then \
docker build -t kafe/fedora:31-build dist/fedora/31; \
fi
docker run -it --rm -v `pwd`:/kafe:z kafe/fedora:31-build
mkdir -p build-artifact/fedora-31/
cp build/fedora/31/kafe-cli-*.rpm build-artifact/fedora-31/
cp build/fedora/31/libkafe-*.rpm build-artifact/fedora-31/
for f in build-artifact/fedora-31/*; do mv -v "$$f" `sed "s/\.rpm/\.f31\.rpm/" <<< "$$f"`; done
build-fedora-32:
-rm -rf build-artifact/fedora-32/
if [[ "$(docker images -q "kafe/fedora:32-build" 2> /dev/null)" == "" ]]; then \
docker build -t kafe/fedora:32-build dist/fedora/32; \
fi
docker run -it --rm -v `pwd`:/kafe:z kafe/fedora:32-build
mkdir -p build-artifact/fedora-32/
cp build/fedora/32/kafe-cli-*.rpm build-artifact/fedora-32/
cp build/fedora/32/libkafe-*.rpm build-artifact/fedora-32/
for f in build-artifact/fedora-32/*; do mv -v "$$f" `sed "s/\.rpm/\.f32\.rpm/" <<< "$$f"`; done
build-fedora-33:
-rm -rf build-artifact/fedora-33/
if [[ "$(docker images -q "kafe/fedora:33-build" 2> /dev/null)" == "" ]]; then \
docker build -t kafe/fedora:33-build dist/fedora/33; \
fi
docker run -it --rm -v `pwd`:/kafe:z kafe/fedora:33-build
mkdir -p build-artifact/fedora-33/
cp build/fedora/33/kafe-cli-*.rpm build-artifact/fedora-33/
cp build/fedora/33/libkafe-*.rpm build-artifact/fedora-33/
for f in build-artifact/fedora-33/*; do mv -v "$$f" `sed "s/\.rpm/\.f33\.rpm/" <<< "$$f"`; done
build-fedora-34:
-rm -rf build-artifact/fedora-34/
if [[ "$(docker images -q "kafe/fedora:34-build" 2> /dev/null)" == "" ]]; then \
docker build -t kafe/fedora:34-build dist/fedora/34; \
fi
docker run -it --rm -v `pwd`:/kafe:z kafe/fedora:34-build
mkdir -p build-artifact/fedora-34/
cp build/fedora/34/kafe-cli-*.rpm build-artifact/fedora-34/
cp build/fedora/34/libkafe-*.rpm build-artifact/fedora-34/
for f in build-artifact/fedora-34/*; do mv -v "$$f" `sed "s/\.rpm/\.f34\.rpm/" <<< "$$f"`; done
build-fedora-35:
-rm -rf build-artifact/fedora-35/
if [[ "$(docker images -q "kafe/fedora:35-build" 2> /dev/null)" == "" ]]; then \
docker build -t kafe/fedora:35-build dist/fedora/35; \
fi
docker run -it --rm -v `pwd`:/kafe:z kafe/fedora:35-build
mkdir -p build-artifact/fedora-35/
cp build/fedora/35/kafe-cli-*.rpm build-artifact/fedora-35/
cp build/fedora/35/libkafe-*.rpm build-artifact/fedora-35/
for f in build-artifact/fedora-35/*; do mv -v "$$f" `sed "s/\.rpm/\.f35\.rpm/" <<< "$$f"`; done
build-fedora-36:
-rm -rf build-artifact/fedora-36/
if [[ "$(docker images -q "kafe/fedora:36-build" 2> /dev/null)" == "" ]]; then \
docker build -t kafe/fedora:36-build dist/fedora/36; \
fi
docker run -it --rm -v `pwd`:/kafe:z kafe/fedora:36-build
mkdir -p build-artifact/fedora-36/
cp build/fedora/36/kafe-cli-*.rpm build-artifact/fedora-36/
cp build/fedora/36/libkafe-*.rpm build-artifact/fedora-36/
for f in build-artifact/fedora-36/*; do mv -v "$$f" `sed "s/\.rpm/\.f36\.rpm/" <<< "$$f"`; done
build-all: clean \
build-el-7 \
build-el-8 \
build-debian-9 \
build-debian-10 \
build-debian-11 \
build-debian-12 \
build-ubuntu-1804 \
build-ubuntu-2004 \
build-ubuntu-2204 \
build-fedora-31 \
build-fedora-32 \
build-fedora-33 \
build-fedora-34 \
build-fedora-35 \
build-fedora-36
publish-el-7:
cloudsmith push rpm kafe/libkafe/el/7 build-artifact/centos-7/kafe-cli-1.1.6-1.x86_64.el7.rpm
cloudsmith push rpm kafe/libkafe/el/7 build-artifact/centos-7/libkafe-1.1.6-1.x86_64.el7.rpm
cloudsmith push rpm kafe/libkafe/el/7 build-artifact/centos-7/libkafe-devel-1.1.6-1.x86_64.el7.rpm
publish-el-8:
cloudsmith push rpm kafe/libkafe/el/8 build-artifact/almalinux-8/kafe-cli-1.1.6-1.x86_64.el8.rpm
cloudsmith push rpm kafe/libkafe/el/8 build-artifact/almalinux-8/libkafe-1.1.6-1.x86_64.el8.rpm
cloudsmith push rpm kafe/libkafe/el/8 build-artifact/almalinux-8/libkafe-devel-1.1.6-1.x86_64.el8.rpm
publish-debian-9:
cloudsmith push deb kafe/libkafe/debian/stretch build-artifact/debian-9/kafe-cli_1.1.6_amd64.deb9.deb
cloudsmith push deb kafe/libkafe/debian/stretch build-artifact/debian-9/libkafe_1.1.6_amd64.deb9.deb
cloudsmith push deb kafe/libkafe/debian/stretch build-artifact/debian-9/libkafe-dev_1.1.6_amd64.deb9.deb
publish-debian-10:
cloudsmith push deb kafe/libkafe/debian/buster build-artifact/debian-10/kafe-cli_1.1.6_amd64.deb10.deb
cloudsmith push deb kafe/libkafe/debian/buster build-artifact/debian-10/libkafe_1.1.6_amd64.deb10.deb
cloudsmith push deb kafe/libkafe/debian/buster build-artifact/debian-10/libkafe-dev_1.1.6_amd64.deb10.deb
publish-debian-11:
cloudsmith push deb kafe/libkafe/debian/bullseye build-artifact/debian-11/kafe-cli_1.1.6_amd64.deb11.deb
cloudsmith push deb kafe/libkafe/debian/bullseye build-artifact/debian-11/libkafe_1.1.6_amd64.deb11.deb
cloudsmith push deb kafe/libkafe/debian/bullseye build-artifact/debian-11/libkafe-dev_1.1.6_amd64.deb11.deb
publish-debian-12:
cloudsmith push deb kafe/libkafe/debian/bookworm build-artifact/debian-12/kafe-cli_1.1.6_amd64.deb12.deb
cloudsmith push deb kafe/libkafe/debian/bookworm build-artifact/debian-12/libkafe_1.1.6_amd64.deb12.deb
cloudsmith push deb kafe/libkafe/debian/bookworm build-artifact/debian-12/libkafe-dev_1.1.6_amd64.deb12.deb
publish-ubuntu-1804:
cloudsmith push deb kafe/libkafe/ubuntu/bionic build-artifact/ubuntu-1804/kafe-cli_1.1.6_amd64.ubu1804.deb
cloudsmith push deb kafe/libkafe/ubuntu/bionic build-artifact/ubuntu-1804/libkafe_1.1.6_amd64.ubu1804.deb
cloudsmith push deb kafe/libkafe/ubuntu/bionic build-artifact/ubuntu-1804/libkafe-dev_1.1.6_amd64.ubu1804.deb
publish-ubuntu-2004:
cloudsmith push deb kafe/libkafe/ubuntu/focal build-artifact/ubuntu-2004/kafe-cli_1.1.6_amd64.ubu2004.deb
cloudsmith push deb kafe/libkafe/ubuntu/focal build-artifact/ubuntu-2004/libkafe_1.1.6_amd64.ubu2004.deb
cloudsmith push deb kafe/libkafe/ubuntu/focal build-artifact/ubuntu-2004/libkafe-dev_1.1.6_amd64.ubu2004.deb
publish-ubuntu-2204:
cloudsmith push deb kafe/libkafe/ubuntu/jammy build-artifact/ubuntu-2204/kafe-cli_1.1.6_amd64.ubu2204.deb
cloudsmith push deb kafe/libkafe/ubuntu/jammy build-artifact/ubuntu-2204/libkafe_1.1.6_amd64.ubu2204.deb
cloudsmith push deb kafe/libkafe/ubuntu/jammy build-artifact/ubuntu-2204/libkafe-dev_1.1.6_amd64.ubu2204.deb
publish-fedora-31:
cloudsmith push rpm kafe/libkafe/fedora/31 build-artifact/fedora-31/kafe-cli-1.1.6-1.x86_64.f31.rpm
cloudsmith push rpm kafe/libkafe/fedora/31 build-artifact/fedora-31/libkafe-1.1.6-1.x86_64.f31.rpm
cloudsmith push rpm kafe/libkafe/fedora/31 build-artifact/fedora-31/libkafe-devel-1.1.6-1.x86_64.f31.rpm
publish-fedora-32:
cloudsmith push rpm kafe/libkafe/fedora/32 build-artifact/fedora-32/kafe-cli-1.1.6-1.x86_64.f32.rpm
cloudsmith push rpm kafe/libkafe/fedora/32 build-artifact/fedora-32/libkafe-1.1.6-1.x86_64.f32.rpm
cloudsmith push rpm kafe/libkafe/fedora/32 build-artifact/fedora-32/libkafe-devel-1.1.6-1.x86_64.f32.rpm
publish-fedora-33:
cloudsmith push rpm kafe/libkafe/fedora/33 build-artifact/fedora-33/kafe-cli-1.1.6-1.x86_64.f33.rpm
cloudsmith push rpm kafe/libkafe/fedora/33 build-artifact/fedora-33/libkafe-1.1.6-1.x86_64.f33.rpm
cloudsmith push rpm kafe/libkafe/fedora/33 build-artifact/fedora-33/libkafe-devel-1.1.6-1.x86_64.f33.rpm
publish-fedora-34:
cloudsmith push rpm kafe/libkafe/fedora/34 build-artifact/fedora-34/kafe-cli-1.1.6-1.x86_64.f34.rpm
cloudsmith push rpm kafe/libkafe/fedora/34 build-artifact/fedora-34/libkafe-1.1.6-1.x86_64.f34.rpm
cloudsmith push rpm kafe/libkafe/fedora/34 build-artifact/fedora-34/libkafe-devel-1.1.6-1.x86_64.f34.rpm
publish-fedora-35:
cloudsmith push rpm kafe/libkafe/fedora/35 build-artifact/fedora-35/kafe-cli-1.1.6-1.x86_64.f35.rpm
cloudsmith push rpm kafe/libkafe/fedora/35 build-artifact/fedora-35/libkafe-1.1.6-1.x86_64.f35.rpm
cloudsmith push rpm kafe/libkafe/fedora/35 build-artifact/fedora-35/libkafe-devel-1.1.6-1.x86_64.f35.rpm
publish-fedora-36:
cloudsmith push rpm kafe/libkafe/fedora/36 build-artifact/fedora-36/kafe-cli-1.1.6-1.x86_64.f36.rpm
cloudsmith push rpm kafe/libkafe/fedora/36 build-artifact/fedora-36/libkafe-1.1.6-1.x86_64.f36.rpm
cloudsmith push rpm kafe/libkafe/fedora/36 build-artifact/fedora-36/libkafe-devel-1.1.6-1.x86_64.f36.rpm
publish-all: \
publish-el-7 \
publish-el-8 \
publish-debian-9 \
publish-debian-10 \
publish-debian-11 \
publish-debian-12 \
publish-ubuntu-1804 \
publish-ubuntu-2004 \
publish-ubuntu-2204 \
publish-fedora-31 \
publish-fedora-32 \
publish-fedora-33 \
publish-fedora-34 \
publish-fedora-35 \
publish-fedora-36