1999-10-03 15:10:50 +00:00
|
|
|
# Makefile for creating Basilisk II distributions
|
|
|
|
# Written in 1999 by Christian Bauer <Christian.Bauer@uni-mainz.de>
|
|
|
|
|
1999-10-03 20:40:05 +00:00
|
|
|
VERSION = $(shell sed <BasiliskII.spec -n '/^Version: */s///p')
|
|
|
|
RELEASE = $(shell sed <BasiliskII.spec -n '/^Release: */s///p')
|
1999-10-03 17:21:45 +00:00
|
|
|
|
1999-10-03 15:10:50 +00:00
|
|
|
SRCARCHIVE = $(shell date +BasiliskII_src_%d%m%Y.tar.gz)
|
1999-10-03 20:40:05 +00:00
|
|
|
SRCRPM = BasiliskII-$(VERSION)-$(RELEASE).src.rpm
|
|
|
|
I386RPM = BasiliskII-$(VERSION)-$(RELEASE).i386.rpm
|
|
|
|
AMIGAARCHIVE = BasiliskII-$(VERSION)-$(RELEASE).amiga.lha
|
|
|
|
BEOSPPCARCHIVE = BasiliskII-$(VERSION)-$(RELEASE).beosppc.zip
|
|
|
|
BEOSX86ARCHIVE = BasiliskII-$(VERSION)-$(RELEASE).beosx86.zip
|
1999-10-03 16:21:28 +00:00
|
|
|
|
|
|
|
BUILDDIR = /tmp/build
|
1999-10-03 20:40:05 +00:00
|
|
|
RPMDIR = /usr/src/redhat
|
|
|
|
DOCS = $(shell sed <BasiliskII.spec -n '/^\%doc */s///p')
|
1999-10-03 17:11:52 +00:00
|
|
|
SRCS = src
|
|
|
|
|
|
|
|
default:
|
|
|
|
@echo "This top-level Makefile is for creating Basilisk II distributions."
|
1999-10-03 17:21:45 +00:00
|
|
|
@echo "If you want to install Basilisk II V$(VERSION) on your system, please follow"
|
1999-10-03 17:11:52 +00:00
|
|
|
@echo "the instructions in the file INSTALL."
|
1999-10-03 17:21:45 +00:00
|
|
|
@echo "If you want to create a Basilisk II V$(VERSION) distribution, type \"make help\""
|
1999-10-03 17:11:52 +00:00
|
|
|
@echo "to get a list of possible targets."
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo "The following targets are available:"
|
|
|
|
@echo " tarball source tarball ($(SRCARCHIVE))"
|
1999-10-03 20:40:05 +00:00
|
|
|
@echo " rpm source and binary RPMs ($(SRCRPM) and $(I386RPM))"
|
1999-10-03 17:11:52 +00:00
|
|
|
@echo " amiga AmigaOS binary archive ($(AMIGAARCHIVE))"
|
|
|
|
@echo " beosppc BeOS/ppc binary archive ($(BEOSPPCARCHIVE))"
|
|
|
|
@echo " beosx86 BeOS/x86 binary archive ($(BEOSX86ARCHIVE))"
|
1999-10-03 15:10:50 +00:00
|
|
|
|
1999-10-03 20:40:05 +00:00
|
|
|
clean:
|
|
|
|
-rm -f $(SRCARCHIVE)
|
|
|
|
-rm -f $(SRCRPM)
|
|
|
|
-rm -f $(AMIGAARCHIVE) $(BEOSPPCARCHIVE) $(BEOSX86ARCHIVE)
|
|
|
|
|
1999-10-03 15:10:50 +00:00
|
|
|
#
|
|
|
|
# Source tarball
|
|
|
|
#
|
1999-10-03 16:21:28 +00:00
|
|
|
tarball: $(SRCARCHIVE)
|
1999-10-03 15:10:50 +00:00
|
|
|
|
1999-10-03 17:11:52 +00:00
|
|
|
$(SRCARCHIVE): $(SRCS) $(DOCS)
|
1999-10-03 15:10:50 +00:00
|
|
|
-rm -rf $(BUILDDIR)
|
|
|
|
mkdir $(BUILDDIR)
|
|
|
|
cd $(BUILDDIR); cvs checkout BasiliskII
|
1999-10-03 17:11:52 +00:00
|
|
|
rm -rf $(BUILDDIR)/BasiliskII/src/powerrom_cpu #not yet ready for distribution
|
1999-10-03 17:21:45 +00:00
|
|
|
mv $(BUILDDIR)/BasiliskII $(BUILDDIR)/BasiliskII-$(VERSION)
|
|
|
|
cd $(BUILDDIR); tar cfz $@ BasiliskII-$(VERSION)
|
1999-10-03 15:10:50 +00:00
|
|
|
mv $(BUILDDIR)/$@ .
|
|
|
|
rm -rf $(BUILDDIR)
|
|
|
|
|
|
|
|
#
|
1999-10-03 20:40:05 +00:00
|
|
|
# RPMs (source and i386 binary)
|
1999-10-03 15:10:50 +00:00
|
|
|
#
|
1999-10-03 20:40:05 +00:00
|
|
|
rpm: $(SRCRPM) $(I386RPM)
|
|
|
|
|
|
|
|
$(RPMDIR)/SOURCES/$(SRCARCHIVE): $(SRCARCHIVE)
|
|
|
|
cp $(SRCARCHIVE) $(RPMDIR)/SOURCES
|
|
|
|
|
|
|
|
$(RPMDIR)/SRPMS/$(SRCRPM) $(RPMDIR)/RPMS/i386/$(I386RPM): $(RPMDIR)/SOURCES/$(SRCARCHIVE) BasiliskII.spec
|
1999-10-03 17:11:52 +00:00
|
|
|
rpm -ba BasiliskII.spec
|
1999-10-03 15:10:50 +00:00
|
|
|
|
1999-10-03 20:40:05 +00:00
|
|
|
$(SRCRPM): $(RPMDIR)/SRPMS/$(SRCRPM)
|
|
|
|
cp $(RPMDIR)/SRPMS/$(SRCRPM) .
|
|
|
|
|
|
|
|
$(I386RPM): $(RPMDIR)/RPMS/i386/$(I386RPM)
|
|
|
|
cp $(RPMDIR)/RPMS/i386/$(I386RPM) .
|
1999-10-03 16:21:28 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Binary archive for AmigaOS
|
|
|
|
#
|
|
|
|
amiga: $(AMIGAARCHIVE)
|
|
|
|
|
1999-10-03 17:11:52 +00:00
|
|
|
$(AMIGAARCHIVE): $(SRCS) $(DOCS) src/AmigaOS/BasiliskII
|
1999-10-03 16:21:28 +00:00
|
|
|
-rm -rf $(BUILDDIR)
|
|
|
|
mkdir $(BUILDDIR)
|
|
|
|
mkdir $(BUILDDIR)/BasiliskII
|
|
|
|
cp $(DOCS) $(BUILDDIR)/BasiliskII
|
|
|
|
cp src/AmigaOS/BasiliskII $(BUILDDIR)/BasiliskII
|
|
|
|
cp src/AmigaOS/BasiliskII.info $(BUILDDIR)/BasiliskII.info
|
1999-10-03 17:11:52 +00:00
|
|
|
cd $(BUILDDIR); lha a $@ BasiliskII
|
1999-10-03 16:21:28 +00:00
|
|
|
mv $(BUILDDIR)/$@ .
|
|
|
|
rm -rf $(BUILDDIR)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Binary archive for BeOS/ppc
|
|
|
|
#
|
|
|
|
beosppc: $(BEOSPPCARCHIVE)
|
|
|
|
|
1999-10-03 17:11:52 +00:00
|
|
|
$(BEOSPPCARCHIVE): $(SRCS) $(DOCS) src/BeOS/obj.ppc/BasiliskII
|
1999-10-03 16:21:28 +00:00
|
|
|
-rm -rf $(BUILDDIR)
|
|
|
|
mkdir $(BUILDDIR)
|
|
|
|
mkdir $(BUILDDIR)/BasiliskII
|
|
|
|
cp $(DOCS) $(BUILDDIR)/BasiliskII
|
|
|
|
mv src/BeOS/obj.ppc/BasiliskII $(BUILDDIR)/BasiliskII
|
|
|
|
cd $(BUILDDIR); zip -ry $@ BasiliskII/
|
|
|
|
mv $(BUILDDIR)/$@ .
|
|
|
|
rm -rf $(BUILDDIR)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Binary archive for BeOS/x86
|
|
|
|
#
|
|
|
|
beosx86: $(BEOSX86ARCHIVE)
|
|
|
|
|
1999-10-03 17:11:52 +00:00
|
|
|
$(BEOSX86ARCHIVE): $(SRCS) $(DOCS) src/BeOS/obj.x86/BasiliskII
|
1999-10-03 16:21:28 +00:00
|
|
|
-rm -rf $(BUILDDIR)
|
|
|
|
mkdir $(BUILDDIR)
|
|
|
|
mkdir $(BUILDDIR)/BasiliskII
|
|
|
|
cp $(DOCS) $(BUILDDIR)/BasiliskII
|
|
|
|
mv src/BeOS/obj.x86/BasiliskII $(BUILDDIR)/BasiliskII
|
|
|
|
cd $(BUILDDIR); zip -ry $@ BasiliskII/
|
|
|
|
mv $(BUILDDIR)/$@ .
|
|
|
|
rm -rf $(BUILDDIR)
|