]> mj.ucw.cz Git - saga.git/blob - Makefile
7d9d0a3890f4e85f44b39f1d21fc38e1f64be737
[saga.git] / Makefile
1 all: saga.ps
2
3 CHAPTERS=cover mst
4
5 %.dvi: %.tex macros.tex
6         tex $< && if grep -q citation $*.aux ; then bibtex $* && tex $< && tex $< ; fi
7
8 saga.dvi: $(addsuffix .tex,$(CHAPTERS))
9
10 %.ps: %.dvi
11         dvips -D600 -o $@ -t a4 $<
12
13 %.pdf: %.dvi
14         dvipdfm -o $@ -p a4 -r 600 -z 9 $<
15
16 mostlyclean:
17         rm -f *.dvi *.log *~ core *.o *.aux *.bbl *.blg
18
19 clean:: mostlyclean
20         rm -f *.ps *.pdf
21
22 .SECONDARY: