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.5 by cebix, 1999-10-03T20:40:05Z vs.
Revision 1.7 by cebix, 1999-10-04T23:11:18Z

# Line 3 | Line 3
3  
4   VERSION = $(shell sed <BasiliskII.spec -n '/^Version: */s///p')
5   RELEASE = $(shell sed <BasiliskII.spec -n '/^Release: */s///p')
6 + VERNAME = BasiliskII-$(VERSION)
7  
8   SRCARCHIVE = $(shell date +BasiliskII_src_%d%m%Y.tar.gz)
9 < SRCRPM = BasiliskII-$(VERSION)-$(RELEASE).src.rpm
10 < I386RPM = BasiliskII-$(VERSION)-$(RELEASE).i386.rpm
11 < AMIGAARCHIVE = BasiliskII-$(VERSION)-$(RELEASE).amiga.lha
12 < BEOSPPCARCHIVE = BasiliskII-$(VERSION)-$(RELEASE).beosppc.zip
13 < BEOSX86ARCHIVE = BasiliskII-$(VERSION)-$(RELEASE).beosx86.zip
9 > SRCRPM = $(VERNAME)-$(RELEASE).src.rpm
10 > BINRPM = $(VERNAME)-$(RELEASE).i386.rpm
11 > AMIGAARCHIVE = $(VERNAME)-$(RELEASE).amiga.lha
12 > BEOSPPCARCHIVE = $(VERNAME)-$(RELEASE).beosppc.zip
13 > BEOSX86ARCHIVE = $(VERNAME)-$(RELEASE).beosx86.zip
14  
15 < BUILDDIR = /tmp/build
15 > TMPDIR = $(shell date +/tmp/build%m%s)
16   RPMDIR = /usr/src/redhat
17   DOCS = $(shell sed <BasiliskII.spec -n '/^\%doc */s///p')
18   SRCS = src
# Line 26 | Line 27 | default:
27   help:
28          @echo "The following targets are available:"
29          @echo "  tarball  source tarball ($(SRCARCHIVE))"
30 <        @echo "  rpm      source and binary RPMs ($(SRCRPM) and $(I386RPM))"
30 >        @echo "  rpm      source and binary RPMs ($(SRCRPM) and $(BINRPM))"
31          @echo "  amiga    AmigaOS binary archive ($(AMIGAARCHIVE))"
32          @echo "  beosppc  BeOS/ppc binary archive ($(BEOSPPCARCHIVE))"
33          @echo "  beosx86  BeOS/x86 binary archive ($(BEOSX86ARCHIVE))"
34  
35   clean:
36          -rm -f $(SRCARCHIVE)
37 <        -rm -f $(SRCRPM)
37 >        -rm -f $(SRCRPM) $(BINRPM)
38          -rm -f $(AMIGAARCHIVE) $(BEOSPPCARCHIVE) $(BEOSX86ARCHIVE)
39  
40   #
# Line 42 | Line 43 | clean:
43   tarball: $(SRCARCHIVE)
44  
45   $(SRCARCHIVE): $(SRCS) $(DOCS)
46 <        -rm -rf $(BUILDDIR)
47 <        mkdir $(BUILDDIR)
48 <        cd $(BUILDDIR); cvs checkout BasiliskII
49 <        rm -rf $(BUILDDIR)/BasiliskII/src/powerrom_cpu  #not yet ready for distribution
50 <        mv $(BUILDDIR)/BasiliskII $(BUILDDIR)/BasiliskII-$(VERSION)
51 <        cd $(BUILDDIR); tar cfz $@ BasiliskII-$(VERSION)
52 <        mv $(BUILDDIR)/$@ .
53 <        rm -rf $(BUILDDIR)
46 >        -rm -rf $(TMPDIR)
47 >        mkdir $(TMPDIR)
48 >        cd $(TMPDIR); cvs checkout BasiliskII
49 >        rm -rf $(TMPDIR)/BasiliskII/src/powerrom_cpu    #not yet ready for distribution
50 >        mv $(TMPDIR)/BasiliskII $(TMPDIR)/$(VERNAME)
51 >        cd $(TMPDIR); tar cfz $@ $(VERNAME)
52 >        mv $(TMPDIR)/$@ .
53 >        rm -rf $(TMPDIR)
54  
55   #
56   # RPMs (source and i386 binary)
57   #
58 < rpm: $(SRCRPM) $(I386RPM)
58 > rpm: $(SRCRPM) $(BINRPM)
59  
60   $(RPMDIR)/SOURCES/$(SRCARCHIVE): $(SRCARCHIVE)
61          cp $(SRCARCHIVE) $(RPMDIR)/SOURCES
62  
63 < $(RPMDIR)/SRPMS/$(SRCRPM) $(RPMDIR)/RPMS/i386/$(I386RPM): $(RPMDIR)/SOURCES/$(SRCARCHIVE) BasiliskII.spec
63 > $(RPMDIR)/SRPMS/$(SRCRPM) $(RPMDIR)/RPMS/i386/$(BINRPM): $(RPMDIR)/SOURCES/$(SRCARCHIVE) BasiliskII.spec
64          rpm -ba BasiliskII.spec
65  
66   $(SRCRPM): $(RPMDIR)/SRPMS/$(SRCRPM)
67          cp $(RPMDIR)/SRPMS/$(SRCRPM) .
68  
69 < $(I386RPM): $(RPMDIR)/RPMS/i386/$(I386RPM)
70 <        cp $(RPMDIR)/RPMS/i386/$(I386RPM) .
69 > $(BINRPM): $(RPMDIR)/RPMS/i386/$(BINRPM)
70 >        cp $(RPMDIR)/RPMS/i386/$(BINRPM) .
71  
72   #
73   # Binary archive for AmigaOS
# Line 74 | Line 75 | $(I386RPM): $(RPMDIR)/RPMS/i386/$(I386RP
75   amiga: $(AMIGAARCHIVE)
76  
77   $(AMIGAARCHIVE): $(SRCS) $(DOCS) src/AmigaOS/BasiliskII
78 <        -rm -rf $(BUILDDIR)
79 <        mkdir $(BUILDDIR)
80 <        mkdir $(BUILDDIR)/BasiliskII
81 <        cp $(DOCS) $(BUILDDIR)/BasiliskII
82 <        cp src/AmigaOS/BasiliskII $(BUILDDIR)/BasiliskII
83 <        cp src/AmigaOS/BasiliskII.info $(BUILDDIR)/BasiliskII.info
84 <        cd $(BUILDDIR); lha a $@ BasiliskII
85 <        mv $(BUILDDIR)/$@ .
86 <        rm -rf $(BUILDDIR)
78 >        -rm -rf $(TMPDIR)
79 >        mkdir $(TMPDIR)
80 >        mkdir $(TMPDIR)/$(VERNAME)
81 >        cp $(DOCS) $(TMPDIR)/$(VERNAME)
82 >        cp src/AmigaOS/BasiliskII $(TMPDIR)/$(VERNAME)
83 >        cp src/AmigaOS/BasiliskII.info $(TMPDIR)/$(VERNAME)
84 >        chmod 775 $(TMPDIR)/$(VERNAME)/BasiliskII
85 >        cd $(TMPDIR); lha a $@ $(VERNAME)
86 >        mv $(TMPDIR)/$@ .
87 >        rm -rf $(TMPDIR)
88  
89   #
90   # Binary archive for BeOS/ppc
# Line 90 | Line 92 | $(AMIGAARCHIVE): $(SRCS) $(DOCS) src/Ami
92   beosppc: $(BEOSPPCARCHIVE)
93  
94   $(BEOSPPCARCHIVE): $(SRCS) $(DOCS) src/BeOS/obj.ppc/BasiliskII
95 <        -rm -rf $(BUILDDIR)
96 <        mkdir $(BUILDDIR)
97 <        mkdir $(BUILDDIR)/BasiliskII
98 <        cp $(DOCS) $(BUILDDIR)/BasiliskII
99 <        mv src/BeOS/obj.ppc/BasiliskII $(BUILDDIR)/BasiliskII
100 <        cd $(BUILDDIR); zip -ry $@ BasiliskII/
101 <        mv $(BUILDDIR)/$@ .
102 <        rm -rf $(BUILDDIR)
95 >        -rm -rf $(TMPDIR)
96 >        mkdir $(TMPDIR)
97 >        mkdir $(TMPDIR)/$(VERNAME)
98 >        cp $(DOCS) $(TMPDIR)/$(VERNAME)
99 >        cp src/BeOS/obj.ppc/BasiliskII $(TMPDIR)/$(VERNAME)
100 >        mimeset -f $(TMPDIR)
101 >        cd $(TMPDIR); zip -ry $@ $(VERNAME)/
102 >        mv $(TMPDIR)/$@ .
103 >        rm -rf $(TMPDIR)
104  
105   #
106   # Binary archive for BeOS/x86
# Line 105 | Line 108 | $(BEOSPPCARCHIVE): $(SRCS) $(DOCS) src/B
108   beosx86: $(BEOSX86ARCHIVE)
109  
110   $(BEOSX86ARCHIVE): $(SRCS) $(DOCS) src/BeOS/obj.x86/BasiliskII
111 <        -rm -rf $(BUILDDIR)
112 <        mkdir $(BUILDDIR)
113 <        mkdir $(BUILDDIR)/BasiliskII
114 <        cp $(DOCS) $(BUILDDIR)/BasiliskII
115 <        mv src/BeOS/obj.x86/BasiliskII $(BUILDDIR)/BasiliskII
116 <        cd $(BUILDDIR); zip -ry $@ BasiliskII/
117 <        mv $(BUILDDIR)/$@ .
118 <        rm -rf $(BUILDDIR)
111 >        -rm -rf $(TMPDIR)
112 >        mkdir $(TMPDIR)
113 >        mkdir $(TMPDIR)/$(VERNAME)
114 >        cp $(DOCS) $(TMPDIR)/$(VERNAME)
115 >        cp src/BeOS/obj.x86/BasiliskII $(TMPDIR)/$(VERNAME)
116 >        mimeset -f $(TMPDIR)
117 >        cd $(TMPDIR); zip -ry $@ $(VERNAME)/
118 >        mv $(TMPDIR)/$@ .
119 >        rm -rf $(TMPDIR)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines