Makefile 789 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. -include Makefile.cfg
  2. ifeq "$(COMPRESSION)" "0"
  3. DVIPDF_ARG+=-dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode
  4. endif
  5. ifeq "$(LETTER)" "1"
  6. DVIPS_ARG+=-t letter
  7. endif
  8. #LATEX=latex
  9. LATEX=pdflatex
  10. .PRECIOUS:%.aux %.bbl
  11. %.dvi:%.tex
  12. %.aux:%.tex
  13. $(LATEX) $<
  14. %.bbl:%.tex %.bib %.aux
  15. bibtex $*
  16. $(LATEX) $<
  17. bibtex $*
  18. %.bbl:%.tex %.aux
  19. @echo WARNING: no $*.bib found... assuming you are not using BibTeX
  20. touch $@
  21. %.dvi:%.tex %.bbl
  22. $(LATEX) $<
  23. %.ps:%.dvi
  24. dvips -j0 -P generic $(DVIPS_ARG) $< -o $@
  25. #this is the old version using dvipdf, which can not handle letter papersize
  26. #%.pdf:%.dvi
  27. # dvipdf $(DVIPDF_ARG) $<
  28. #this is the new version, going manually via dvips and ps2pdf
  29. #this is exactly the same as the dvipdf script does
  30. %.pdf:%.ps
  31. ps2pdf14 $(DVIPDF_ARG) $< $@