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