workaround texinfo problem with non-local images
authorTom Henderson <tomh@tomh.org>
Thu, 03 Apr 2008 23:03:25 -0700
changeset 2872 ab470305c52a
parent 2871 6d712f10acc0
child 2873 e6ca6125fc44
workaround texinfo problem with non-local images
doc/tutorial/Makefile
doc/tutorial/helpers.texi
--- a/doc/tutorial/Makefile	Thu Apr 03 22:42:10 2008 -0700
+++ b/doc/tutorial/Makefile	Thu Apr 03 23:03:25 2008 -0700
@@ -6,15 +6,17 @@
 CSS = --css-include=tutorial.css
 SPLIT = --split section
 
-TGIF_SOURCES = helpers.obj 
+TGIF_SOURCES = helpers.obj helpers2.obj
 TGIF_EPS = ${TGIF_SOURCES:.obj=.eps}
+TGIF_PNG = ${TGIF_SOURCES:.obj=.eps}
 
 all:  images html split-html pdf
 
 images:
-	cd figures/; $(TGIF) -print -eps $(TGIF_SOURCES) 
-	cd figures/; $(foreach FILE,$(TGIF_EPS),$(CONVERT) $(FILE) ${FILE:.eps=.png};)
-	cd figures/; $(foreach FILE,$(TGIF_EPS),$(EPSTOPDF) $(FILE);)
+	cd figures/; cp $(TGIF_SOURCES) ../
+	$(TGIF) -print -eps $(TGIF_SOURCES) 
+	$(foreach FILE,$(TGIF_EPS),$(CONVERT) $(FILE) ${FILE:.eps=.png};)
+	$(foreach FILE,$(TGIF_EPS),$(EPSTOPDF) $(FILE);)
 
 html: images
 	$(TEXI2HTML) ${CSS} tutorial.texi
@@ -26,4 +28,4 @@
 	$(TEXI2PDF) tutorial.texi
 
 clean:
-	rm -rf tutorial.aux tutorial.cp tutorial.cps tutorial.fn tutorial.ky tutorial.pg tutorial.tp tutorial.vr tutorial.toc tutorial.log tutorial.pdf tutorial.html tutorial/ 
+	rm -rf $(TGIF_SOURCES) $(TGIF_EPS) $(TGIF_PNG) tutorial.aux tutorial.cp tutorial.cps tutorial.fn tutorial.ky tutorial.pg tutorial.tp tutorial.vr tutorial.toc tutorial.log tutorial.pdf tutorial.html tutorial/ 
--- a/doc/tutorial/helpers.texi	Thu Apr 03 22:42:10 2008 -0700
+++ b/doc/tutorial/helpers.texi	Thu Apr 03 23:03:25 2008 -0700
@@ -6,7 +6,7 @@
 @code{src/helper/} directory; it depends on (and wraps) the low-level
 API which is implemented everywhere else in @code{src/}.  The following
 figure shows this relationship.
-@center @image{figures/helpers,,,,png}
+@center @image{helpers,,,,png}
 
 The use of the helper API is optional.  It has two main goals:
 @itemize @bullet