diff --git a/am/latex b/am/latex index 4f1cba0397c03267d7ab992261f2a6247de3ace7..92d9493cf700632553fdb48fa1e3d93edae693cb 100644 --- a/am/latex +++ b/am/latex @@ -2,18 +2,18 @@ # rerun TEX if log-file suggests that .tex.dvi: - $(TEX) </dev/null $* + $(TEX) </dev/null $< while grep Rerun $*.log > /dev/null ; do \ - $(TEX) </dev/null $* || exit $$?; \ + $(TEX) </dev/null $< || exit $$?; \ done # check if Bibtex needs to be called if grep '^\\bibdata{' *.aux > /dev/null \ && grep '^\\citation{' *.aux > /dev/null; \ then \ - $(BIBTEX) $* || exit $$?; \ - $(TEX) </dev/null $* || exit $$?; \ + $(BIBTEX) $< || exit $$?; \ + $(TEX) </dev/null $< || exit $$?; \ while grep Rerun $*.log > /dev/null ; do \ - $(TEX) </dev/null $* || exit $$?; \ + $(TEX) </dev/null $< || exit $$?; \ done ; \ fi