Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. FILTER = ./filter-doc.plx
  2. PDFLATEX = pdflatex
  3. LATEX = latex
  4. #BIBTEX = bibtex
  5. BIBTEX = /bin/true
  6. FIG2DEV = fig2dev
  7. DVIPS=dvips
  8. all: gpl-business.pdf gpl-business.ps
  9. .SUFFIXES: .fig .postscript .eps .pdf .pstex_t .pstex
  10. .postscript.pdf:
  11. ps2pdf $< $@
  12. .postscript.eps:
  13. ps2epsi $< $@
  14. .fig.pdf:
  15. $(FIG2DEV) -L pdf -p "portrait" -c $< > $@
  16. .fig.pstex_t:
  17. $(FIG2DEV) -L pstex_t $< > $@
  18. .fig.pstex:
  19. $(FIG2DEV) -L pstex $< > $@
  20. PDF_FIGS =
  21. gpl-business.pdf: gpl-business-pdf.tex gpl-business-pdf.bbl $(PDF_FIGS)
  22. $(PDFLATEX) gpl-business-pdf
  23. $(PDFLATEX) gpl-business-pdf
  24. /bin/mv gpl-business-pdf.pdf gpl-business.pdf
  25. gpl-business-pdf.tex: gpl-business.tex
  26. cat gpl-business.tex | $(FILTER) PDF > gpl-business-pdf.tex
  27. gpl-business-pdf.bbl: gpl-business-pdf.tex $(PDF_FIGS)
  28. $(PDFLATEX) gpl-business-pdf
  29. $(BIBTEX) gpl-business-pdf
  30. PS_FIGS =
  31. gpl-business-ps.tex: gpl-business.tex
  32. cat gpl-business.tex | $(FILTER) PS > gpl-business-ps.tex
  33. gpl-business-ps.bbl: gpl-business-ps.tex $(PS_FIGS)
  34. $(LATEX) gpl-business-ps
  35. $(BIBTEX) gpl-business-ps
  36. gpl-business-ps.dvi: gpl-business-ps.tex gpl-business-ps.bbl $(PS_FIGS)
  37. $(LATEX) gpl-business-ps
  38. $(LATEX) gpl-business-ps
  39. gpl-business.ps: gpl-business-ps.dvi
  40. $(DVIPS) $< -o $@
  41. clean:
  42. /bin/rm -f gpl-business-ps.* gpl-business-pdf.* gpl-business.pdf gpl-business.ps $(PDF_FIGS) $(PS_FIGS) gpl-business.log texput.log