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 Jul 15 21:53:57 2006 -0400 (2006-07-15) |
parents | 1bc6c1f0192a |
children | 51d94bd2804c |
line diff
1.1 --- a/en/Makefile Tue Jul 11 23:48:25 2006 -0700 1.2 +++ b/en/Makefile Sat Jul 15 21:53:57 2006 -0400 1.3 @@ -42,7 +42,7 @@ 1.4 if grep 'Reference.*undefined' $(@:.pdf=.log); then exit 1; fi 1.5 endef 1.6 1.7 -pdf/hgbook.pdf: $(sources) $(image-sources:%.svg=%_pdf.png) examples 1.8 +pdf/hgbook.pdf: $(sources) $(image-sources:%.svg=%.pdf) examples 1.9 $(call pdf) 1.10 1.11 html: html/onepage/hgbook.html html/split/hgbook.html 1.12 @@ -80,7 +80,7 @@ 1.13 beta/%.tex: %.tex 1.14 ./fblinks $(hg_id) $(dir $@) $< 1.15 1.16 -beta/pdf/hgbook.pdf: $(sources:%.tex=beta/%.tex) $(image-sources:%.svg=%_pdf.png) examples fblinks 1.17 +beta/pdf/hgbook.pdf: $(sources:%.tex=beta/%.tex) $(image-sources:%.svg=%.pdf) examples fblinks 1.18 $(call pdf) 1.19 1.20 beta/html/onepage/hgbook.html: $(sources:%.tex=beta/%.tex) $(image-sources:%.svg=%.png) examples 1.21 @@ -96,10 +96,13 @@ 1.22 %.png: %.svg 1.23 inkscape -D -e $@ $< 1.24 1.25 -# Produce 300dpi PNGs for PDF. 1.26 +# Produce eps & pdf for the pdf 1.27 1.28 -%_pdf.png: %.svg 1.29 - inkscape -D -d 300 -e $@ $< 1.30 +%.pdf: %.eps 1.31 + epstopdf $< 1.32 + 1.33 +%.eps: %.svg 1.34 + inkscape -D -E $@ $< 1.35 1.36 examples: examples/.run 1.37 1.38 @@ -110,5 +113,5 @@ 1.39 echo $(hg_id) > build_id.tex 1.40 1.41 clean: 1.42 - rm -rf beta html pdf *.eps *.png *.aux *.dvi *.log *.out \ 1.43 + rm -rf beta html pdf *.eps *.pdf *.png *.aux *.dvi *.log *.out \ 1.44 examples/*.out examples/.run build_id.tex