diff en/Makefile @ 406:fb5c0d56d7f1

Fix test 'tour'. Executing 'tour' test now creates some files in /tmp to store the revision numbers as they are created on the fly and appear in the output files. When SVG files are to be converted to PNG or EPS files within the Makefile, a tool 'fixsvg' will be invoked to substitute some placeholder markup by the real version number which fits to the test output, before the final conversion takes place.
author Guido Ostkamp <hg@ostkamp.fastmail.fm>
date Wed, 20 Aug 2008 22:15:35 +0200
parents dc3d42f3a288
children 028543f67bea
line wrap: on
line diff
--- a/en/Makefile	Wed Aug 20 22:08:24 2008 +0200
+++ b/en/Makefile	Wed Aug 20 22:15:35 2008 +0200
@@ -123,7 +123,7 @@
 	if grep 'Reference.*undefined' $(@:.pdf=.log); then exit 1; fi
 endef
 
-pdf/hgbook.pdf: $(sources) $(image-pdf) examples
+pdf/hgbook.pdf: $(sources) examples $(image-pdf)
 	$(call pdf)
 
 html: onepage split
@@ -153,7 +153,7 @@
 	rm $(dir $(1))/hgbook.css
 endef
 
-html/onepage/hgbook.html: $(sources) $(image-html) examples bookhtml.cfg
+html/onepage/hgbook.html: $(sources) examples $(image-html) bookhtml.cfg
 	$(call htlatex,$@,$<)
 
 html/split/hgbook.html: $(sources) examples bookhtml.cfg
@@ -162,7 +162,9 @@
 # Produce 90dpi PNGs for the web.
 
 %.png: %.svg
-	inkscape -D -e $@ $<
+	./fixsvg $<
+	mv $<.tmp foobar.svg
+	inkscape -D -e $@ foobar.svg
 
 %.svg: %.dot
 	dot -Tsvg -o $@ $<
@@ -173,7 +175,9 @@
 	epstopdf $<
 
 %.eps: %.svg
-	inkscape -E $@ $<
+	./fixsvg $<
+	mv $<.tmp foobar.svg
+	inkscape -E $@ foobar.svg
 
 %.eps: %.dot
 	dot -Tps -o $@ $<