fixes for Makefile due to tgif command-line limitations
authorTom Henderson <tomh@tomh.org>
Thu Apr 03 22:42:10 2008 -0700 (23 months ago)
changeset 28716d712f10acc0
parent 2870 6fb3db586fb5
child 2872 ab470305c52a
fixes for Makefile due to tgif command-line limitations
doc/tutorial/Makefile
     1.1 --- a/doc/tutorial/Makefile	Thu Apr 03 21:08:28 2008 -0700
     1.2 +++ b/doc/tutorial/Makefile	Thu Apr 03 22:42:10 2008 -0700
     1.3 @@ -2,18 +2,19 @@
     1.4  TEXI2PDF = texi2dvi --pdf
     1.5  EPSTOPDF = epstopdf
     1.6  TGIF = tgif 
     1.7 +CONVERT = convert
     1.8  CSS = --css-include=tutorial.css
     1.9  SPLIT = --split section
    1.10  
    1.11 -TGIF_SOURCES = helpers.obj
    1.12 +TGIF_SOURCES = helpers.obj 
    1.13  TGIF_EPS = ${TGIF_SOURCES:.obj=.eps}
    1.14  
    1.15  all:  images html split-html pdf
    1.16  
    1.17  images:
    1.18 -	cd figures/; $(TGIF) -print -png $(TGIF_SOURCES) 
    1.19  	cd figures/; $(TGIF) -print -eps $(TGIF_SOURCES) 
    1.20 -	cd figures/; $(EPSTOPDF) $(TGIF_EPS)
    1.21 +	cd figures/; $(foreach FILE,$(TGIF_EPS),$(CONVERT) $(FILE) ${FILE:.eps=.png};)
    1.22 +	cd figures/; $(foreach FILE,$(TGIF_EPS),$(EPSTOPDF) $(FILE);)
    1.23  
    1.24  html: images
    1.25  	$(TEXI2HTML) ${CSS} tutorial.texi
    1.26 @@ -23,3 +24,6 @@
    1.27  
    1.28  pdf: images
    1.29  	$(TEXI2PDF) tutorial.texi
    1.30 +
    1.31 +clean:
    1.32 +	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/