@@ -19,12 +19,6 @@ THE_STATUSNAME = Recommendation
19
19
THE_STYLE = REC
20
20
# THE_STYLE = ED
21
21
22
- PREV_YEAR = 2011
23
- PREV_MONTH = 04
24
- PREV_DAY = 12
25
- PREV_STATUS = PR
26
- PREV_NAME = CSS2
27
-
28
22
PERMANENT_NAME = CSS2
29
23
30
24
# A very visible warning after the first H1 on every page (or at the
@@ -47,23 +41,16 @@ THE_WARNING = <div> \
47
41
</div> \
48
42
</div>
49
43
50
- # WEBROOT = /afs/w3.org/WWW
51
- WEBROOT = $(HOME ) /WWW
52
-
53
- CSSGROUPDIR = $(WEBROOT ) /Style/Group
54
- UPDATES = /Style/css2-updates
55
-
56
- THE_UPDATE_DIR = http://www.w3.org$(UPDATES )
57
- UPDATESDIR = $(WEBROOT )$(UPDATES )
58
- TR_DIR = $(WEBROOT ) /TR
59
44
THE_DATE = $(THE_DAY ) $(THE_MONTHNAME ) $(THE_YEAR )
60
45
THE_ID = $(THE_STYLE ) -$(PERMANENT_NAME ) -$(THE_YEAR )$(THE_MONTH )$(THE_DAY )
61
- PREV_DATE = $(PREV_YEAR )$(PREV_MONTH )$(PREV_DAY )
62
- THE_PREVIOUS_VERSION = http://www.w3.org/TR/$(PREV_YEAR ) /$(PREV_STATUS ) -$(PREV_NAME ) -$(PREV_DATE )
63
46
THE_LOC = $(THE_YEAR ) /$(THE_ID )
64
- INSTALLDIR = $(TR_DIR ) /$(THE_LOC )
65
47
THIS_VERSION = http://www.w3.org/TR/$(THE_LOC )
66
48
THE_LATEST_VERSION = http://www.w3.org/TR/$(PERMANENT_NAME )
49
+ THE_UPDATE_DIR = http://www.w3.org/Style/css2-updates
50
+
51
+ INSTALLDIR = dist/
52
+
53
+ export LC_ALL =en_US.UTF-8
67
54
68
55
ROOT = .
69
56
@@ -109,43 +96,26 @@ indexlist.src
109
96
110
97
MAINSRCS = $(SRCS1 )
111
98
112
- REFS = \
113
- refs.html
114
-
115
- SPECSRCS = $(SRCS0 ) $(MAINSRCS ) $(APPSRCS )
116
-
117
- SPECOBJS = \
118
- cover.html\
119
- about.html\
120
- intro.html\
121
- conform.html\
122
- syndata.html\
123
- selector.html\
124
- cascade.html\
125
- media.html\
126
- box.html\
127
- visuren.html\
128
- visudet.html\
129
- visufx.html\
130
- generate.html\
131
- page.html\
132
- colors.html\
133
- fonts.html\
134
- text.html\
135
- tables.html\
136
- ui.html\
137
- aural.html\
138
- refs.html\
139
- changes.html\
140
- sample.html\
141
- zindex.html\
142
- propidx.html\
143
- grammar.html\
144
- leftblank.html\
145
- indexlist.html
146
-
147
- # IMAGES = images/*.gif images/*.png
148
- IMAGES = images/*.png images/*.jpg
99
+ REFS = $(REFSRCS:.src=.html )
100
+
101
+ SPECSRCS = $(SRCS0 ) $(MAINSRCS ) $(APPSRCS ) $(INDEXSRCS ) $(REFS )
102
+
103
+ SPECOBJS = $(SPECSRCS:.src=.html )
104
+
105
+ IMAGESSRC = \
106
+ $(wildcard images/* .eps) \
107
+ $(wildcard images/* .fig) \
108
+ $(wildcard images/* .gif) \
109
+ $(wildcard images/* .idraw) \
110
+ $(wildcard images/* .svg) \
111
+ $(wildcard images/* .ps)
112
+
113
+ IMAGESBUILT = $(addsuffix .png, $(basename $(IMAGESSRC ) ) )
114
+
115
+ IMAGES = \
116
+ $(wildcard images/* .png) \
117
+ $(IMAGESBUILT )
118
+
149
119
LONGDESCS = images/longdesc/*.html
150
120
STYLESHEETS = style/*.css
151
121
@@ -185,8 +155,6 @@ HIPP= $(PERL) ./bin/hipp
185
155
HMKDEPEND = $(PERL ) ./bin/hmkdep
186
156
# make value anchor database
187
157
MKANCHDB = $(PERL ) ./bin/mkanchdb
188
- # make property anchor database
189
- MKPANCHDB = $(PERL ) ./bin/mkpanchdb
190
158
# add heading anchors
191
159
ADDHANCH = $(PERL ) ./bin/addhanch
192
160
# add index anchors and generate related index database
@@ -201,22 +169,12 @@ MKPROPIDX= $(PERL) ./bin/mkpropidx
201
169
MKTOC = $(PERL ) ./bin/mktoc
202
170
# HTML concate utility
203
171
HTMLCAT = $(PERL ) ./bin/htmlcat
204
- # trim utility to get rid of navbar sections
205
- HTMLTRIM = $(PERL ) ./bin/htmltrim
206
- # make sub table of contents
207
- MKSUBTOC =$(PERL ) ./bin/mksubtoc
208
172
# insert subtoc
209
173
INSAFTER = $(PERL ) ./bin/insafter
210
174
# add link
211
175
ADDLINKS = $(PERL ) ./bin/addlinks
212
176
# extract properties from db.
213
177
PEXTR = $(PERL ) ./bin/pextr
214
- # extract issues from issues db.
215
- ISSUES = bin/issues
216
- # extract issues from errata-issues db.
217
- ERRATA = bin/errata
218
- # extract issues from todo db.
219
- TODO = bin/todo
220
178
# check validity of sample style sheet
221
179
CHKSAMPLE = $(PERL ) ./bin/chksample
222
180
# make database of references (reference.src)
@@ -231,14 +189,10 @@ CHKSPACES= $(PERL) ./bin/chkspaces
231
189
CHKCSS = ./bin/chkcss
232
190
# check XML examples
233
191
CHKXML = ./bin/chkxml
234
- # add reference normative/informative class info.
235
- ADDREFCLASS = $(PERL ) ./bin/addrefclass
236
192
# Add prev/next/toc/stylesheet and other links to document
237
193
MKCHAIN = $(PERL ) ./bin/mkchain
238
194
# Expand [[cite]] to link to bibliography
239
195
ADDCITE = $(PERL ) ./bin/addcite
240
- # Remove extensions (.gif, .png,...) from IMG links
241
- RMIMGEXT = $(PERL ) ./bin/rmimgext
242
196
# Add special markup (e.g., keyword "Example")
243
197
ADDMARKUP = $(PERL ) ./bin/addmarkup
244
198
# Add longdesc descriptions to images
@@ -295,7 +249,6 @@ LN= ln
295
249
$(INSAFTER ) - $* .subtoc /H1 - | \
296
250
$(MKCHAIN ) -r $@ - | \
297
251
$(SED ) -e " s|_THIS_VERSION_|$( THIS_VERSION) |g" \
298
- -e " s|_THE_PREVIOUS_VERSION_|$( THE_PREVIOUS_VERSION) |g" \
299
252
-e " s|_THE_LATEST_VERSION_|$( THE_LATEST_VERSION) |g" \
300
253
-e " s|_THE_STATUS_|$( THE_STATUS) |g" \
301
254
-e " s|_THE_STATUSNAME_|$( THE_STATUSNAME) |g" \
@@ -316,6 +269,8 @@ LN= ln
316
269
% .png : % .eps; convert -density 96x96 $< $@
317
270
% .png : % .ps; convert -density 96x96 $< $@
318
271
% .png : % .idraw; convert -density 96x96 $< $@
272
+ % .png : % .svg; convert -density 96x96 $< $@
273
+ % .png : % .gif; convert -density 96x96 $< $@
319
274
% .eps : % .fig; fig2dev -L eps -F -c $< $@
320
275
321
276
# .idraw.gif:
@@ -331,9 +286,7 @@ LN= ln
331
286
# $(RM) $@
332
287
# fig2dev -L eps $< | $(PSTOPNM) | $(PNMTOPNG_PIPE) >$@
333
288
334
- all : build/blocks.ok $(SPECOBJS ) images/pngs.ok \
335
- $(IMAGES )
336
- # $(IMAGES) issues.html errata-issues.html DOC/TODO.html
289
+ all : build/blocks.ok $(SPECOBJS ) $(IMAGES )
337
290
338
291
build/warning :
339
292
echo " <!-- warning -->" > $@
@@ -344,36 +297,19 @@ build/warning:
344
297
# -@(cd images; for i in *.gif; do $(LN) -s $$i "`basename $$i .gif`" 2>//dev/null; done)
345
298
# touch images/links.ok
346
299
347
- install : all css2.tgz css2.txt css2.zip css2.ps.gz css2.pdf $( INSTALLDIR ) / .htaccess
300
+ install : all css2.tgz css2.txt css2.zip css2.ps.gz css2.pdf .htaccess
348
301
@if [ -z " $( INSTALLDIR) " ]; then\
349
302
echo >&2 ; \
350
303
echo " *** No target directory specified" >&2 ; \
351
304
echo " *** Please use: make install INSTALLDIR=<target-dir>" >&2 ; \
352
305
exit 1; \
353
306
fi
354
307
@if [ ! -d $( INSTALLDIR) ]; then mkdir -p $(INSTALLDIR ) ; fi
355
- $(CP ) css2.txt css2.zip css2.ps.gz css2.pdf css2.tgz $(INSTALLDIR )
356
- zcat css2.tgz | (cd $( INSTALLDIR) ; $( TAR) xvf -)
357
- # -$(RM) -f $(CSSGROUPDIR)/issues.html
358
- # -$(RM) $(CSSGROUPDIR)/css2-issues.html
359
- # $(LN) -s $(INSTALLDIR)/issues.html $(CSSGROUPDIR)/css2-issues.html
308
+ $(CP ) css2.txt css2.zip css2.ps.gz css2.pdf css2.tgz .htaccess $(INSTALLDIR )
309
+ cat css2.tgz | (cd $( INSTALLDIR) ; $( TAR) xvf -)
360
310
-$(RM ) $(INSTALLDIR ) /Overview.html
361
311
(cd $( INSTALLDIR) ; $( LN) -s cover.html Overview.html)
362
312
363
- $(INSTALLDIR ) /.htaccess :
364
- mkdir -p $(INSTALLDIR )
365
- echo " DirectoryIndex cover.html" > $@
366
- echo " <Files ~ \" \.html\" >" >> $@
367
- echo " ForceType 'text/html; charset=iso-8859-1'" >> $@
368
- echo " </Files>" >> $@
369
- echo " <Files ~ \" \.txt\" >" >> $@
370
- echo " ForceType 'text/plain; charset=iso-8859-1'" >> $@
371
- echo " </Files>" >> $@
372
-
373
- link : install
374
- -$(RM ) -f $(TR_DIR ) /$(PERMANENT_NAME )
375
- (cd $( TR_DIR) ; $( LN) -s $( THE_LOC) $( PERMANENT_NAME) )
376
-
377
313
install-ps : install css2.ps.gz
378
314
$(CP ) css2.ps.gz $(INSTALLDIR )
379
315
@@ -384,22 +320,6 @@ install-pdf: install css2.pdf
384
320
install-all : install install-ps install-pdf css2.zip css2.txt
385
321
$(CP ) css2.zip css2.txt $(INSTALLDIR )
386
322
387
- images/pngs.ok : images/* .idraw images/* .fig
388
- -@for f in images/* .idraw; do make images/` basename $$ f .idraw` .gif; done
389
- -@for f in images/* .idraw; do make images/` basename $$ f .idraw` .png; done
390
- -@for f in images/* .fig; do make images/` basename $$ f .fig` .gif; done
391
- -@for f in images/* .fig; do make images/` basename $$ f .fig` .png; done
392
- touch images/pngs.ok
393
-
394
- translations.html : translations.src
395
- $(SED ) -e " s|_THE_LATEST_VERSION_|$( THE_LATEST_VERSION) |g" \
396
- -e " s|_THE_UPDATE_DIR_|$( THE_UPDATE_DIR) |g" $< > $@
397
-
398
- errata.html : errata.src
399
- $(SED ) -e " s|_THIS_VERSION_|$( THIS_VERSION) |g" \
400
- -e " s|_THE_LATEST_VERSION_|$( THE_LATEST_VERSION) |g" \
401
- -e " s|_THE_ID_|$( THE_ID) |g" \
402
- -e " s|_THE_UPDATE_DIR_|$( THE_UPDATE_DIR) |g" $< > $@
403
323
404
324
# ### Special section to build PS file and single plain text file
405
325
@@ -478,7 +398,6 @@ cover.html: cover.srd Project.cfg
478
398
$(ADDNAVBAR ) -r $@ $< | \
479
399
$(MKCHAIN ) -r $@ - | \
480
400
$(SED ) -e " s|_THIS_VERSION_|$( THIS_VERSION) |g" \
481
- -e " s|_THE_PREVIOUS_VERSION_|$( THE_PREVIOUS_VERSION) |g" \
482
401
-e " s|_THE_LATEST_VERSION_|$( THE_LATEST_VERSION) |g" \
483
402
-e " s|_THE_STATUS_|$( THE_STATUS) |g" \
484
403
-e " s|_THE_STATUSNAME_|$( THE_STATUSNAME) |g" \
@@ -516,7 +435,6 @@ indexlist.html: indexlist.srd build/indexlist.srb Project.cfg build/warning
516
435
$(INSAFTER ) - build/warning /H1 - | \
517
436
$(MKCHAIN ) -r $@ - | \
518
437
$(SED ) -e " s|_THIS_VERSION_|$( THIS_VERSION) |g" \
519
- -e " s|_THE_PREVIOUS_VERSION_|$( THE_PREVIOUS_VERSION) |g" \
520
438
-e " s|_THE_LATEST_VERSION_|$( THE_LATEST_VERSION) |g" \
521
439
-e " s|_THE_STATUS_|$( THE_STATUS) |g" \
522
440
-e " s|_THE_STATUSNAME_|$( THE_STATUSNAME) |g" \
@@ -535,31 +453,6 @@ propidx.srd:: build/propidx.srb #propidx.src
535
453
# @echo "=========== making" $@
536
454
# $(HIPP) $(INCLUDES) $< $@
537
455
538
- # Issues and todo lists.
539
- # issues.html: issues.src build/issues.srb
540
- # @echo "=========== making" $@
541
- # $(HIPP) $(INCLUDES) $< $@
542
-
543
- # build/issues.srb: issues.db
544
- # @echo "=========== making" $@
545
- # $(ISSUES) -g >$@
546
-
547
- # Errata-Issues
548
- # errata-issues.html: errata-issues.src build/errata-issues.srb
549
- # @echo "=========== making" $@
550
- # $(HIPP) $(INCLUDES) $< $@
551
-
552
- # build/errata-issues.srb: errata-issues.db
553
- # @echo "=========== making" $@
554
- # $(ERRATA) -g >$@
555
-
556
- # DOC/TODO.html: DOC/TODO.src build/todo.srb
557
- # @echo "=========== making" $@
558
- # $(HIPP) $(INCLUDES) $< $@
559
-
560
- # build/todo.srb: DOC/todo.db
561
- # @echo "=========== making" $@
562
- # $(TODO) -g >$@
563
456
564
457
# ## check on the document to see if it's valid
565
458
@@ -646,39 +539,18 @@ checkx: build/checkx.out
646
539
@$(DIFF ) checkx.out build/checkx.out > build/checkx.diff \
647
540
|| echo output differs, see build/checkx.diff for details.
648
541
649
- # get cvs logs
650
-
651
- FROMDATE =1 week ago
652
- log :
653
- @for i in ` cat DOC/FILES` ; \
654
- do cvs log -d " >$( FROMDATE) " $$ i > /tmp/log; \
655
- $(GREP ) " selected revisions: 0" /tmp/log > /dev/null || cat /tmp/log; \
656
- done ; rm /tmp/log
657
-
658
542
clean :
659
543
$(RM ) $(SPECOBJS ) $(PROPBLKSDIR ) /* \
660
544
$(SPECOBJS:.html=.srd ) $(SPECOBJS:.html=.subtoc ) \
661
- build/* css2.* linklint images/links.ok images/pngs.ok
545
+ build/* css2.* linklint images/links.ok
662
546
663
547
realclean : clean
664
548
665
549
depend :
666
550
$(HMKDEPEND ) $(SPECOBJS )
667
551
668
- # Rules to make diff files relative to previous REC and WD.
669
- # htmldiff returns >0 if there are differences, so we ignore the exit code.
670
-
671
- PREVREC = ../../../WWW/TR/2011/REC-CSS2-20110607
672
- PREVWD = ../../../WWW/TR/$(PREV_YEAR ) /$(PREV_STATUS ) -$(PREV_NAME ) -$(PREV_DATE )
673
- HTMLDIFF = htmldiff -i -w '<del>' -x '</del>' -y '<ins>' -z '</ins>'
674
-
675
- diffs : $(SPECOBJS )
676
- -(cd diffs-rec; \
677
- make PREV=../$(PREVREC ) HTMLDIFF=" $( HTMLDIFF) " $(SPECOBJS ) )
678
- -(cd diffs-wd; \
679
- make PREV=../$(PREVWD ) HTMLDIFF=" $( HTMLDIFF) " $(SPECOBJS ) )
680
552
681
553
682
- .PHONY : all install install-all clean realclean checkx diffs
554
+ .PHONY : all install install-all clean realclean checkx
683
555
684
556
# #### The following is automatically generated. Do not edit!! ####
0 commit comments