]> mj.ucw.cz Git - saga.git/blobdiff - Makefile
Corrections of the Preface.
[saga.git] / Makefile
index 6b931d19b326647d1f3f8927ed65ad77481c576f..19a4feec04ebaaf7a469b9f3a87b2f48dbfd8664 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,12 @@
 all: saga.ps
 
-CHAPTERS=cover mst notation ram
+CHAPTERS=cover pref mst ram adv opt dyn appl rank epilog notation
 
 %.dvi: %.tex macros.tex biblio.bib
-       tex $< && if grep -q citation $*.aux ; then bibtex $* && tex $< && tex $< ; fi
+       tex $< && mv $*.toc $*.tok
+       bibtex $*
+       tex $< && mv $*.toc $*.tok
+       tex $< && mv $*.toc $*.tok
 
 saga.dvi: $(addsuffix .tex,$(CHAPTERS))
 
@@ -14,9 +17,15 @@ saga.dvi: $(addsuffix .tex,$(CHAPTERS))
        dvipdfm -o $@ -p a4 -r 600 -z 9 $<
 
 mostlyclean:
-       rm -f *.dvi *.log *~ core *.o *.aux *.bbl *.blg *.ids
+       rm -f *.dvi *.log *~ core *.o *.aux *.bbl *.blg *.ids *.toc *.tok
 
-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: