TEXS = AlgorithmTests.tex

DVIS = ${TEXS:.tex=.dvi}
PSS = ${DVIS:.dvi=.ps}

.SUFFIXES:	.tex .dvi .ps

.dvi.ps:
	- dvips -o ${?:.dvi=.ps} $?

.tex.dvi:
	- latex $?

all:	$(TEXS)
dirs: 
	cd graphs; $(MAKE) -f Make.graphTests document
	cd algorithm; $(MAKE) -f Make.algorithmTests document

document:	dirs $(TEXS) $(DVIS) $(PSS)

clean:
	cd algorithm; $(MAKE) -f Make.algorithmTests clean
	- rm -f *.log *.dvi *.log *.ps
