1 |
|
# Makefile for creating SheepShaver distributions |
2 |
|
# Written in 1999 by Christian Bauer <Christian.Bauer@uni-mainz.de> |
3 |
|
|
4 |
< |
VERSION := 2 |
5 |
< |
RELEASE := 3 |
4 |
> |
VERSION := 2.3 |
5 |
|
VERNAME := SheepShaver-$(VERSION) |
6 |
+ |
CVSDATE := $(shell date "+%Y%m%d") |
7 |
|
|
8 |
< |
SRCARCHIVE := $(shell date +SheepShaver_src_%d%m%Y.tar.gz) |
8 |
> |
SRCARCHIVE := $(VERNAME)-$(CVSDATE).tar.gz |
9 |
|
|
10 |
|
TMPDIR := $(shell date +/tmp/build%m%s) |
11 |
< |
DOCS := HISTORY LOG TODO |
11 |
> |
ISODATE := $(shell date "+%Y-%m-%d %H:%M") |
12 |
> |
DOCS := NEWS |
13 |
|
SRCS := src |
14 |
|
|
15 |
|
# Where Basilisk II directory can be found |
34 |
|
$(SRCARCHIVE): $(SRCS) $(DOCS) |
35 |
|
-rm -rf $(TMPDIR) |
36 |
|
mkdir $(TMPDIR) |
37 |
< |
cd $(TMPDIR); cvs export -D "$(ISODATE)" SheepShaver |
37 |
> |
cd $(TMPDIR); cvs export -D "$(ISODATE)" BasiliskII SheepShaver |
38 |
> |
cd $(TMPDIR)/SheepShaver/src/Unix && mkdir Darwin |
39 |
> |
cd $(TMPDIR)/SheepShaver && make links |
40 |
> |
cd $(TMPDIR)/SheepShaver/src/Unix && NO_CONFIGURE=1 ./autogen.sh |
41 |
> |
cd $(TMPDIR)/SheepShaver/src/Windows && NO_CONFIGURE=1 ../Unix/autogen.sh |
42 |
|
rm $(TMPDIR)/SheepShaver/Makefile |
43 |
< |
mv $(TMPDIR)/SheepShaver $(TMPDIR)/$(VERNAME) |
43 |
> |
cp -aL $(TMPDIR)/SheepShaver $(TMPDIR)/$(VERNAME) |
44 |
|
cd $(TMPDIR); tar cfz $@ $(VERNAME) |
45 |
|
mv $(TMPDIR)/$@ . |
46 |
|
rm -rf $(TMPDIR) |