]> mj.ucw.cz Git - saga.git/blobdiff - Makefile
Further exchange theorems.
[saga.git] / Makefile
index 14143dea53bb2992a48abde0d4e112257909dfb9..0d0ac1d29a83d85febd8ffd8e0e355f31d66f3ff 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,11 @@
 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 $<
@@ -15,7 +14,7 @@ saga.dvi: saga.tex $(addsuffix .tex,$(CHAPTERS)) macros.tex
        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