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