]> mj.ucw.cz Git - saga.git/blobdiff - Makefile
Fixed the definition of edge density in Chapter 3.1.
[saga.git] / Makefile
index 14143dea53bb2992a48abde0d4e112257909dfb9..89f0c4217b3d254589c7f6b158e42f75e129f790 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,21 @@
-all: saga.ps
+all: saga.ps abstract.ps abscover.ps pubs.ps
 
-CHAPTERS=cover
+CHAPTERS=cover pref mst ram adv opt dyn appl rank epilog notation
 
-saga.dvi: saga.tex $(addsuffix .tex,$(CHAPTERS)) macros.tex
-       csplain $<
+%.dvi: %.tex macros.tex fonts12.tex fonts10.tex biblio.bib mjalpha.bst
+       tex $< && mv $*.toc $*.tok
+       bibtex $*
+       tex $< && mv $*.toc $*.tok
+       tex $< && mv $*.toc $*.tok
+
+pubs.dvi: pubs.tex macros.tex fonts12.tex
+       tex $<
 
-%.dvi: %.tex macros.tex
+abscover.dvi: abscover.tex
        csplain $<
 
+saga.dvi: $(addsuffix .tex,$(CHAPTERS))
+
 %.ps: %.dvi
        dvips -D600 -o $@ -t a4 $<
 
@@ -15,9 +23,15 @@ 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 *.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: