forked from emutos/emutos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.mk
405 lines (380 loc) · 17.1 KB
/
release.mk
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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
#
# release.mk - Makefile fragment for building releases
#
# Copyright (C) 2011-2021 The EmuTOS development team.
#
# Authors:
# VRI Vincent Rivière
#
# This file is distributed under the GPL, version 2 or at your
# option any later version. See doc/license.txt for details.
#
#
# This file contains the targets used to build the release archives.
# It is included from the main Makefile.
#
# This subset of the doc directory will be included in all the binary archives
DOCFILES = doc/announce.txt doc/authors.txt doc/bugs.txt doc/changelog.txt \
doc/emudesk.txt doc/incompatible.txt doc/license.txt doc/status.txt \
doc/todo.txt doc/xhdi.txt
# This subset of the extras directory will be included in all the binary archives
# that have a desktop
EXTRAFILES = extras/*
# The archives will be placed into this directory
RELEASE_DIR = release-archives
.PHONY: release-clean
NODEP += release-clean
release-clean:
rm -rf $(RELEASE_DIR)
.PHONY: release-mkdir
NODEP += release-mkdir
release-mkdir:
mkdir $(RELEASE_DIR)
.PHONY: release-src
NODEP += release-src
RELEASE_SRC = emutos-src-$(VERSION)
release-src:
mkdir $(RELEASE_DIR)/$(RELEASE_SRC)
cp -R $(filter-out . .. .git $(RELEASE_DIR), $(shell echo * .*)) $(RELEASE_DIR)/$(RELEASE_SRC)
find $(RELEASE_DIR)/$(RELEASE_SRC) -type d -exec chmod 755 '{}' ';'
find $(RELEASE_DIR)/$(RELEASE_SRC) -type f -exec chmod 644 '{}' ';'
find $(RELEASE_DIR)/$(RELEASE_SRC) -type f -name '*.sh' -exec chmod 755 '{}' ';'
tar -C $(RELEASE_DIR) --owner=0 --group=0 -zcf $(RELEASE_DIR)/$(RELEASE_SRC).tar.gz $(RELEASE_SRC)
rm -r $(RELEASE_DIR)/$(RELEASE_SRC)
.PHONY: release-1024k
NODEP += release-1024k
RELEASE_1024K = emutos-1024k-$(VERSION)
release-1024k:
$(MAKE) clean
$(MAKE) 1024
mkdir $(RELEASE_DIR)/$(RELEASE_1024K)
cp etos1024k.img etos1024k.sym $(RELEASE_DIR)/$(RELEASE_1024K)
cp desk/icon.def $(RELEASE_DIR)/$(RELEASE_1024K)/emuicon.def
cp desk/icon.rsc $(RELEASE_DIR)/$(RELEASE_1024K)/emuicon.rsc
cat doc/readme-1024k.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_1024K)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_1024K)/doc
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_1024K)/doc
mkdir $(RELEASE_DIR)/$(RELEASE_1024K)/extras
cp $(EXTRAFILES) $(RELEASE_DIR)/$(RELEASE_1024K)/extras
cp aes/mform.def $(RELEASE_DIR)/$(RELEASE_1024K)/extras/emucurs.def
cp aes/mform.rsc $(RELEASE_DIR)/$(RELEASE_1024K)/extras/emucurs.rsc
find $(RELEASE_DIR)/$(RELEASE_1024K) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_1024K).zip $(RELEASE_1024K)
rm -r $(RELEASE_DIR)/$(RELEASE_1024K)
.PHONY: release-512k
NODEP += release-512k
RELEASE_512K = emutos-512k-$(VERSION)
release-512k:
$(MAKE) clean
$(MAKE) all512
mkdir $(RELEASE_DIR)/$(RELEASE_512K)
cp etos512*.img $(RELEASE_DIR)/$(RELEASE_512K)
cp desk/icon.def $(RELEASE_DIR)/$(RELEASE_512K)/emuicon.def
cp desk/icon.rsc $(RELEASE_DIR)/$(RELEASE_512K)/emuicon.rsc
cat doc/readme-512k.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_512K)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_512K)/doc
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_512K)/doc
mkdir $(RELEASE_DIR)/$(RELEASE_512K)/extras
cp $(EXTRAFILES) $(RELEASE_DIR)/$(RELEASE_512K)/extras
cp aes/mform.def $(RELEASE_DIR)/$(RELEASE_512K)/extras/emucurs.def
cp aes/mform.rsc $(RELEASE_DIR)/$(RELEASE_512K)/extras/emucurs.rsc
find $(RELEASE_DIR)/$(RELEASE_512K) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_512K).zip $(RELEASE_512K)
rm -r $(RELEASE_DIR)/$(RELEASE_512K)
.PHONY: release-256k
NODEP += release-256k
RELEASE_256K = emutos-256k-$(VERSION)
release-256k:
$(MAKE) clean
$(MAKE) all256
mkdir $(RELEASE_DIR)/$(RELEASE_256K)
cp etos256*.img $(RELEASE_DIR)/$(RELEASE_256K)
cp desk/icon.def $(RELEASE_DIR)/$(RELEASE_256K)/emuicon.def
cp desk/icon.rsc $(RELEASE_DIR)/$(RELEASE_256K)/emuicon.rsc
cat doc/readme-256k.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_256K)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_256K)/doc
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_256K)/doc
mkdir $(RELEASE_DIR)/$(RELEASE_256K)/extras
cp $(EXTRAFILES) $(RELEASE_DIR)/$(RELEASE_256K)/extras
cp aes/mform.def $(RELEASE_DIR)/$(RELEASE_256K)/extras/emucurs.def
cp aes/mform.rsc $(RELEASE_DIR)/$(RELEASE_256K)/extras/emucurs.rsc
find $(RELEASE_DIR)/$(RELEASE_256K) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_256K).zip $(RELEASE_256K)
rm -r $(RELEASE_DIR)/$(RELEASE_256K)
.PHONY: release-192k
NODEP += release-192k
RELEASE_192K = emutos-192k-$(VERSION)
release-192k:
$(MAKE) clean
$(MAKE) all192
mkdir $(RELEASE_DIR)/$(RELEASE_192K)
cp etos192*.img $(RELEASE_DIR)/$(RELEASE_192K)
cp desk/icon.def $(RELEASE_DIR)/$(RELEASE_192K)/emuicon.def
cp desk/icon.rsc $(RELEASE_DIR)/$(RELEASE_192K)/emuicon.rsc
cat doc/readme-192k.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_192K)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_192K)/doc
find $(RELEASE_DIR)/$(RELEASE_192K) -name '*.txt' -exec unix2dos '{}' ';'
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_192K)/doc
mkdir $(RELEASE_DIR)/$(RELEASE_192K)/extras
cp $(EXTRAFILES) $(RELEASE_DIR)/$(RELEASE_192K)/extras
cp aes/mform.def $(RELEASE_DIR)/$(RELEASE_192K)/extras/emucurs.def
cp aes/mform.rsc $(RELEASE_DIR)/$(RELEASE_192K)/extras/emucurs.rsc
find $(RELEASE_DIR)/$(RELEASE_192K) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_192K).zip $(RELEASE_192K)
rm -r $(RELEASE_DIR)/$(RELEASE_192K)
.PHONY: release-cartridge
NODEP += release-cartridge
RELEASE_CARTRIDGE = emutos-cartridge-$(VERSION)
release-cartridge:
$(MAKE) clean
$(MAKE) cart
mkdir $(RELEASE_DIR)/$(RELEASE_CARTRIDGE)
cp $(ROM_CARTRIDGE) $(RELEASE_DIR)/$(RELEASE_CARTRIDGE)
cp emutos.stc $(RELEASE_DIR)/$(RELEASE_CARTRIDGE)
cat doc/readme-cartridge.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_CARTRIDGE)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_CARTRIDGE)/doc
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_CARTRIDGE)/doc
find $(RELEASE_DIR)/$(RELEASE_CARTRIDGE) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_CARTRIDGE).zip $(RELEASE_CARTRIDGE)
rm -r $(RELEASE_DIR)/$(RELEASE_CARTRIDGE)
.PHONY: release-aranym
NODEP += release-aranym
RELEASE_ARANYM = emutos-aranym-$(VERSION)
release-aranym:
$(MAKE) clean
$(MAKE) aranym
mkdir $(RELEASE_DIR)/$(RELEASE_ARANYM)
cp $(ROM_ARANYM) $(RELEASE_DIR)/$(RELEASE_ARANYM)
cp desk/icon.def $(RELEASE_DIR)/$(RELEASE_ARANYM)/emuicon.def
cp desk/icon.rsc $(RELEASE_DIR)/$(RELEASE_ARANYM)/emuicon.rsc
cat doc/readme-aranym.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_ARANYM)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_ARANYM)/doc
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_ARANYM)/doc
mkdir $(RELEASE_DIR)/$(RELEASE_ARANYM)/extras
cp $(EXTRAFILES) $(RELEASE_DIR)/$(RELEASE_ARANYM)/extras
cp aes/mform.def $(RELEASE_DIR)/$(RELEASE_ARANYM)/extras/emucurs.def
cp aes/mform.rsc $(RELEASE_DIR)/$(RELEASE_ARANYM)/extras/emucurs.rsc
find $(RELEASE_DIR)/$(RELEASE_ARANYM) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_ARANYM).zip $(RELEASE_ARANYM)
rm -r $(RELEASE_DIR)/$(RELEASE_ARANYM)
.PHONY: release-firebee
NODEP += release-firebee
RELEASE_FIREBEE = emutos-firebee-$(VERSION)
release-firebee:
$(MAKE) clean
$(MAKE) firebee
mkdir $(RELEASE_DIR)/$(RELEASE_FIREBEE)
cp $(SREC_FIREBEE) $(RELEASE_DIR)/$(RELEASE_FIREBEE)
cp desk/icon.def $(RELEASE_DIR)/$(RELEASE_FIREBEE)/emuicon.def
cp desk/icon.rsc $(RELEASE_DIR)/$(RELEASE_FIREBEE)/emuicon.rsc
cat doc/readme-firebee.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_FIREBEE)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_FIREBEE)/doc
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_FIREBEE)/doc
mkdir $(RELEASE_DIR)/$(RELEASE_FIREBEE)/extras
cp $(EXTRAFILES) $(RELEASE_DIR)/$(RELEASE_FIREBEE)/extras
cp aes/mform.def $(RELEASE_DIR)/$(RELEASE_FIREBEE)/extras/emucurs.def
cp aes/mform.rsc $(RELEASE_DIR)/$(RELEASE_FIREBEE)/extras/emucurs.rsc
find $(RELEASE_DIR)/$(RELEASE_FIREBEE) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_FIREBEE).zip $(RELEASE_FIREBEE)
rm -r $(RELEASE_DIR)/$(RELEASE_FIREBEE)
.PHONY: release-amiga-rom
NODEP += release-amiga-rom
RELEASE_AMIGA_ROM = emutos-amiga-rom-$(VERSION)
release-amiga-rom:
$(MAKE) clean
$(MAKE) amigakd
mkdir $(RELEASE_DIR)/$(RELEASE_AMIGA_ROM)
cp $(ROM_AMIGA) $(RELEASE_DIR)/$(RELEASE_AMIGA_ROM)
cp $(AMIGA_KICKDISK) $(RELEASE_DIR)/$(RELEASE_AMIGA_ROM)
$(MAKE) clean
$(MAKE) amigavampire
cp $(VAMPIRE_ROM_AMIGA) $(RELEASE_DIR)/$(RELEASE_AMIGA_ROM)
$(MAKE) clean
$(MAKE) v4sa
cp $(V4_ROM_AMIGA) $(RELEASE_DIR)/$(RELEASE_AMIGA_ROM)
cp desk/icon.def $(RELEASE_DIR)/$(RELEASE_AMIGA_ROM)/emuicon.def
cp desk/icon.rsc $(RELEASE_DIR)/$(RELEASE_AMIGA_ROM)/emuicon.rsc
cat doc/readme-amiga-rom.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_AMIGA_ROM)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_AMIGA_ROM)/doc
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_AMIGA_ROM)/doc
mkdir $(RELEASE_DIR)/$(RELEASE_AMIGA_ROM)/extras
cp $(EXTRAFILES) $(RELEASE_DIR)/$(RELEASE_AMIGA_ROM)/extras
cp aes/mform.def $(RELEASE_DIR)/$(RELEASE_AMIGA_ROM)/extras/emucurs.def
cp aes/mform.rsc $(RELEASE_DIR)/$(RELEASE_AMIGA_ROM)/extras/emucurs.rsc
find $(RELEASE_DIR)/$(RELEASE_AMIGA_ROM) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_AMIGA_ROM).zip $(RELEASE_AMIGA_ROM)
rm -r $(RELEASE_DIR)/$(RELEASE_AMIGA_ROM)
.PHONY: release-amiga-floppy
NODEP += release-amiga-floppy
RELEASE_AMIGA_FLOPPY = emutos-amiga-floppy-$(VERSION)
release-amiga-floppy:
$(MAKE) clean
$(MAKE) amigaflop
mkdir $(RELEASE_DIR)/$(RELEASE_AMIGA_FLOPPY)
cp $(EMUTOS_ADF) $(RELEASE_DIR)/$(RELEASE_AMIGA_FLOPPY)
$(MAKE) clean
$(MAKE) amigaflopvampire
cp $(EMUTOS_VAMPIRE_ADF) $(RELEASE_DIR)/$(RELEASE_AMIGA_FLOPPY)
cp desk/icon.def $(RELEASE_DIR)/$(RELEASE_AMIGA_FLOPPY)/emuicon.def
cp desk/icon.rsc $(RELEASE_DIR)/$(RELEASE_AMIGA_FLOPPY)/emuicon.rsc
cat doc/readme-amiga-floppy.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_AMIGA_FLOPPY)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_AMIGA_FLOPPY)/doc
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_AMIGA_FLOPPY)/doc
mkdir $(RELEASE_DIR)/$(RELEASE_AMIGA_FLOPPY)/extras
cp $(EXTRAFILES) $(RELEASE_DIR)/$(RELEASE_AMIGA_FLOPPY)/extras
cp aes/mform.def $(RELEASE_DIR)/$(RELEASE_AMIGA_FLOPPY)/extras/emucurs.def
cp aes/mform.rsc $(RELEASE_DIR)/$(RELEASE_AMIGA_FLOPPY)/extras/emucurs.rsc
find $(RELEASE_DIR)/$(RELEASE_AMIGA_FLOPPY) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_AMIGA_FLOPPY).zip $(RELEASE_AMIGA_FLOPPY)
rm -r $(RELEASE_DIR)/$(RELEASE_AMIGA_FLOPPY)
.PHONY: release-lisa
NODEP += release-lisa
RELEASE_LISA = emutos-lisa-$(VERSION)
release-lisa:
$(MAKE) clean
$(MAKE) lisaflop
mkdir $(RELEASE_DIR)/$(RELEASE_LISA)
cp $(EMUTOS_DC42) $(RELEASE_DIR)/$(RELEASE_LISA)
cp desk/icon.def $(RELEASE_DIR)/$(RELEASE_LISA)/emuicon.def
cp desk/icon.rsc $(RELEASE_DIR)/$(RELEASE_LISA)/emuicon.rsc
cat doc/readme-lisa.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_LISA)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_LISA)/doc
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_LISA)/doc
mkdir $(RELEASE_DIR)/$(RELEASE_LISA)/extras
cp $(EXTRAFILES) $(RELEASE_DIR)/$(RELEASE_LISA)/extras
cp aes/mform.def $(RELEASE_DIR)/$(RELEASE_LISA)/extras/emucurs.def
cp aes/mform.rsc $(RELEASE_DIR)/$(RELEASE_LISA)/extras/emucurs.rsc
find $(RELEASE_DIR)/$(RELEASE_LISA) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_LISA).zip $(RELEASE_LISA)
rm -r $(RELEASE_DIR)/$(RELEASE_LISA)
.PHONY: release-m548x-dbug
NODEP += release-m548x-dbug
RELEASE_M548X_DBUG = emutos-m548x-dbug-$(VERSION)
release-m548x-dbug:
$(MAKE) clean
$(MAKE) m548x-dbug
mkdir $(RELEASE_DIR)/$(RELEASE_M548X_DBUG)
cp $(SREC_M548X_DBUG) $(RELEASE_DIR)/$(RELEASE_M548X_DBUG)
cat doc/readme-m548x-dbug.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_M548X_DBUG)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_M548X_DBUG)/doc
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_M548X_DBUG)/doc
find $(RELEASE_DIR)/$(RELEASE_M548X_DBUG) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_M548X_DBUG).zip $(RELEASE_M548X_DBUG)
rm -r $(RELEASE_DIR)/$(RELEASE_M548X_DBUG)
.PHONY: release-m548x-bas
NODEP += release-m548x-bas
RELEASE_M548X_BAS = emutos-m548x-bas-$(VERSION)
release-m548x-bas:
$(MAKE) clean
$(MAKE) m548x-bas
mkdir $(RELEASE_DIR)/$(RELEASE_M548X_BAS)
cp $(SREC_M548X_BAS) $(RELEASE_DIR)/$(RELEASE_M548X_BAS)
cat doc/readme-m548x-bas.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_M548X_BAS)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_M548X_BAS)/doc
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_M548X_BAS)/doc
find $(RELEASE_DIR)/$(RELEASE_M548X_BAS) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_M548X_BAS).zip $(RELEASE_M548X_BAS)
rm -r $(RELEASE_DIR)/$(RELEASE_M548X_BAS)
.PHONY: release-prg
NODEP += release-prg
RELEASE_PRG = emutos-prg-$(VERSION)
release-prg:
$(MAKE) clean
$(MAKE) allprg
mkdir $(RELEASE_DIR)/$(RELEASE_PRG)
cp emutos*.prg $(RELEASE_DIR)/$(RELEASE_PRG)
cp desk/icon.def $(RELEASE_DIR)/$(RELEASE_PRG)/emuicon.def
cp desk/icon.rsc $(RELEASE_DIR)/$(RELEASE_PRG)/emuicon.rsc
cat doc/readme-prg.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_PRG)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_PRG)/doc
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_PRG)/doc
mkdir $(RELEASE_DIR)/$(RELEASE_PRG)/extras
cp $(EXTRAFILES) $(RELEASE_DIR)/$(RELEASE_PRG)/extras
cp aes/mform.def $(RELEASE_DIR)/$(RELEASE_PRG)/extras/emucurs.def
cp aes/mform.rsc $(RELEASE_DIR)/$(RELEASE_PRG)/extras/emucurs.rsc
find $(RELEASE_DIR)/$(RELEASE_PRG) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_PRG).zip $(RELEASE_PRG)
rm -r $(RELEASE_DIR)/$(RELEASE_PRG)
.PHONY: release-prg256
NODEP += release-prg256
RELEASE_PRG256 = emutos-prg256-$(VERSION)
release-prg256:
$(MAKE) clean
$(MAKE) allprg256
mkdir $(RELEASE_DIR)/$(RELEASE_PRG256)
cp emu256*.prg $(RELEASE_DIR)/$(RELEASE_PRG256)
cp desk/icon.def $(RELEASE_DIR)/$(RELEASE_PRG256)/emuicon.def
cp desk/icon.rsc $(RELEASE_DIR)/$(RELEASE_PRG256)/emuicon.rsc
cat doc/readme-prg256.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_PRG256)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_PRG256)/doc
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_PRG256)/doc
mkdir $(RELEASE_DIR)/$(RELEASE_PRG256)/extras
cp $(EXTRAFILES) $(RELEASE_DIR)/$(RELEASE_PRG256)/extras
cp aes/mform.def $(RELEASE_DIR)/$(RELEASE_PRG256)/extras/emucurs.def
cp aes/mform.rsc $(RELEASE_DIR)/$(RELEASE_PRG256)/extras/emucurs.rsc
find $(RELEASE_DIR)/$(RELEASE_PRG256) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_PRG256).zip $(RELEASE_PRG256)
rm -r $(RELEASE_DIR)/$(RELEASE_PRG256)
.PHONY: release-floppy
NODEP += release-floppy
RELEASE_FLOPPY = emutos-floppy-$(VERSION)
release-floppy:
$(MAKE) clean
$(MAKE) allflop
mkdir $(RELEASE_DIR)/$(RELEASE_FLOPPY)
cp emutos*.st $(RELEASE_DIR)/$(RELEASE_FLOPPY)
cp desk/icon.def $(RELEASE_DIR)/$(RELEASE_FLOPPY)/emuicon.def
cp desk/icon.rsc $(RELEASE_DIR)/$(RELEASE_FLOPPY)/emuicon.rsc
cat doc/readme-floppy.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_FLOPPY)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_FLOPPY)/doc
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_FLOPPY)/doc
mkdir $(RELEASE_DIR)/$(RELEASE_FLOPPY)/extras
cp $(EXTRAFILES) $(RELEASE_DIR)/$(RELEASE_FLOPPY)/extras
cp aes/mform.def $(RELEASE_DIR)/$(RELEASE_FLOPPY)/extras/emucurs.def
cp aes/mform.rsc $(RELEASE_DIR)/$(RELEASE_FLOPPY)/extras/emucurs.rsc
find $(RELEASE_DIR)/$(RELEASE_FLOPPY) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_FLOPPY).zip $(RELEASE_FLOPPY)
rm -r $(RELEASE_DIR)/$(RELEASE_FLOPPY)
.PHONY: release-pak3
NODEP += release-pak3
RELEASE_PAK3 = emutos-pak3-$(VERSION)
release-pak3:
$(MAKE) clean
$(MAKE) allpak3
mkdir $(RELEASE_DIR)/$(RELEASE_PAK3)
cp etospak3*.img $(RELEASE_DIR)/$(RELEASE_PAK3)
cp desk/icon.def $(RELEASE_DIR)/$(RELEASE_PAK3)/emuicon.def
cp desk/icon.rsc $(RELEASE_DIR)/$(RELEASE_PAK3)/emuicon.rsc
cat doc/readme-pak3.txt readme.txt >$(RELEASE_DIR)/$(RELEASE_PAK3)/readme.txt
mkdir $(RELEASE_DIR)/$(RELEASE_PAK3)/doc
cp $(DOCFILES) $(RELEASE_DIR)/$(RELEASE_PAK3)/doc
mkdir $(RELEASE_DIR)/$(RELEASE_PAK3)/extras
cp $(EXTRAFILES) $(RELEASE_DIR)/$(RELEASE_PAK3)/extras
cp aes/mform.def $(RELEASE_DIR)/$(RELEASE_PAK3)/extras/emucurs.def
cp aes/mform.rsc $(RELEASE_DIR)/$(RELEASE_PAK3)/extras/emucurs.rsc
find $(RELEASE_DIR)/$(RELEASE_PAK3) -name '*.txt' -exec unix2dos '{}' ';'
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_PAK3).zip $(RELEASE_PAK3)
rm -r $(RELEASE_DIR)/$(RELEASE_PAK3)
.PHONY: release-emucon
NODEP += release-emucon
RELEASE_EMUCON = emucon
release-emucon:
$(MAKE) clean
cd cli && make
mkdir $(RELEASE_DIR)/$(RELEASE_EMUCON)
cp cli/emucon2.tos $(RELEASE_DIR)/$(RELEASE_EMUCON)
cp cli/readme.txt $(RELEASE_DIR)/$(RELEASE_EMUCON)
unix2dos $(RELEASE_DIR)/$(RELEASE_EMUCON)/readme.txt
cd $(RELEASE_DIR) && zip -9 -r $(RELEASE_EMUCON)-$(VERSION).zip $(RELEASE_EMUCON)
rm -r $(RELEASE_DIR)/$(RELEASE_EMUCON)
# Main goal to build a full release distribution
.PHONY: release
NODEP += release
release: clean release-clean release-mkdir \
release-src release-1024k release-512k release-256k release-192k release-cartridge \
release-aranym release-firebee release-amiga-rom release-amiga-floppy \
release-lisa \
release-m548x-dbug release-m548x-bas release-prg release-prg256 release-floppy \
release-pak3 release-emucon
$(MAKE) clean
@echo '# Packages successfully generated inside $(RELEASE_DIR)'