Makefile 469 B

12345678910111213141516171819
  1. all: refman.pdf
  2. pdf: refman.pdf
  3. refman.pdf: clean refman.tex
  4. pdflatex refman
  5. makeindex refman.tex
  6. pdflatex refman
  7. latex_count=5 ; \
  8. while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
  9. do \
  10. echo "Rerunning latex...." ;\
  11. pdflatex refman ;\
  12. latex_count=`expr $$latex_count - 1` ;\
  13. done
  14. clean:
  15. rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf