ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/Makefile
Revision: 1.2
Committed: 1999-10-03T16:21:28Z (25 years, 1 month ago) by cebix
Branch: MAIN
Changes since 1.1: +58 -6 lines
Log Message:
- updated RPM spec file and top-level Makefile
- renamed CHANGES to ChangeLog

File Contents

# Content
1 # Makefile for creating Basilisk II distributions
2 # Written in 1999 by Christian Bauer <Christian.Bauer@uni-mainz.de>
3
4 SRCARCHIVE = $(shell date +BasiliskII_src_%d%m%Y.tar.gz)
5 AMIGAARCHIVE = $(shell date +BasiliskII_amiga_%d%m%Y.lha)
6 BEOSPPCARCHIVE = $(shell date +BasiliskII_beos_ppc_%d%m%Y.zip)
7 BEOSX86ARCHIVE = $(shell date +BasiliskII_beos_x86_%d%m%Y.zip)
8
9 BUILDDIR = /tmp/build
10 DOCS = CHANGES COPYING README TECH TODO
11 SRC = src
12
13 #
14 # Source tarball
15 #
16 tarball: $(SRCARCHIVE)
17
18 $(SRCARCHIVE): $(SRC) $(DOCS)
19 -rm -rf $(BUILDDIR)
20 mkdir $(BUILDDIR)
21 cd $(BUILDDIR); cvs checkout BasiliskII
22 rm $(BUILDDIR)/BasiliskII/BasiliskII.spec
23 rm $(BUILDDIR)/BasiliskII/Makefile
24 rm -rf $(BUILDDIR)/BasiliskII/src/powerrom_cpu
25 cd $(BUILDDIR); tar cfz $@ BasiliskII
26 mv $(BUILDDIR)/$@ .
27 rm -rf $(BUILDDIR)
28
29 #
30 # Source RPM
31 #
32 srcrpm: $(SRCARCHIVE) BasiliskII.spec
33
34 #
35 # Binary RPM for Unix/i386
36 #
37 i386rpm:
38
39 #
40 # Binary archive for AmigaOS
41 #
42 amiga: $(AMIGAARCHIVE)
43
44 $(AMIGAARCHIVE): $(SRC) $(DOCS) src/AmigaOS/BasiliskII
45 -rm -rf $(BUILDDIR)
46 mkdir $(BUILDDIR)
47 mkdir $(BUILDDIR)/BasiliskII
48 cp $(DOCS) $(BUILDDIR)/BasiliskII
49 cp src/AmigaOS/BasiliskII $(BUILDDIR)/BasiliskII
50 cp src/AmigaOS/BasiliskII.info $(BUILDDIR)/BasiliskII.info
51 cd $(BUILDDIR); lha av $@ BasiliskII
52 mv $(BUILDDIR)/$@ .
53 rm -rf $(BUILDDIR)
54
55 #
56 # Binary archive for BeOS/ppc
57 #
58 beosppc: $(BEOSPPCARCHIVE)
59
60 $(BEOSPPCARCHIVE): $(SRC) $(DOCS) src/BeOS/obj.ppc/BasiliskII
61 -rm -rf $(BUILDDIR)
62 mkdir $(BUILDDIR)
63 mkdir $(BUILDDIR)/BasiliskII
64 cp $(DOCS) $(BUILDDIR)/BasiliskII
65 mv src/BeOS/obj.ppc/BasiliskII $(BUILDDIR)/BasiliskII
66 cd $(BUILDDIR); zip -ry $@ BasiliskII/
67 mv $(BUILDDIR)/$@ .
68 rm -rf $(BUILDDIR)
69
70 #
71 # Binary archive for BeOS/x86
72 #
73 beosx86: $(BEOSX86ARCHIVE)
74
75 $(BEOSX86ARCHIVE): $(SRC) $(DOCS) src/BeOS/obj.x86/BasiliskII
76 -rm -rf $(BUILDDIR)
77 mkdir $(BUILDDIR)
78 mkdir $(BUILDDIR)/BasiliskII
79 cp $(DOCS) $(BUILDDIR)/BasiliskII
80 mv src/BeOS/obj.x86/BasiliskII $(BUILDDIR)/BasiliskII
81 cd $(BUILDDIR); zip -ry $@ BasiliskII/
82 mv $(BUILDDIR)/$@ .
83 rm -rf $(BUILDDIR)