]> mj.ucw.cz Git - saga.git/blobdiff - Makefile
Continuing with the intro to dynamic algorithms.
[saga.git] / Makefile
index 0d0ac1d29a83d85febd8ffd8e0e355f31d66f3ff..9d0d809915802ea260c2d115506800b4c9cadde9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
 all: saga.ps
 
-CHAPTERS=cover mst
+CHAPTERS=cover mst ram adv opt dyn rank notation
 
-%.dvi: %.tex macros.tex
-       tex $< && if grep -q citation $*.aux ; then bibtex $* && tex $< && tex $< ; fi
+%.dvi: %.tex macros.tex biblio.bib
+       tex $< && bibtex $* && tex $< && tex $<
 
 saga.dvi: $(addsuffix .tex,$(CHAPTERS))
 
@@ -16,7 +16,13 @@ saga.dvi: $(addsuffix .tex,$(CHAPTERS))
 mostlyclean:
        rm -f *.dvi *.log *~ core *.o *.aux *.bbl *.blg *.ids
 
-clean:: mostlyclean
+clean: mostlyclean
        rm -f *.ps *.pdf
 
+countrefs: saga.dvi
+       grep -c bibitem saga.bbl
+
+upload: saga.pdf
+       scp -C saga.pdf jw:www/papers/saga/
+
 .SECONDARY: