all: sample.pdf

# the flow graph was made with the `dot' program that is part of the
# `graphviz' package from AT&T research:

%.ps: %.dot
	dot -Tps $< > $@

%.pdf: %.ps
	ps2pdf $<

%.ps: %.dvi
	dvips -f $< -o $@

%.dvi: %.tex
	latex $*
	bibtex $*
	latex $*
	latex $*

.PHONY: clean very-clean

clean:
	-$(RM) *.ps *.dvi

very-clean: clean
	-$(RM) *.log *.aux *.pdf
