Skip to content

Commit 296d3ef

Browse files
committed
[css2] Different way to create the single large PDF: first use prince to
create PDFs of each chapter, than use pdftk to concatenate those PDFs. --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%403249
1 parent 475f2f0 commit 296d3ef

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

css2/Makefile

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Makefile to generate the CSS2 document based on its "source files"
22
# 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 $
44

55
# what needs to be set for every new release:
66
# Note use of full year (1998) in identifier.
@@ -248,7 +248,7 @@ TAR= tar
248248
ZIP= zip -y
249249
LN= ln
250250

251-
.SUFFIXES: .src .html .srd .idraw .gif .ps .subtoc .png .fig
251+
.SUFFIXES: .src .html .srd .idraw .gif .ps .subtoc .png .fig .pdf
252252

253253
%.subtoc: %.srd Project.cfg
254254
@echo "=========== making" $@
@@ -376,23 +376,29 @@ errata.html : errata.src
376376

377377
extras: css2.tgz
378378

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) > $@
386392

387393
#css2.ps: css2.pdf
388394
# $(PDF2PS) $< $@
389395

390396
css2.ps.gz: css2.ps
391397
gzip <$< >$@
392398

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
396402

397403
#css2.pdf: css2.html
398404
# $(HTML2PDF) $< $@

0 commit comments

Comments
 (0)