/[cebix]/BasiliskII/Makefile
ViewVC logotype

Annotation of /BasiliskII/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations)
Sun Oct 3 17:21:45 1999 UTC (15 years, 1 month ago) by cebix
Branch: MAIN
Changes since 1.3: +6 -3 lines
- the directory name of the sources in the tarball now includes the
  version number (taken from the spec file)

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

Christian Bauer">Christian Bauer
ViewVC Help
Powered by ViewVC 1.1.17