Skip to content

Commit 89a3d7d

Browse files
committed
[css2] Removed Gnu-specific z option from tar, replaced by gzip/zcat.
Changed "ln issues" to symbolic link. --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40355
1 parent 9282e04 commit 89a3d7d

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

css2/Makefile

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Makefile to generate the CSS2 document based on its "source files"
22
# Arnaud Le Hors - lehors@w3.org
3-
# $Id: Makefile,v 1.37 1997-10-31 03:23:34 clilley Exp $
3+
# $Id: Makefile,v 1.38 1997-10-31 10:20:31 bbos Exp $
44

55
ROOT = .
66

@@ -96,7 +96,7 @@ DESCBLKSDIR= build/descriptors
9696
CSSGROUPDIR = /afs/w3.org/pub/WWW/Style/Group/
9797
#Sample install dir
9898
#INSTALLDIR= /afs/w3.org/pub/WWW/Style/Group/9709/css2-970908
99-
INSTALLDIR=/0/w3c/clilley/w3.org/pub/WWW/Style/Group/css2
99+
INSTALLDIR=
100100

101101
# dbase for property name anchors
102102
PROPERTYDB= build/property.db
@@ -192,11 +192,17 @@ all: blocks $(PROPERTYDB) $(DESCRIPTORDB) $(VALUEDB) $(HEADINGDB) $(SPECOBJS) $(
192192
$(IMAGES) issues.html DOC/TODO.html
193193

194194
install: all css20.tgz
195+
if [ -z "$(INSTALLDIR)" ]; then\
196+
echo >&2;\
197+
echo "*** No target directory specified" >&2;\
198+
echo "*** Please use: make install INSTALLDIR=<target-dir>" >&2;\
199+
exit 1;\
200+
fi
195201
@if [ ! -d $(INSTALLDIR) ]; then mkdir -p $(INSTALLDIR);fi
196202
$(CP) css20.tgz $(INSTALLDIR)
197-
(cd $(INSTALLDIR); $(TAR) xvzf css20.tgz)
203+
(cd $(INSTALLDIR); zcat css20.tgz | $(TAR) xvf -)
198204
(cd $(CSSGROUPDIR); rm -f issues.html; \
199-
$(LN) $(INSTALLDIR)/issues.html css2-issues.html)
205+
$(LN) -s $(INSTALLDIR)/issues.html css2-issues.html)
200206
$(CP) Overview.html html2psrc $(INSTALLDIR)
201207

202208
install-all: install css20.zip css20.ps css20.txt
@@ -218,10 +224,10 @@ css20.txt txt: css20.html
218224

219225
####
220226

221-
css20.tgz: all
222-
$(TAR) czf $@ $(ALLOBJS)
227+
css20.tgz: $(ALLOBJS)
228+
$(TAR) cf - $(ALLOBJS) | gzip >$@
223229

224-
css20.zip: all
230+
css20.zip: $(ALLOBJS)
225231
$(ZIP) $@ $(ALLOBJS)
226232

227233
#### Section generate property/descriptor tables from property database.

0 commit comments

Comments
 (0)