Skip to content

Commit 02ddef7

Browse files
committed
[css2] Streamlined the variables for the date and location a bit. Added ps.gz
and pdf to the install target. Removed rules for issues and todo's. --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401906
1 parent 5eefe3f commit 02ddef7

1 file changed

Lines changed: 42 additions & 31 deletions

File tree

css2/Makefile

Lines changed: 42 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
# Makefile to generate the CSS2 document based on its "source files"
22
# Arnaud Le Hors - lehors@w3.org
3-
# $Id: Makefile,v 2.57 2002-07-25 21:15:37 bbos Exp $
3+
# $Id: Makefile,v 2.58 2002-07-31 18:07:54 bbos Exp $
44

55
# what needs to be set for every new release:
66
# Note use of full year (1998) in identifier.
7-
THE_DATE = ?? July 2002
8-
THE_ID = WD-CSS21-200207??
9-
THIS_VERSION = http://www.w3.org/TR/2002/$(THE_ID)
107
THE_PREVIOUS_VERSION = http://www.w3.org/TR/1998/REC-CSS2-19980512
118
PERMANENT_NAME = CSS21
9+
THE_YEAR = 2002
10+
THE_DATE = 2 August $(THE_YEAR)
11+
THE_ID = WD-$(PERMANENT_NAME)-$(THE_YEAR)0802
12+
13+
THE_LOC = $(THE_YEAR)/$(THE_ID)
14+
THIS_VERSION = http://www.w3.org/TR/$(THE_LOC)
1215
THE_LATEST_VERSION = http://www.w3.org/TR/$(PERMANENT_NAME)
1316
CSSGROUPDIR = /afs/w3.org/pub/WWW/Style/Group
1417
TR_DIR = /afs/w3.org/pub/WWW/TR
15-
INSTALLDIR = $(TR_DIR)/2002/$(THE_ID)
18+
INSTALLDIR = $(TR_DIR)/$(THE_LOC)
1619
THE_UPDATE_DIR = http://www.w3.org/Style/css2-updates
1720
UPDATESDIR= /afs/w3.org/pub/WWW/Style/css2-updates
1821

@@ -256,7 +259,8 @@ LN= ln
256259
$(PSTOPNM) $< | $(PNMTOPNG_PIPE) >$@
257260

258261
all: build/blocks.ok $(SPECOBJS) $(INDEXES) images/pngs.ok \
259-
$(IMAGES) issues.html errata-issues.html DOC/TODO.html
262+
$(IMAGES)
263+
# $(IMAGES) issues.html errata-issues.html DOC/TODO.html
260264

261265

262266
#images/links.ok : $(IMAGES)
@@ -273,19 +277,22 @@ install: all css2.tgz
273277
@if [ ! -d $(INSTALLDIR) ]; then mkdir -p $(INSTALLDIR);fi
274278
$(CP) css2.tgz $(INSTALLDIR)
275279
zcat css2.tgz | (cd $(INSTALLDIR); $(TAR) xvf -)
276-
-$(RM) -f $(CSSGROUPDIR)/issues.html
277-
-$(RM) $(CSSGROUPDIR)/css2-issues.html
278-
$(LN) -s $(INSTALLDIR)/issues.html $(CSSGROUPDIR)/css2-issues.html
280+
# -$(RM) -f $(CSSGROUPDIR)/issues.html
281+
# -$(RM) $(CSSGROUPDIR)/css2-issues.html
282+
# $(LN) -s $(INSTALLDIR)/issues.html $(CSSGROUPDIR)/css2-issues.html
279283
-$(RM) $(INSTALLDIR)/Overview.html
280-
$(LN) -s $(INSTALLDIR)/cover.html $(INSTALLDIR)/Overview.html
284+
(cd $(INSTALLDIR); $(LN) -s cover.html Overview.html)
281285
-$(RM) -f $(TR_DIR)/$(PERMANENT_NAME)
282-
$(LN) -s $(INSTALLDIR) $(TR_DIR)/$(PERMANENT_NAME)
286+
(cd $(TR_DIR); $(LN) -s $(THE_LOC) $(PERMANENT_NAME))
283287

284288
install-ps: install css2.ps.gz
285289
$(CP) css2.ps.gz $(INSTALLDIR)
286290

287-
# install all, except ps, which takes too long.
288-
install-all: install css2.zip css2.txt
291+
install-pdf: install css2.pdf
292+
$(CP) css2.pdf $(INSTALLDIR)
293+
294+
# install all
295+
install-all: install install-ps install-pdf css2.zip css2.txt
289296
$(CP) css2.zip css2.txt $(INSTALLDIR)
290297

291298
images/pngs.ok: images/*.idraw
@@ -316,6 +323,10 @@ css2.ps ps: all
316323
css2.ps.gz: css2.ps
317324
gzip <$< >$@
318325

326+
# This requires Acrobat Distiller
327+
css2.pdf: css2.ps
328+
distill css2.ps
329+
319330
css2.html html: $(SPECOBJS) $(INDEXES)
320331
$(HTMLCAT) - $(SPECOBJS) $(INDEXES) | \
321332
$(HTMLTRIM) div navbar - $@
@@ -402,30 +413,30 @@ propidx.srd:: build/propidx.srb #propidx.src
402413
# $(HIPP) $(INCLUDES) $< $@
403414

404415
# Issues and todo lists.
405-
issues.html: issues.src build/issues.srb
406-
@echo "=========== making" $@
407-
$(HIPP) $(INCLUDES) $< $@
416+
#issues.html: issues.src build/issues.srb
417+
# @echo "=========== making" $@
418+
# $(HIPP) $(INCLUDES) $< $@
408419

409-
build/issues.srb: issues.db
410-
@echo "=========== making" $@
411-
$(ISSUES) -g >$@
420+
#build/issues.srb: issues.db
421+
# @echo "=========== making" $@
422+
# $(ISSUES) -g >$@
412423

413424
# Errata-Issues
414-
errata-issues.html: errata-issues.src build/errata-issues.srb
415-
@echo "=========== making" $@
416-
$(HIPP) $(INCLUDES) $< $@
425+
#errata-issues.html: errata-issues.src build/errata-issues.srb
426+
# @echo "=========== making" $@
427+
# $(HIPP) $(INCLUDES) $< $@
417428

418-
build/errata-issues.srb: errata-issues.db
419-
@echo "=========== making" $@
420-
$(ERRATA) -g >$@
429+
#build/errata-issues.srb: errata-issues.db
430+
# @echo "=========== making" $@
431+
# $(ERRATA) -g >$@
421432

422-
DOC/TODO.html: DOC/TODO.src build/todo.srb
423-
@echo "=========== making" $@
424-
$(HIPP) $(INCLUDES) $< $@
433+
#DOC/TODO.html: DOC/TODO.src build/todo.srb
434+
# @echo "=========== making" $@
435+
# $(HIPP) $(INCLUDES) $< $@
425436

426-
build/todo.srb: DOC/todo.db
427-
@echo "=========== making" $@
428-
$(TODO) -g >$@
437+
#build/todo.srb: DOC/todo.db
438+
# @echo "=========== making" $@
439+
# $(TODO) -g >$@
429440

430441
### check on the document to see if it's valid
431442

0 commit comments

Comments
 (0)