|
1 | 1 | # Makefile to generate the CSS2 document based on its "source files" |
2 | 2 | # Arnaud Le Hors - lehors@w3.org |
3 | | -# $Id: Makefile,v 2.118 2011-06-06 09:59:21 bbos Exp $ |
| 3 | +# $Id: Makefile,v 2.119 2011-10-18 19:41:44 bbos Exp $ |
4 | 4 |
|
5 | 5 | # what needs to be set for every new release: |
6 | 6 | # Note use of full year (1998) in identifier. |
@@ -248,7 +248,7 @@ TAR= tar |
248 | 248 | ZIP= zip -y |
249 | 249 | LN= ln |
250 | 250 |
|
251 | | -.SUFFIXES: .src .html .srd .idraw .gif .ps .subtoc .png .fig |
| 251 | +.SUFFIXES: .src .html .srd .idraw .gif .ps .subtoc .png .fig .pdf |
252 | 252 |
|
253 | 253 | %.subtoc: %.srd Project.cfg |
254 | 254 | @echo "=========== making" $@ |
@@ -376,23 +376,29 @@ errata.html : errata.src |
376 | 376 |
|
377 | 377 | extras: css2.tgz |
378 | 378 |
|
379 | | -css2.ps: build/blocks.ok $(SPECOBJS) images/pngs.ok $(IMAGES) |
380 | | -# Because of memory limitations in html2ps, use the |
381 | | -# automagic feature that any *.gif files are not |
382 | | -# converted to ps if there's a *.ps file in the same |
383 | | -# directory. |
384 | | - -@(cd images; for i in *.idraw; do $(LN) -s $$i "`basename $$i .idraw`.ps"; done) |
385 | | - $(HTML2PS) $(SPECOBJS) > $@ |
| 379 | +%.pdf: %.html style/default.css; prince -o $@ $< |
| 380 | +%.ps: %.pdf; $(PDF2PS) $< $@ |
| 381 | + |
| 382 | +css2.pdf: $(SPECOBJS:.html=.pdf) |
| 383 | + pdftk $+ cat output $@ |
| 384 | + |
| 385 | +# css2.ps: build/blocks.ok $(SPECOBJS) images/pngs.ok $(IMAGES) |
| 386 | +# # Because of memory limitations in html2ps, use the |
| 387 | +# # automagic feature that any *.gif files are not |
| 388 | +# # converted to ps if there's a *.ps file in the same |
| 389 | +# # directory. |
| 390 | +# -@(cd images; for i in *.idraw; do $(LN) -s $$i "`basename $$i .idraw`.ps"; done) |
| 391 | +# $(HTML2PS) $(SPECOBJS) > $@ |
386 | 392 |
|
387 | 393 | #css2.ps: css2.pdf |
388 | 394 | # $(PDF2PS) $< $@ |
389 | 395 |
|
390 | 396 | css2.ps.gz: css2.ps |
391 | 397 | gzip <$< >$@ |
392 | 398 |
|
393 | | -# This requires Acrobat Distiller or equivalent |
394 | | -css2.pdf: css2.ps |
395 | | - $(DISTILL) css2.ps |
| 399 | +# # This requires Acrobat Distiller or equivalent |
| 400 | +# css2.pdf: css2.ps |
| 401 | +# $(DISTILL) css2.ps |
396 | 402 |
|
397 | 403 | #css2.pdf: css2.html |
398 | 404 | # $(HTML2PDF) $< $@ |
|
0 commit comments