Makefile 591 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. RUBBER_INSTALLED := $(shell command -v rubber 2>/dev/null)
  2. WD := $(shell pwd)
  3. all: report.pdf
  4. report.pdf: dia 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. dia:
  17. make -C dia
  18. clean:
  19. rm -f *.out
  20. rm -f *.toc
  21. rm -f *.log
  22. rm -f *.aux
  23. rm -f *.pdf
  24. rm -f *.bbl
  25. rm -f *.blg
  26. rm -f *~
  27. rm -f *.tar.gz
  28. make clean -C dia
  29. show:
  30. evince *.pdf &
  31. .PHONY: clean
  32. .PHONY: dia