context.html: context.tex context.bbl
	latex context
	hevea context.tex

context.bbl: context.tex rewriting.bib
	latex context
	bibtex context

context.ps: context.dvi
	dvips -o context.ps context.dvi

context.dvi: context.tex context.bbl
	latex context
	-(grep -q "Rerun" context.log && latex context)

clean:
	rm -f *.ps *.dvi *.html *.aux *.haux *log *.blg *.bbl
