all: saga.ps CHAPTERS=cover %.dvi: %.tex macros.tex tex $< && if grep -q citation $*.aux ; then bibtex $* && tex $< && tex $< ; fi saga.dvi: $(addsuffix .tex,$(CHAPTERS)) %.ps: %.dvi dvips -D600 -o $@ -t a4 $< %.pdf: %.dvi dvipdfm -o $@ -p a4 -r 600 -z 9 $< mostlyclean: rm -f *.dvi *.log *~ core *.o *.aux *.bbl *.blg clean:: mostlyclean rm -f *.ps *.pdf .SECONDARY: