all: saga.ps CHAPTERS=cover pref mst ram adv opt dyn appl rank epilog notation %.dvi: %.tex macros.tex biblio.bib tex $< && mv $*.toc $*.tok bibtex $* tex $< && mv $*.toc $*.tok tex $< && mv $*.toc $*.tok saga.dvi: $(addsuffix .tex,$(CHAPTERS)) %.ps: %.dvi dvips -D600 -o $@ -t a4 $< %.pdf: %.dvi dvipdfm -o $@ -p a4 -r 600 -z 9 $< mostlyclean: rm -f *.dvi *.log *~ core *.o *.aux *.bbl *.blg *.ids *.toc *.tok 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: