11# Makefile to generate the CSS2 document based on its "source files"
22# Arnaud Le Hors - lehors@w3.org
3- # $Id: Makefile,v 2.90 2005-09-13 19:29:12 bbos Exp $
3+ # $Id: Makefile,v 2.91 2006-01-24 06:52:08 bbos Exp $
44
55# what needs to be set for every new release:
66# Note use of full year (1998) in identifier.
@@ -58,14 +58,14 @@ fonts.src\
5858text.src\
5959tables.src\
6060ui.src\
61+ aural.src\
6162zindex.src\
62- leftblank.src\
63- aural.src
63+ leftblank.src
6464
6565
6666APPSRCS = \
67- sample.src\
6867changes.src\
68+ sample.src\
6969grammar.src
7070
7171REFSRCS = \
@@ -77,7 +77,12 @@ indexlist.src
7777
7878MAINSRCS = $(SRCS1 )
7979
80- MAINOBJS = \
80+ REFS = \
81+ refs.html
82+
83+ SPECSRCS = $(SRCS0 ) $(MAINSRCS ) $(APPSRCS )
84+
85+ SPECOBJS = \
8186cover.html\
8287about.html\
8388intro.html\
@@ -97,32 +102,22 @@ fonts.html\
97102text.html\
98103tables.html\
99104ui.html\
100- zindex.html\
101- leftblank.html\
102- aural.html
103-
104- APPENDIXES = \
105- sample.html\
105+ aural.html\
106+ refs.html\
106107changes.html\
108+ sample.html\
109+ zindex.html\
110+ propidx.html\
111+ grammar.html\
107112leftblank.html\
108- grammar.html
109-
110- REFS = \
111- refs.html
112-
113- INDEXES = \
114- propidx.html \
115113indexlist.html
116114
117- SPECSRCS = $(SRCS0 ) $(MAINSRCS ) $(APPSRCS )
118- SPECOBJS = $(MAINOBJS ) $(APPENDIXES ) $(REFS )
119-
120115# IMAGES = images/*.gif images/*.png
121116IMAGES = images/*.png images/*.jpg
122117LONGDESCS = images/longdesc/*.html
123118STYLESHEETS = style/*.css
124119
125- ALLOBJS = $(SPECOBJS ) $(INDEXES ) $( IMAGES ) $(LONGDESCS ) $(STYLESHEETS )
120+ ALLOBJS = $(SPECOBJS ) $(IMAGES ) $(LONGDESCS ) $(STYLESHEETS )
126121
127122PROPSRC = properties/properties.db
128123PROPSAMPLE = properties/sample.db
@@ -290,7 +285,7 @@ LN= ln
290285# $(RM) $@
291286# fig2dev -L eps $< | $(PSTOPNM) | $(PNMTOPNG_PIPE) >$@
292287
293- all : build/blocks.ok $(SPECOBJS ) $( INDEXES ) images/pngs.ok \
288+ all : build/blocks.ok $(SPECOBJS ) images/pngs.ok \
294289 $(IMAGES )
295290# $(IMAGES) issues.html errata-issues.html DOC/TODO.html
296291
@@ -348,13 +343,13 @@ errata.html : errata.src
348343
349344# ### Special section to build PS file and single plain text file
350345
351- css2.ps ps : build/blocks.ok $(SPECOBJS ) $( INDEXES ) images/pngs.ok $(IMAGES )
346+ css2.ps ps : build/blocks.ok $(SPECOBJS ) images/pngs.ok $(IMAGES )
352347# Because of memory limitations in html2ps, use the
353348# automagic feature that any *.gif files are not
354349# converted to ps if there's a *.ps file in the same
355350# directory.
356351 -@(cd images; for i in *.idraw; do $(LN) -s $$i "`basename $$i .idraw`.ps"; done)
357- $(HTML2PS) $(SPECOBJS) $(INDEXES) > $@
352+ $(HTML2PS) $(SPECOBJS) > $@
358353
359354css2.ps.gz : css2.ps
360355 gzip < $< > $@
@@ -363,8 +358,8 @@ css2.ps.gz: css2.ps
363358css2.pdf : css2.ps
364359 $(DISTILL ) css2.ps
365360
366- css2.html html : $(SPECOBJS ) $( INDEXES )
367- $(HTMLCAT ) - $(SPECOBJS ) $( INDEXES ) | \
361+ css2.html html : $(SPECOBJS )
362+ $(HTMLCAT ) - $(SPECOBJS ) | \
368363 $(HTMLTRIM ) div navbar - $@
369364
370365# the following requires to be on unix and have Netscape running...
@@ -479,11 +474,9 @@ propidx.srd:: build/propidx.srb #propidx.src
479474
480475check : checkdoc checkspaces checkprops checkrefs checkspell checksample checklnx checkx
481476
482- FILES = $(MAINOBJS ) $(APPENDIXES ) $(REFS ) $(INDEXES )
483-
484477checkdoc : all
485478 -@echo " # Begin checking sgml."
486- @for i in $(FILES ) $(LONGDESCS ) ; \
479+ @for i in $(SPECOBJS ) $(LONGDESCS ) ; \
487480 do echo checking $$ i...; \
488481 $(NSGMLS) -s -c sgml/HTML4.cat $(HTMLDECL) $$i; done;
489482 -@echo "# End checking sgml."
@@ -522,7 +515,7 @@ checksample: sample.src $(PROPSRC)
522515checklnx : all
523516 -@echo " # Begin checking links."
524517 -@$(RM ) linklint
525- $(LINKLINT ) -doc linklint $(FILES )
518+ $(LINKLINT ) -doc linklint $(SPECOBJS )
526519 -@echo " # End checking links."
527520
528521# ## check property instances
572565 done ; rm /tmp/log
573566
574567clean :
575- $(RM ) $(SPECOBJS ) $(INDEXES ) $( PROPBLKSDIR ) /* \
568+ $(RM ) $(SPECOBJS ) $(PROPBLKSDIR ) /* \
576569 $(SPECOBJS:.html=.srd ) $(SPECOBJS:.html=.subtoc ) \
577- $(INDEXES:.html =.srd) \
578570 build/* css2.* linklint images/links.ok images/pngs.ok
579571
580572realclean : clean
@@ -589,11 +581,11 @@ PREVREC = ../../../TR/1998/REC-CSS2-19980512
589581PREVWD = ../../../TR/$(PREV_YEAR ) /$(PREV_STATUS ) -$(PERMANENT_NAME ) -$(PREV_DATE )
590582HTMLDIFF = htmldiff -i -w '<del>' -x '</del>' -y '<ins>' -z '</ins>'
591583
592- diffs : $(SPECOBJS ) $( INDEXES )
584+ diffs : $(SPECOBJS )
593585 -(cd diffs-rec; \
594- make PREV=../$(PREVREC ) HTMLDIFF=" $( HTMLDIFF) " $(SPECOBJS ) $( INDEXES ) )
586+ make PREV=../$(PREVREC ) HTMLDIFF=" $( HTMLDIFF) " $(SPECOBJS )
595587 -(cd diffs-wd; \
596- make PREV=../$(PREVWD ) HTMLDIFF=" $( HTMLDIFF) " $(SPECOBJS ) $( INDEXES ) )
588+ make PREV=../$(PREVWD ) HTMLDIFF=" $( HTMLDIFF) " $(SPECOBJS )
597589
598590
599591.PHONY : all install install-all clean realclean checkx diffs
0 commit comments