Kaydet (Commit) 73827c6e authored tarafından Guido van Rossum's avatar Guido van Rossum

use macros more; added some more docs

üst 86cb0928
# Makefile for Python documentation # Makefile for Python documentation
# --------------------------------- # ---------------------------------
# #
# See also the README file.
#
# This is a bit of a mess. The main documents are: # This is a bit of a mess. The main documents are:
# tut -- Tutorial (file tut.tex) # tut -- Tutorial (file tut.tex)
# lib -- Library Reference (file lib.tex, inputs lib*.tex) # lib -- Library Reference (file lib.tex, inputs lib*.tex)
...@@ -40,15 +42,28 @@ ...@@ -40,15 +42,28 @@
# lib.texi -- convert lib from LaTeX to Texinfo # lib.texi -- convert lib from LaTeX to Texinfo
# lib.info -- convert lib from Texinfo to Emacs INFO # lib.info -- convert lib from Texinfo to Emacs INFO
# libwww -- convert lib from Texinfo to HTML # libwww -- convert lib from Texinfo to HTML
# See the README file for more info on these targets.
# Customizations -- you *may* have to edit these
# Where are the various programs?
LATEX= latex
BIBTEX= bibtex
EMACS= emacs
DVIPS= dvips -f
MAKEINDEX= makeindex
PYTHON= python
MAKEINFO= makeinfo
L2H= /ufs/guido/l2h/latex2html
L2HARGS= -address $$USER@`domainname` -dont_include myformat
# Where's dvips? # Install destination -- not used now but might be useful some time...
DVIPS= dvips -f DESTDIR= /usr/local
LIBDESTDIR= $DESTDIR/lib
LIBDEST= $LIBDESTDIR/python
DOCDESTDIR= $LIBDEST/doc
# Install destination -- actually not used # Ideally, you shouldn't need to edit beyond this point
DESTDIR=/usr/local
LIBDESTDIR=$DESTDIR/lib
LIBDEST=$LIBDESTDIR/python
DOCDESTDIR=$LIBDEST/doc
# Main target # Main target
all: tut.dvi lib.dvi ref.dvi ext.dvi all: tut.dvi lib.dvi ref.dvi ext.dvi
...@@ -67,18 +82,18 @@ tut.dvi lib.dvi ref.dvi ext.dvi: myformat.sty fix_hack ...@@ -67,18 +82,18 @@ tut.dvi lib.dvi ref.dvi ext.dvi: myformat.sty fix_hack
# Tutorial document # Tutorial document
tut.dvi: tut.tex tut.dvi: tut.tex
latex tut $(LATEX) tut
latex tut $(LATEX) tut
$(DVIPS) tut >tut.ps $(DVIPS) tut >tut.ps
# Reference document # Reference document
ref.dvi: ref.tex ref1.tex ref2.tex ref3.tex ref4.tex ref5.tex ref6.tex \ ref.dvi: ref.tex ref1.tex ref2.tex ref3.tex ref4.tex ref5.tex ref6.tex \
ref7.tex ref8.tex ref7.tex ref8.tex
touch ref.ind touch ref.ind
latex ref $(LATEX) ref
./fix_hack ref.idx ./fix_hack ref.idx
makeindex ref $(MAKEINDEX) ref
latex ref $(LATEX) ref
$(DVIPS) ref >ref.ps $(DVIPS) ref >ref.ps
# LaTeX source files for the Python Library Reference # LaTeX source files for the Python Library Reference
...@@ -114,52 +129,52 @@ libwhrandom.tex libwww.tex ...@@ -114,52 +129,52 @@ libwhrandom.tex libwww.tex
# Library document # Library document
lib.dvi: $(LIBFILES) 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
latex lib $(LATEX) lib
$(DVIPS) lib >lib.ps $(DVIPS) lib >lib.ps
# Extensions document # Extensions document
ext.dvi: ext.tex ext.dvi: ext.tex
touch ext.ind touch ext.ind
latex ext $(LATEX) ext
./fix_hack ext.idx ./fix_hack ext.idx
makeindex ext $(MAKEINDEX) ext
latex ext $(LATEX) ext
$(DVIPS) ext >ext.ps $(DVIPS) ext >ext.ps
# Quarterly document # Quarterly document
qua.dvi: qua.tex quabib.bib qua.dvi: qua.tex quabib.bib
latex qua $(LATEX) qua
bibtex qua $(BIBTEX) qua
latex qua $(LATEX) qua
latex qua $(BIBTEX) qua
$(DVIPS) qua >qua.ps $(DVIPS) qua >qua.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. # conversions, as described above. See also the README file.
lib.texi: lib*.tex texipre.dat texipost.dat partparse.py fix.el lib.texi: lib*.tex texipre.dat texipost.dat partparse.py fix.el
python partparse.py -o @lib.texi `./whichlibs` $(PYTHON) partparse.py -o @lib.texi `./whichlibs`
emacs -batch -l fix.el -f save-buffer -kill $(EMACS) -batch -l fix.el -f save-buffer -kill
mv @lib.texi lib.texi mv @lib.texi lib.texi
.PRECIOUS: lib.texi .PRECIOUS: lib.texi
python-lib.info: lib.texi python-lib.info: lib.texi
-makeinfo --footnote-style end --fill-column 72 --paragraph-indent 0 \ -$(MAKEINFO) --footnote-style end --fill-column 72 \
lib.texi --paragraph-indent 0 lib.texi
lib.info: python-lib.info lib.info: python-lib.info
# This target is very local to CWI... # This target is very local to CWI...
libwww: lib.texi libwww: lib.texi
python texi2html.py -d lib.texi /ufs/guido/public_html/python-lib $(PYTHON) texi2html.py -d lib.texi /ufs/guido/public_html/python-lib
# Targets to convert the manuals to HTML using Nikos Drakos' excellent # Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to
# 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 # (I've had some trouble getting this to work with the netpbm version
# of the pbmplus library; ppmtogif dumped core because giftopnm # of the pbmplus library; ppmtogif dumped core because giftopnm
...@@ -168,15 +183,13 @@ libwww: lib.texi ...@@ -168,15 +183,13 @@ libwww: lib.texi
# You can probably also use "pbmtopgm | pgmtoppm"... # You can probably also use "pbmtopgm | pgmtoppm"...
# In order to use these targets, you must edit the definition of L2H # In order to use these targets, you must edit the definition of L2H
# in the Makefile to point to the latex2html program. Note that # earlier in the Makefile to point to the latex2html program. Note
# LaTeX2HTML inserts references to an "icons" directory in each page # that LaTeX2HTML inserts references to an "icons" directory in each
# that it generates. You can customize where these icons are to be # page that it generates. You can customize where these icons are to
# found; I generally make it point to "../icons" and then create a # be found; I generally make it point to "../icons" and then create a
# symbolic link to the icons directory in the LaTeX2HTML source at the # symbolic link to the icons directory in the LaTeX2HTML source at the
# appropriate place. # appropriate place.
L2H= /ufs/guido/l2h/latex2html
L2HARGS=-address $$USER@`domainname` -dont_include myformat
l2h: l2htut l2href l2hext l2h: l2htut l2href l2hext
l2htut: tut l2htut: tut
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment