Mercurial > hgbook
diff en/Makefile @ 30:cc1e6f1d7161
Use PDF instead of PNG for images in the PDF book
author | Josef "Jeff" Sipek <jeffpc@josefsipek.net> |
---|---|
date | Sat, 15 Jul 2006 21:53:57 -0400 |
parents | 1bc6c1f0192a |
children | 51d94bd2804c |
line wrap: on
line diff
--- a/en/Makefile Thu Jul 13 14:58:31 2006 -0700 +++ b/en/Makefile Sat Jul 15 21:53:57 2006 -0400 @@ -42,7 +42,7 @@ if grep 'Reference.*undefined' $(@:.pdf=.log); then exit 1; fi endef -pdf/hgbook.pdf: $(sources) $(image-sources:%.svg=%_pdf.png) examples +pdf/hgbook.pdf: $(sources) $(image-sources:%.svg=%.pdf) examples $(call pdf) html: html/onepage/hgbook.html html/split/hgbook.html @@ -80,7 +80,7 @@ beta/%.tex: %.tex ./fblinks $(hg_id) $(dir $@) $< -beta/pdf/hgbook.pdf: $(sources:%.tex=beta/%.tex) $(image-sources:%.svg=%_pdf.png) examples fblinks +beta/pdf/hgbook.pdf: $(sources:%.tex=beta/%.tex) $(image-sources:%.svg=%.pdf) examples fblinks $(call pdf) beta/html/onepage/hgbook.html: $(sources:%.tex=beta/%.tex) $(image-sources:%.svg=%.png) examples @@ -96,10 +96,13 @@ %.png: %.svg inkscape -D -e $@ $< -# Produce 300dpi PNGs for PDF. +# Produce eps & pdf for the pdf -%_pdf.png: %.svg - inkscape -D -d 300 -e $@ $< +%.pdf: %.eps + epstopdf $< + +%.eps: %.svg + inkscape -D -E $@ $< examples: examples/.run @@ -110,5 +113,5 @@ echo $(hg_id) > build_id.tex clean: - rm -rf beta html pdf *.eps *.png *.aux *.dvi *.log *.out \ + rm -rf beta html pdf *.eps *.pdf *.png *.aux *.dvi *.log *.out \ examples/*.out examples/.run build_id.tex