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." |
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)/$@ . |