mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Use implicit rules to perform DVI->PS and PS->PDF conversions. PDF conversion
requires "distill" from a FrameMaker installation. ;-) Would probably need to be different for Windows/Mac.
This commit is contained in:
parent
b19274704f
commit
126d840d1a
1 changed files with 11 additions and 12 deletions
23
Doc/Makefile
23
Doc/Makefile
|
@ -49,6 +49,7 @@
|
||||||
LATEX= latex
|
LATEX= latex
|
||||||
BIBTEX= bibtex
|
BIBTEX= bibtex
|
||||||
DVIPS= dvips -f -N0
|
DVIPS= dvips -f -N0
|
||||||
|
DISTILL= distill
|
||||||
MAKEINDEX= makeindex
|
MAKEINDEX= makeindex
|
||||||
L2H= latex2html
|
L2H= latex2html
|
||||||
L2HARGS= -address $$LOGNAME@`domainname`
|
L2HARGS= -address $$LOGNAME@`domainname`
|
||||||
|
@ -74,6 +75,7 @@ all: all-ps
|
||||||
|
|
||||||
all-dvi: tut.dvi lib.dvi ext.dvi api.dvi
|
all-dvi: tut.dvi lib.dvi ext.dvi api.dvi
|
||||||
all-ps: tut.ps lib.ps ext.ps api.ps
|
all-ps: tut.ps lib.ps ext.ps api.ps
|
||||||
|
all-pdf: tut.pdf lib.pdf ext.pdf api.pdf
|
||||||
|
|
||||||
# Individual document fake targets
|
# Individual document fake targets
|
||||||
tut: tut.ps
|
tut: tut.ps
|
||||||
|
@ -81,6 +83,15 @@ lib: lib.ps
|
||||||
ext: ext.ps
|
ext: ext.ps
|
||||||
api: api.ps
|
api: api.ps
|
||||||
|
|
||||||
|
# Rules to build PostScript and PDF formats
|
||||||
|
.SUFFIXES: .dvi .ps .pdf
|
||||||
|
|
||||||
|
.dvi.ps:
|
||||||
|
$(DVIPS) $< >$@
|
||||||
|
|
||||||
|
.ps.pdf:
|
||||||
|
$(DISTILL) $<
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
tut.dvi lib.dvi ext.dvi api.dvi: myformat.sty fix_hack
|
tut.dvi lib.dvi ext.dvi api.dvi: myformat.sty fix_hack
|
||||||
|
|
||||||
|
@ -89,9 +100,6 @@ tut.dvi: tut.tex
|
||||||
$(LATEX) tut
|
$(LATEX) tut
|
||||||
$(LATEX) tut
|
$(LATEX) tut
|
||||||
|
|
||||||
tut.ps: tut.dvi
|
|
||||||
$(DVIPS) tut >tut.ps
|
|
||||||
|
|
||||||
# LaTeX source files for the Python Library Reference
|
# LaTeX source files for the Python Library Reference
|
||||||
LIBFILES = lib.tex \
|
LIBFILES = lib.tex \
|
||||||
libintro.tex libobjs.tex libtypes.tex libexcs.tex libfuncs.tex \
|
libintro.tex libobjs.tex libtypes.tex libexcs.tex libfuncs.tex \
|
||||||
|
@ -135,9 +143,6 @@ lib.dvi: modindex.py $(LIBFILES)
|
||||||
./modindex.py modules.idx
|
./modindex.py modules.idx
|
||||||
$(LATEX) lib
|
$(LATEX) lib
|
||||||
|
|
||||||
lib.ps: lib.dvi
|
|
||||||
$(DVIPS) lib >lib.ps
|
|
||||||
|
|
||||||
# Extensions document
|
# Extensions document
|
||||||
ext.dvi: ext.tex
|
ext.dvi: ext.tex
|
||||||
touch ext.ind
|
touch ext.ind
|
||||||
|
@ -146,9 +151,6 @@ ext.dvi: ext.tex
|
||||||
$(MAKEINDEX) ext.idx
|
$(MAKEINDEX) ext.idx
|
||||||
$(LATEX) ext
|
$(LATEX) ext
|
||||||
|
|
||||||
ext.ps: ext.dvi
|
|
||||||
$(DVIPS) ext >ext.ps
|
|
||||||
|
|
||||||
# Python-C API document
|
# Python-C API document
|
||||||
api.dvi: api.tex
|
api.dvi: api.tex
|
||||||
touch api.ind
|
touch api.ind
|
||||||
|
@ -157,9 +159,6 @@ api.dvi: api.tex
|
||||||
$(MAKEINDEX) api.idx
|
$(MAKEINDEX) api.idx
|
||||||
$(LATEX) api
|
$(LATEX) api
|
||||||
|
|
||||||
api.ps: api.dvi
|
|
||||||
$(DVIPS) api >api.ps
|
|
||||||
|
|
||||||
|
|
||||||
# The remaining part of the Makefile is concerned with various
|
# The remaining part of the Makefile is concerned with various
|
||||||
# conversions, as described above. See also the README file.
|
# conversions, as described above. See also the README file.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue