.SUFFIXES: .obj .eps .png .obj.png: tgif -print -png $< .obj.eps: tgif -print -eps -color $< XMLS = guide.xml intro.xml overall.xml block.xml inline.xml multifiles.xml IMAGES= PICTURES= html: guide.html ps: guide.ps txt: guide.txt all: ps html txt guide.html : $(XMLS) $(IMAGES) ../html.xsl ../xp ../preprocess.xsl guide.xml >guide.tmp ../xp ../html.xsl guide.tmp > guide.html rm guide.tmp guide.ps : $(XMLS) $(PICTURES) ../latex.xsl ../xp ../xp ../preprocess.xsl guide.xml >guide.tmp ../xp --latex ../latex.xsl guide.tmp > guide.tex latex guide.tex dvips -o guide.ps guide.dvi rm guide.tmp guide.pdf : $(XMLS) $(PICTURES) ../latex.xsl ../xp ../xp ../preprocess.xsl guide.xml >guide.tmp ../xp --latex ../latex.xsl guide.tmp > guide.tex pdflatex guide.tex rm guide.tmp guide.txt : $(XMLS) ../text.xsl ../xp ../preprocess.xsl guide.xml >guide.tmp ../xp ../text.xsl guide.tmp > guide.txt rm guide.tmp check: xmllint --noout --valid $(XMLS) clean: rm -f guide.html guide.ps guide.tex guide.dvi guide.log guide.txt guide.pdf rm -f $(IMAGES) $(PICTURES)