X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=19a4feec04ebaaf7a469b9f3a87b2f48dbfd8664;hb=68f5af63076e3b6e59829e95aa29567649b1e054;hp=7d9d0a3890f4e85f44b39f1d21fc38e1f64be737;hpb=0b098a51d29ed446bf39c0b784ab3898257f6d34;p=saga.git diff --git a/Makefile b/Makefile index 7d9d0a3..19a4fee 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,12 @@ all: saga.ps -CHAPTERS=cover mst +CHAPTERS=cover pref mst ram adv opt dyn appl rank epilog notation -%.dvi: %.tex macros.tex - tex $< && if grep -q citation $*.aux ; then bibtex $* && tex $< && tex $< ; fi +%.dvi: %.tex macros.tex biblio.bib + 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 + 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: