Accomodated embedded bibliography
[latex-mlastyle.git] / Makefile
index cc266dbfd2c76fb26a12750460bdf4fc7dd99423..9cbf84bf735bcf327447041e35148d359c3530e4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,12 +18,12 @@ FAKEROOT=`[ -x /usr/bin/fakeroot ] && echo /usr/bin/fakeroot`
 %.ind: %.idx
        $(MAKEINDEX) -s gglo.ist -o $*.gls $*.glo
        $(MAKEINDEX) -s gind.ist -o $*.ind $*.idx
+       [ ! -f $*.bib ] || bibtex $*.aux
 
 %.idx: %.dtx
        $(LATEX) $<
 
 %.dvi: %.sty %.dtx %.ind
-       [ ! -f $*.bib ] || bibtex $*.aux
        $(LATEX) $*.dtx
        $(LATEX) $*.dtx
 
@@ -48,7 +48,7 @@ mlastyle.sty: mlastyle.ins mlastyle.dtx
 mlastyle.dvi: mlastyle.sty
 
 clean:
-       rm -f *.glo *.gls *.idx *.ilg *.ind *.toc *.log *.aux *.blg *.bbl *~
+       rm -f *.glo *.gls *.idx *.ilg *.ind *.toc *.log *.aux *.blg *.bib *.bbl *~
 
 distclean: clean
        rm -f mlastyle.sty mlastyle.dvi mlastyle.ps mlastyle.pdf