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.1 by cebix, 1999-10-03T15:10:50Z vs.
Revision 1.3 by cebix, 1999-10-03T17:11:52Z

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines