hgbook

diff en/Makefile @ 31:51d94bd2804c

Merge Jeff's PDF image fixes.
author Bryan O'Sullivan <bos@serpentine.com>
date Sat Jul 15 21:02:13 2006 -0700 (2006-07-15)
parents 6e988159394b cc1e6f1d7161
children b7d46e86a5f1
line diff
     1.1 --- a/en/Makefile	Wed Jul 12 00:33:27 2006 -0700
     1.2 +++ b/en/Makefile	Sat Jul 15 21:02:13 2006 -0700
     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 -n $(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