mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
(Makefile): Updated comments about using LaTeX2HTML for the library
reference. Made the extension to the input files for makeindex explicit; if not made explicit a directory of the given base name can cause makeindex to blow up. Specifically, if there is a directory ./lib/ created by LaTeX2HTML, "makeindex lib" will fail, but "makeindex lib.idx" will not. l2h{tut,ext,lib} are now dependent on myformat.perl. l2h adds ls2lib and removes the non-existant l2href.
This commit is contained in:
parent
4464022799
commit
b4d4e25a62
1 changed files with 15 additions and 22 deletions
37
Doc/Makefile
37
Doc/Makefile
|
@ -60,7 +60,7 @@ MAKEINDEX= makeindex
|
||||||
PYTHON= python
|
PYTHON= python
|
||||||
MAKEINFO= makeinfo
|
MAKEINFO= makeinfo
|
||||||
L2H= latex2html
|
L2H= latex2html
|
||||||
L2HARGS= -address $$USER@`domainname` -info ""
|
L2HARGS= -address $$USER@`domainname`
|
||||||
|
|
||||||
# Destination directory for output of libwww target.
|
# Destination directory for output of libwww target.
|
||||||
PARTPARSE= $(PYTHON) ./partparse.pyc
|
PARTPARSE= $(PYTHON) ./partparse.pyc
|
||||||
|
@ -131,7 +131,7 @@ lib.dvi: $(LIBFILES)
|
||||||
touch lib.ind
|
touch lib.ind
|
||||||
$(LATEX) lib
|
$(LATEX) lib
|
||||||
./fix_hack lib.idx
|
./fix_hack lib.idx
|
||||||
$(MAKEINDEX) lib
|
$(MAKEINDEX) lib.idx
|
||||||
$(LATEX) lib
|
$(LATEX) lib
|
||||||
|
|
||||||
lib.ps: lib.dvi
|
lib.ps: lib.dvi
|
||||||
|
@ -142,7 +142,7 @@ ext.dvi: ext.tex extref.tex
|
||||||
touch ext.ind
|
touch ext.ind
|
||||||
$(LATEX) ext
|
$(LATEX) ext
|
||||||
./fix_hack ext.idx
|
./fix_hack ext.idx
|
||||||
$(MAKEINDEX) ext
|
$(MAKEINDEX) ext.idx
|
||||||
$(LATEX) ext
|
$(LATEX) ext
|
||||||
|
|
||||||
ext.ps: ext.dvi
|
ext.ps: ext.dvi
|
||||||
|
@ -187,36 +187,29 @@ libwww: lib.texi texi2html.pyc
|
||||||
# Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to
|
# Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to
|
||||||
# HTML converter. For more info on this program, see
|
# HTML converter. For more info on this program, see
|
||||||
# <URL:http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html>.
|
# <URL:http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html>.
|
||||||
# (I've had some trouble getting this to work with the netpbm version
|
|
||||||
# of the pbmplus library; ppmtogif dumped core because giftopnm
|
|
||||||
# outputs bitmap (pbm) files. I've fixed this by changing the source
|
|
||||||
# of LaTeX2HTML to insert a call to pnmtoppm, which I wrote myself.
|
|
||||||
# You can probably also use "pbmtopgm | pgmtoppm"...
|
|
||||||
|
|
||||||
# In order to use these targets, you must edit the definition of L2H
|
# Note that LaTeX2HTML inserts references to an "icons" directory in
|
||||||
# earlier in the Makefile to point to the latex2html program. Note
|
# each page that it generates. You can customize where these icons
|
||||||
# that LaTeX2HTML inserts references to an "icons" directory in each
|
# are to be found; I generally make it point to "../icons" and then
|
||||||
# page that it generates. You can customize where these icons are to
|
# create a symbolic link to the icons directory in the LaTeX2HTML
|
||||||
# be found; I generally make it point to "../icons" and then create a
|
# source at the appropriate place. Change the definition of
|
||||||
# symbolic link to the icons directory in the LaTeX2HTML source at the
|
# $ICONSERVER in .latex2html-init to point to a different location.
|
||||||
# appropriate place.
|
|
||||||
|
|
||||||
l2h: l2htut l2href l2hext
|
l2h: l2htut l2hext l2hlib
|
||||||
|
|
||||||
l2htut: tut.dvi
|
l2htut: tut.dvi myformat.perl
|
||||||
$(L2H) $(L2HARGS) tut.tex
|
$(L2H) $(L2HARGS) tut.tex
|
||||||
@rm -rf python-tut
|
@rm -rf python-tut
|
||||||
mv tut python-tut
|
mv tut python-tut
|
||||||
|
|
||||||
l2hext: ext.dvi
|
l2hext: ext.dvi myformat.perl
|
||||||
$(L2H) $(L2HARGS) ext.tex
|
$(L2H) $(L2HARGS) ext.tex
|
||||||
@rm -rf python-ext
|
@rm -rf python-ext
|
||||||
mv ext python-ext
|
mv ext python-ext
|
||||||
|
|
||||||
# This target doesn't quite work, since l2h doesn't understand the
|
l2hlib: lib.dvi myformat.perl
|
||||||
# funcdesc and similar environments, and turns them into GIF images.
|
./fix_libaux.sed <lib.aux >@lib.aux
|
||||||
# Use the "libwww" target above instead.
|
mv @lib.aux lib.aux
|
||||||
l2hlib: lib.dvi
|
|
||||||
$(L2H) $(L2HARGS) lib.tex
|
$(L2H) $(L2HARGS) lib.tex
|
||||||
@rm -rf python-lib
|
@rm -rf python-lib
|
||||||
mv lib python-lib
|
mv lib python-lib
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue