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 17:21:45 +00:00
|
|
|
VERSION = $(shell grep '^Version' <BasiliskII.spec | sed 's/Version: *//')
|
|
|
|
|
1999-10-03 15:10:50 +00:00
|
|
|
SRCARCHIVE = $(shell date +BasiliskII_src_%d%m%Y.tar.gz)
|
1999-10-03 16:21:28 +00:00
|
|
|
AMIGAARCHIVE = $(shell date +BasiliskII_amiga_%d%m%Y.lha)
|
|
|
|
BEOSPPCARCHIVE = $(shell date +BasiliskII_beos_ppc_%d%m%Y.zip)
|
|
|
|
BEOSX86ARCHIVE = $(shell date +BasiliskII_beos_x86_%d%m%Y.zip)
|
|
|
|
|
|
|
|
BUILDDIR = /tmp/build
|
1999-10-03 17:11:52 +00:00
|
|
|
DOCS = ChangeLog COPYING INSTALL README TECH TODO
|
|
|
|
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))"
|
|
|
|
@echo " rpm source and binary RPMs"
|
|
|
|
@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
|
|
|
|
|
|
|
#
|
|
|
|
# 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 17:11:52 +00:00
|
|
|
# RPMs
|
1999-10-03 15:10:50 +00:00
|
|
|
#
|
1999-10-03 17:11:52 +00:00
|
|
|
rpm: /usr/src/redhat/SOURCES/$(SRCARCHIVE) BasiliskII.spec
|
|
|
|
rpm -ba BasiliskII.spec
|
1999-10-03 15:10:50 +00:00
|
|
|
|
1999-10-03 17:11:52 +00:00
|
|
|
/usr/src/redhat/SOURCES/$(SRCARCHIVE): $(SRCARCHIVE)
|
|
|
|
cp $(SRCARCHIVE) /usr/src/redhat/SOURCES
|
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)
|