ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/Makefile
Revision: 1.3
Committed: 1999-10-03T17:11:52Z (25 years, 1 month ago) by cebix
Branch: MAIN
Changes since 1.2: +28 -16 lines
Log Message:
- moved installation instructions to file INSTALL
- updated BasiliskII.spec and top-level Makefile

File Contents

# User Rev Content
1 cebix 1.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 cebix 1.2 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 cebix 1.3 DOCS = ChangeLog COPYING INSTALL README TECH TODO
11     SRCS = src
12    
13     default:
14     @echo "This top-level Makefile is for creating Basilisk II distributions."
15     @echo "If you want to install Basilisk II on your system, please follow"
16     @echo "the instructions in the file INSTALL."
17     @echo "If you want to create a Basilisk II distribution, type \"make help\""
18     @echo "to get a list of possible targets."
19    
20     help:
21     @echo "The following targets are available:"
22     @echo " tarball source tarball ($(SRCARCHIVE))"
23     @echo " rpm source and binary RPMs"
24     @echo " amiga AmigaOS binary archive ($(AMIGAARCHIVE))"
25     @echo " beosppc BeOS/ppc binary archive ($(BEOSPPCARCHIVE))"
26     @echo " beosx86 BeOS/x86 binary archive ($(BEOSX86ARCHIVE))"
27 cebix 1.1
28     #
29     # Source tarball
30     #
31 cebix 1.2 tarball: $(SRCARCHIVE)
32 cebix 1.1
33 cebix 1.3 $(SRCARCHIVE): $(SRCS) $(DOCS)
34 cebix 1.1 -rm -rf $(BUILDDIR)
35     mkdir $(BUILDDIR)
36     cd $(BUILDDIR); cvs checkout BasiliskII
37 cebix 1.3 rm -rf $(BUILDDIR)/BasiliskII/src/powerrom_cpu #not yet ready for distribution
38 cebix 1.1 cd $(BUILDDIR); tar cfz $@ BasiliskII
39     mv $(BUILDDIR)/$@ .
40     rm -rf $(BUILDDIR)
41    
42     #
43 cebix 1.3 # RPMs
44 cebix 1.1 #
45 cebix 1.3 rpm: /usr/src/redhat/SOURCES/$(SRCARCHIVE) BasiliskII.spec
46     rpm -ba BasiliskII.spec
47 cebix 1.1
48 cebix 1.3 /usr/src/redhat/SOURCES/$(SRCARCHIVE): $(SRCARCHIVE)
49     cp $(SRCARCHIVE) /usr/src/redhat/SOURCES
50 cebix 1.2
51     #
52     # Binary archive for AmigaOS
53     #
54     amiga: $(AMIGAARCHIVE)
55    
56 cebix 1.3 $(AMIGAARCHIVE): $(SRCS) $(DOCS) src/AmigaOS/BasiliskII
57 cebix 1.2 -rm -rf $(BUILDDIR)
58     mkdir $(BUILDDIR)
59     mkdir $(BUILDDIR)/BasiliskII
60     cp $(DOCS) $(BUILDDIR)/BasiliskII
61     cp src/AmigaOS/BasiliskII $(BUILDDIR)/BasiliskII
62     cp src/AmigaOS/BasiliskII.info $(BUILDDIR)/BasiliskII.info
63 cebix 1.3 cd $(BUILDDIR); lha a $@ BasiliskII
64 cebix 1.2 mv $(BUILDDIR)/$@ .
65     rm -rf $(BUILDDIR)
66    
67     #
68     # Binary archive for BeOS/ppc
69     #
70     beosppc: $(BEOSPPCARCHIVE)
71    
72 cebix 1.3 $(BEOSPPCARCHIVE): $(SRCS) $(DOCS) src/BeOS/obj.ppc/BasiliskII
73 cebix 1.2 -rm -rf $(BUILDDIR)
74     mkdir $(BUILDDIR)
75     mkdir $(BUILDDIR)/BasiliskII
76     cp $(DOCS) $(BUILDDIR)/BasiliskII
77     mv src/BeOS/obj.ppc/BasiliskII $(BUILDDIR)/BasiliskII
78     cd $(BUILDDIR); zip -ry $@ BasiliskII/
79     mv $(BUILDDIR)/$@ .
80     rm -rf $(BUILDDIR)
81    
82     #
83     # Binary archive for BeOS/x86
84     #
85     beosx86: $(BEOSX86ARCHIVE)
86    
87 cebix 1.3 $(BEOSX86ARCHIVE): $(SRCS) $(DOCS) src/BeOS/obj.x86/BasiliskII
88 cebix 1.2 -rm -rf $(BUILDDIR)
89     mkdir $(BUILDDIR)
90     mkdir $(BUILDDIR)/BasiliskII
91     cp $(DOCS) $(BUILDDIR)/BasiliskII
92     mv src/BeOS/obj.x86/BasiliskII $(BUILDDIR)/BasiliskII
93     cd $(BUILDDIR); zip -ry $@ BasiliskII/
94     mv $(BUILDDIR)/$@ .
95     rm -rf $(BUILDDIR)