Added loop to makefile to ensure pdflatex is invoked enough times to catch
the reference changes