|
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.93 2006-04-06 22:07:00 bbos Exp $ |
| 3 | +# $Id: Makefile,v 2.94 2006-04-06 23:26:09 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. |
@@ -214,6 +214,8 @@ ADDLONGDESC = $(PERL) ./bin/addlongdesc |
214 | 214 | # utility to generate the PostScript version |
215 | 215 | # |
216 | 216 | HTML2PS= $(PERL) bin/html2ps -d -f html2psrc2 |
| 217 | +PDF2PS=pdftops |
| 218 | +HTML2PDF=prince |
217 | 219 |
|
218 | 220 | # IDRAW -> PS -> GIF tools |
219 | 221 | #PSTOPNM = ./bin/mypstopnm -r 75 |
@@ -343,20 +345,28 @@ errata.html : errata.src |
343 | 345 |
|
344 | 346 | #### Special section to build PS file and single plain text file |
345 | 347 |
|
346 | | -css2.ps ps: build/blocks.ok $(SPECOBJS) images/pngs.ok $(IMAGES) |
| 348 | +extras: css2.ps.gz css2.pdf css2.txt css2.zip css2.tgz |
| 349 | + |
| 350 | +#css2.ps ps: build/blocks.ok $(SPECOBJS) images/pngs.ok $(IMAGES) |
347 | 351 | # Because of memory limitations in html2ps, use the |
348 | 352 | # automagic feature that any *.gif files are not |
349 | 353 | # converted to ps if there's a *.ps file in the same |
350 | 354 | # directory. |
351 | | - -@(cd images; for i in *.idraw; do $(LN) -s $$i "`basename $$i .idraw`.ps"; done) |
352 | | - $(HTML2PS) $(SPECOBJS) > $@ |
| 355 | +# -@(cd images; for i in *.idraw; do $(LN) -s $$i "`basename $$i .idraw`.ps"; done) |
| 356 | +# $(HTML2PS) $(SPECOBJS) > $@ |
| 357 | + |
| 358 | +css2.ps: css2.pdf |
| 359 | + $(PDF2PS) $< $@ |
353 | 360 |
|
354 | 361 | css2.ps.gz: css2.ps |
355 | 362 | gzip <$< >$@ |
356 | 363 |
|
357 | 364 | # This requires Acrobat Distiller or equivalent |
358 | | -css2.pdf: css2.ps |
359 | | - $(DISTILL) css2.ps |
| 365 | +#css2.pdf pdf: css2.ps |
| 366 | +# $(DISTILL) css2.ps |
| 367 | + |
| 368 | +css2.pdf: css2.html |
| 369 | + $(HTML2PDF) $< $@ |
360 | 370 |
|
361 | 371 | css2.html html: $(SPECOBJS) |
362 | 372 | $(HTMLCAT) - $(SPECOBJS) | \ |
|
0 commit comments