]> mj.ucw.cz Git - ga.git/commitdiff
Don't run bibtex if there are no citations.
authorMartin Mares <mj@ucw.cz>
Fri, 12 Jan 2007 20:10:55 +0000 (21:10 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 12 Jan 2007 20:10:55 +0000 (21:10 +0100)
Makerules

index 4db44134d348eb906e71df257e2544576384a5a1..501683054ef33539bfd129b667139d92ca1d8967 100644 (file)
--- 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 $<