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

Comparing mon/Makefile (file contents):
Revision 1.2 by cebix, 1999-10-04T23:11:55Z vs.
Revision 1.5 by cebix, 1999-10-06T13:06:24Z

# Line 1 | Line 1
1   # Makefile for creating mon distributions
2   # Written in 1999 by Christian Bauer <Christian.Bauer@uni-mainz.de>
3  
4 < VERSION = $(shell sed <mon.spec -n '/^Version: */s///p')
5 < RELEASE = $(shell sed <mon.spec -n '/^Release: */s///p')
6 < VERNAME = mon-$(VERSION)
7 <
8 < SRCARCHIVE = $(shell date +mon_src_%d%m%Y.tar.gz)
9 < SRCRPM = $(VERNAME)-$(RELEASE).src.rpm
10 < BINRPM = $(VERNAME)-$(RELEASE).i386.rpm
11 < BEOSPPCARCHIVE = $(VERNAME)-$(RELEASE).beosppc.zip
12 < BEOSX86ARCHIVE = $(VERNAME)-$(RELEASE).beosx86.zip
13 <
14 < TMPDIR = $(shell date +/tmp/build%m%s)
15 < RPMDIR = /usr/src/redhat
16 < DOCS = $(shell sed <mon.spec -n '/^\%doc */s///p')
17 < SRCS = src
4 > VERSION := $(shell sed <mon.spec -n '/^Version: */s///p')
5 > RELEASE := $(shell sed <mon.spec -n '/^Release: */s///p')
6 > VERNAME := mon-$(VERSION)
7 >
8 > SRCARCHIVE := $(shell date +mon_src_%d%m%Y.tar.gz)
9 > SRCRPM := $(VERNAME)-$(RELEASE).src.rpm
10 > BINRPM := $(VERNAME)-$(RELEASE).i386.rpm
11 > BEOSPPCARCHIVE := $(VERNAME)-$(RELEASE).beosppc.zip
12 > BEOSX86ARCHIVE := $(VERNAME)-$(RELEASE).beosx86.zip
13 >
14 > TMPDIR := $(shell date +/tmp/build%M%S)
15 > RPMDIR := /usr/src/redhat
16 > ISODATE := $(shell date "+%Y-%m-%d %H:%M")
17 > DOCS := $(shell sed <mon.spec -n '/^\%doc */s///p')
18 > SRCS := src
19  
20   default:
21          @echo "This top-level Makefile is for creating Basilisk II distributions."
# Line 43 | Line 44 | tarball: $(SRCARCHIVE)
44   $(SRCARCHIVE): $(SRCS) $(DOCS)
45          -rm -rf $(TMPDIR)
46          mkdir $(TMPDIR)
47 <        cd $(TMPDIR); cvs checkout mon
47 >        cd $(TMPDIR); cvs export -D "$(ISODATE)" mon
48 >        rm $(TMPDIR)/mon.spec $(TMPDIR)/Makefile
49          mv $(TMPDIR)/mon $(TMPDIR)/$(VERNAME)
50          cd $(TMPDIR); tar cfz $@ $(VERNAME)
51          mv $(TMPDIR)/$@ .

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines