doc/tutorial/Makefile
author Tom Henderson <tomh@tomh.org>
Thu, 03 Apr 2008 23:03:25 -0700
changeset 2872 ab470305c52a
parent 2871 6d712f10acc0
child 2873 e6ca6125fc44
permissions -rw-r--r--
workaround texinfo problem with non-local images

TEXI2HTML = texi2html
TEXI2PDF = texi2dvi --pdf
EPSTOPDF = epstopdf
TGIF = tgif 
CONVERT = convert
CSS = --css-include=tutorial.css
SPLIT = --split section

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/; 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

split-html: images
	$(TEXI2HTML) ${CSS} ${SPLIT} tutorial.texi

pdf: images
	$(TEXI2PDF) tutorial.texi

clean:
	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/