ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/Makefile
(Generate patch)

Comparing BasiliskII/Makefile (file contents):
Revision 1.2 by cebix, 1999-10-03T16:21:28Z vs.
Revision 1.4 by cebix, 1999-10-03T17:21:45Z

# Line 1 | Line 1
1   # Makefile for creating Basilisk II distributions
2   # Written in 1999 by Christian Bauer <Christian.Bauer@uni-mainz.de>
3  
4 + VERSION = $(shell grep '^Version' <BasiliskII.spec | sed 's/Version: *//')
5 +
6   SRCARCHIVE = $(shell date +BasiliskII_src_%d%m%Y.tar.gz)
7   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 < DOCS = CHANGES COPYING README TECH TODO
13 < SRC = src
12 > 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 >        @echo "If you want to install Basilisk II V$(VERSION) on your system, please follow"
18 >        @echo "the instructions in the file INSTALL."
19 >        @echo "If you want to create a Basilisk II V$(VERSION) distribution, type \"make help\""
20 >        @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  
30   #
31   # Source tarball
32   #
33   tarball: $(SRCARCHIVE)
34  
35 < $(SRCARCHIVE): $(SRC) $(DOCS)
35 > $(SRCARCHIVE): $(SRCS) $(DOCS)
36          -rm -rf $(BUILDDIR)
37          mkdir $(BUILDDIR)
38          cd $(BUILDDIR); cvs checkout BasiliskII
39 <        rm $(BUILDDIR)/BasiliskII/BasiliskII.spec
40 <        rm $(BUILDDIR)/BasiliskII/Makefile
41 <        rm -rf $(BUILDDIR)/BasiliskII/src/powerrom_cpu
25 <        cd $(BUILDDIR); tar cfz $@ BasiliskII
39 >        rm -rf $(BUILDDIR)/BasiliskII/src/powerrom_cpu  #not yet ready for distribution
40 >        mv $(BUILDDIR)/BasiliskII $(BUILDDIR)/BasiliskII-$(VERSION)
41 >        cd $(BUILDDIR); tar cfz $@ BasiliskII-$(VERSION)
42          mv $(BUILDDIR)/$@ .
43          rm -rf $(BUILDDIR)
44  
45   #
46 < # Source RPM
46 > # RPMs
47   #
48 < srcrpm: $(SRCARCHIVE) BasiliskII.spec
48 > rpm: /usr/src/redhat/SOURCES/$(SRCARCHIVE) BasiliskII.spec
49 >        rpm -ba BasiliskII.spec
50  
51 < #
52 < # Binary RPM for Unix/i386
36 < #
37 < i386rpm:
51 > /usr/src/redhat/SOURCES/$(SRCARCHIVE): $(SRCARCHIVE)
52 >        cp $(SRCARCHIVE) /usr/src/redhat/SOURCES
53  
54   #
55   # Binary archive for AmigaOS
56   #
57   amiga: $(AMIGAARCHIVE)
58  
59 < $(AMIGAARCHIVE): $(SRC) $(DOCS) src/AmigaOS/BasiliskII
59 > $(AMIGAARCHIVE): $(SRCS) $(DOCS) src/AmigaOS/BasiliskII
60          -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 <        cd $(BUILDDIR); lha av $@ BasiliskII
66 >        cd $(BUILDDIR); lha a $@ BasiliskII
67          mv $(BUILDDIR)/$@ .
68          rm -rf $(BUILDDIR)
69  
# Line 57 | Line 72 | $(AMIGAARCHIVE): $(SRC) $(DOCS) src/Amig
72   #
73   beosppc: $(BEOSPPCARCHIVE)
74  
75 < $(BEOSPPCARCHIVE): $(SRC) $(DOCS) src/BeOS/obj.ppc/BasiliskII
75 > $(BEOSPPCARCHIVE): $(SRCS) $(DOCS) src/BeOS/obj.ppc/BasiliskII
76          -rm -rf $(BUILDDIR)
77          mkdir $(BUILDDIR)
78          mkdir $(BUILDDIR)/BasiliskII
# Line 72 | Line 87 | $(BEOSPPCARCHIVE): $(SRC) $(DOCS) src/Be
87   #
88   beosx86: $(BEOSX86ARCHIVE)
89  
90 < $(BEOSX86ARCHIVE): $(SRC) $(DOCS) src/BeOS/obj.x86/BasiliskII
90 > $(BEOSX86ARCHIVE): $(SRCS) $(DOCS) src/BeOS/obj.x86/BasiliskII
91          -rm -rf $(BUILDDIR)
92          mkdir $(BUILDDIR)
93          mkdir $(BUILDDIR)/BasiliskII

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines