Makefile 525 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. RUBBER_INSTALLED := $(shell command -v rubber 2>/dev/null)
  2. WD := $(shell pwd)
  3. all: report.pdf
  4. report.pdf: report.tex
  5. ifdef RUBBER_INSTALLED
  6. rubber -d report.tex
  7. else
  8. pdflatex report.tex
  9. #bibtex
  10. pdflatex report.tex
  11. pdflatex report.tex
  12. @echo "=============================="
  13. @echo "= consider installing rubber ="
  14. @echo "=============================="
  15. endif
  16. clean:
  17. rm -f *.out
  18. rm -f *.toc
  19. rm -f *.log
  20. rm -f *.aux
  21. rm -f *.pdf
  22. rm -f *.bbl
  23. rm -f *.blg
  24. rm -f *~
  25. rm -f *.tar.gz
  26. show:
  27. evince *.pdf &