4 rm -f diplomarbeit.{aux,log,pdf,toc}
7 diplomarbeit.pdf: diplomarbeit.tex
9 [ -e diplomarbeit.pdf ] || pdflatex diplomarbeit
10 if egrep -q 'Citation .* undefined' diplomarbeit.log; then \
11 bibtex diplomarbeit; pdflatex diplomarbeit; \
13 while egrep -q 'There were undefined references' diplomarbeit.log; do \
14 pdflatex diplomarbeit; \