- some minor fixes, BeOS targets now work

This commit is contained in:
cebix 1999-10-04 00:39:43 +00:00
parent aef1ee47d6
commit 0552b208ff

View File

@ -3,15 +3,16 @@
VERSION = $(shell sed <BasiliskII.spec -n '/^Version: */s///p') VERSION = $(shell sed <BasiliskII.spec -n '/^Version: */s///p')
RELEASE = $(shell sed <BasiliskII.spec -n '/^Release: */s///p') RELEASE = $(shell sed <BasiliskII.spec -n '/^Release: */s///p')
VERNAME = BasiliskII-$(VERSION)
SRCARCHIVE = $(shell date +BasiliskII_src_%d%m%Y.tar.gz) SRCARCHIVE = $(shell date +BasiliskII_src_%d%m%Y.tar.gz)
SRCRPM = BasiliskII-$(VERSION)-$(RELEASE).src.rpm SRCRPM = $(VERNAME)-$(RELEASE).src.rpm
I386RPM = BasiliskII-$(VERSION)-$(RELEASE).i386.rpm I386RPM = $(VERNAME)-$(RELEASE).i386.rpm
AMIGAARCHIVE = BasiliskII-$(VERSION)-$(RELEASE).amiga.lha AMIGAARCHIVE = $(VERNAME)-$(RELEASE).amiga.lha
BEOSPPCARCHIVE = BasiliskII-$(VERSION)-$(RELEASE).beosppc.zip BEOSPPCARCHIVE = $(VERNAME)-$(RELEASE).beosppc.zip
BEOSX86ARCHIVE = BasiliskII-$(VERSION)-$(RELEASE).beosx86.zip BEOSX86ARCHIVE = $(VERNAME)-$(RELEASE).beosx86.zip
BUILDDIR = /tmp/build TMPDIR = /tmp/build
RPMDIR = /usr/src/redhat RPMDIR = /usr/src/redhat
DOCS = $(shell sed <BasiliskII.spec -n '/^\%doc */s///p') DOCS = $(shell sed <BasiliskII.spec -n '/^\%doc */s///p')
SRCS = src SRCS = src
@ -33,7 +34,7 @@ help:
clean: clean:
-rm -f $(SRCARCHIVE) -rm -f $(SRCARCHIVE)
-rm -f $(SRCRPM) -rm -f $(SRCRPM) $(I386RPM)
-rm -f $(AMIGAARCHIVE) $(BEOSPPCARCHIVE) $(BEOSX86ARCHIVE) -rm -f $(AMIGAARCHIVE) $(BEOSPPCARCHIVE) $(BEOSX86ARCHIVE)
# #
@ -42,14 +43,14 @@ clean:
tarball: $(SRCARCHIVE) tarball: $(SRCARCHIVE)
$(SRCARCHIVE): $(SRCS) $(DOCS) $(SRCARCHIVE): $(SRCS) $(DOCS)
-rm -rf $(BUILDDIR) -rm -rf $(TMPDIR)
mkdir $(BUILDDIR) mkdir $(TMPDIR)
cd $(BUILDDIR); cvs checkout BasiliskII cd $(TMPDIR); cvs checkout BasiliskII
rm -rf $(BUILDDIR)/BasiliskII/src/powerrom_cpu #not yet ready for distribution rm -rf $(TMPDIR)/BasiliskII/src/powerrom_cpu #not yet ready for distribution
mv $(BUILDDIR)/BasiliskII $(BUILDDIR)/BasiliskII-$(VERSION) mv $(TMPDIR)/BasiliskII $(TMPDIR)/$(VERNAME)
cd $(BUILDDIR); tar cfz $@ BasiliskII-$(VERSION) cd $(TMPDIR); tar cfz $@ $(VERNAME)
mv $(BUILDDIR)/$@ . mv $(TMPDIR)/$@ .
rm -rf $(BUILDDIR) rm -rf $(TMPDIR)
# #
# RPMs (source and i386 binary) # RPMs (source and i386 binary)
@ -74,15 +75,16 @@ $(I386RPM): $(RPMDIR)/RPMS/i386/$(I386RPM)
amiga: $(AMIGAARCHIVE) amiga: $(AMIGAARCHIVE)
$(AMIGAARCHIVE): $(SRCS) $(DOCS) src/AmigaOS/BasiliskII $(AMIGAARCHIVE): $(SRCS) $(DOCS) src/AmigaOS/BasiliskII
-rm -rf $(BUILDDIR) -rm -rf $(TMPDIR)
mkdir $(BUILDDIR) mkdir $(TMPDIR)
mkdir $(BUILDDIR)/BasiliskII mkdir $(TMPDIR)/$(VERNAME)
cp $(DOCS) $(BUILDDIR)/BasiliskII cp $(DOCS) $(TMPDIR)/$(VERNAME)
cp src/AmigaOS/BasiliskII $(BUILDDIR)/BasiliskII cp src/AmigaOS/BasiliskII $(TMPDIR)/$(VERNAME)
cp src/AmigaOS/BasiliskII.info $(BUILDDIR)/BasiliskII.info cp src/AmigaOS/BasiliskII.info $(TMPDIR)/$(VERNAME)
cd $(BUILDDIR); lha a $@ BasiliskII chmod 775 $(TMPDIR)/$(VERNAME)/BasiliskII
mv $(BUILDDIR)/$@ . cd $(TMPDIR); lha a $@ $(VERNAME)
rm -rf $(BUILDDIR) mv $(TMPDIR)/$@ .
rm -rf $(TMPDIR)
# #
# Binary archive for BeOS/ppc # Binary archive for BeOS/ppc
@ -90,14 +92,15 @@ $(AMIGAARCHIVE): $(SRCS) $(DOCS) src/AmigaOS/BasiliskII
beosppc: $(BEOSPPCARCHIVE) beosppc: $(BEOSPPCARCHIVE)
$(BEOSPPCARCHIVE): $(SRCS) $(DOCS) src/BeOS/obj.ppc/BasiliskII $(BEOSPPCARCHIVE): $(SRCS) $(DOCS) src/BeOS/obj.ppc/BasiliskII
-rm -rf $(BUILDDIR) -rm -rf $(TMPDIR)
mkdir $(BUILDDIR) mkdir $(TMPDIR)
mkdir $(BUILDDIR)/BasiliskII mkdir $(TMPDIR)/$(VERNAME)
cp $(DOCS) $(BUILDDIR)/BasiliskII cp $(DOCS) $(TMPDIR)/$(VERNAME)
mv src/BeOS/obj.ppc/BasiliskII $(BUILDDIR)/BasiliskII cp src/BeOS/obj.ppc/BasiliskII $(TMPDIR)/$(VERNAME)
cd $(BUILDDIR); zip -ry $@ BasiliskII/ mimeset -f $(TMPDIR)
mv $(BUILDDIR)/$@ . cd $(TMPDIR); zip -ry $@ $(VERNAME)/
rm -rf $(BUILDDIR) mv $(TMPDIR)/$@ .
rm -rf $(TMPDIR)
# #
# Binary archive for BeOS/x86 # Binary archive for BeOS/x86
@ -105,11 +108,12 @@ $(BEOSPPCARCHIVE): $(SRCS) $(DOCS) src/BeOS/obj.ppc/BasiliskII
beosx86: $(BEOSX86ARCHIVE) beosx86: $(BEOSX86ARCHIVE)
$(BEOSX86ARCHIVE): $(SRCS) $(DOCS) src/BeOS/obj.x86/BasiliskII $(BEOSX86ARCHIVE): $(SRCS) $(DOCS) src/BeOS/obj.x86/BasiliskII
-rm -rf $(BUILDDIR) -rm -rf $(TMPDIR)
mkdir $(BUILDDIR) mkdir $(TMPDIR)
mkdir $(BUILDDIR)/BasiliskII mkdir $(TMPDIR)/$(VERNAME)
cp $(DOCS) $(BUILDDIR)/BasiliskII cp $(DOCS) $(TMPDIR)/$(VERNAME)
mv src/BeOS/obj.x86/BasiliskII $(BUILDDIR)/BasiliskII cp src/BeOS/obj.x86/BasiliskII $(TMPDIR)/$(VERNAME)
cd $(BUILDDIR); zip -ry $@ BasiliskII/ mimeset -f $(TMPDIR)
mv $(BUILDDIR)/$@ . cd $(TMPDIR); zip -ry $@ $(VERNAME)/
rm -rf $(BUILDDIR) mv $(TMPDIR)/$@ .
rm -rf $(TMPDIR)