From: Martin Mares Date: Fri, 12 Jan 2007 20:10:55 +0000 (+0100) Subject: Don't run bibtex if there are no citations. X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;ds=inline;h=4b45037667d9abaa3e566e2d7cc2dd45e91d7f80;p=ga.git Don't run bibtex if there are no citations. --- diff --git a/Makerules b/Makerules index 4db4413..5016830 100644 --- a/Makerules +++ b/Makerules @@ -1,10 +1,7 @@ all: $P.ps %.dvi: %.tex ../sgr.tex ../ga.bib - csplain $< - bibtex $* - csplain $< - csplain $< # BibTeX requires 3 passes of TeXing! + csplain $< && if grep -q citation $*.aux ; then bibtex $* && csplain $< && csplain $< ; fi %.pdf: %.tex ../sgr.tex pdfcsplain $<