]> mj.ucw.cz Git - ga.git/blobdiff - Makerules
\twofigures potrebuje trochu jine zpracovani cest.
[ga.git] / Makerules
index 337e0dc1e8e3f6276ebd2738e5ec75e6513c53c5..501683054ef33539bfd129b667139d92ca1d8967 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -1,7 +1,7 @@
 all: $P.ps
 
-%.dvi: %.tex ../sgr.tex
-       csplain $<
+%.dvi: %.tex ../sgr.tex ../ga.bib
+       csplain $< && if grep -q citation $*.aux ; then bibtex $* && csplain $< && csplain $< ; fi
 
 %.pdf: %.tex ../sgr.tex
        pdfcsplain $<
@@ -22,7 +22,7 @@ all: $P.ps
        pstops '2:0L(212mm,0mm)+1L(212mm,150mm)' <$< | sed 's/^%%BoundingBox: .*/%%BoundingBox: 0 0 595 842/' >$@
 
 mostlyclean:
-       rm -f *.dvi *.log *~ core *.o *-700.tex *-a5.ps
+       rm -f *.dvi *.log *~ core *.o *-700.tex *-a5.ps *.aux *.bbl *.blg
 
 clean:: mostlyclean
        rm -f *.ps *.pdf