Makefile 685 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 %.aux
  15. bibtex $*
  16. $(LATEX) $<
  17. bibtex $*
  18. %.dvi:%.tex %.bbl
  19. $(LATEX) $<
  20. %.ps:%.dvi
  21. dvips -j0 -P generic $(DVIPS_ARG) $< -o $@
  22. #this is the old version using dvipdf, which can not handle letter papersize
  23. #%.pdf:%.dvi
  24. # dvipdf $(DVIPDF_ARG) $<
  25. #this is the new version, going manually via dvips and ps2pdf
  26. #this is exactly the same as the dvipdf script does
  27. %.pdf:%.ps
  28. ps2pdf14 $(DVIPDF_ARG) $< $@