mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00

(formerly ../misc/{EXTENDING,REFCNT,EMBEDDING}). Also affects Makefile. * text2latex.py: script to do part of the conversion from an plain ASCI text file (in my particular style) to LaTeX. (Chapter/section/subsection headers, and verbatim sections.) * partparse.py, texipre.dat, fix.el, Makefile: Minor cleanup of latex -> info conversion process (at least it works again, and with less debugging output). Removed fix.sh. * lib1.tex (section{Built-in Functions}): adapt description of str() and repr() to new situation. * lib3.tex (Module os): added exec*() variants. * lib3.tex (Module posix): added execve(). * lib2.tex (Module array): documented reality; remove typecode and itemsize, add byteswap, rename read/write to fromfile/tofile, and re-alphabetized. * lib1.tex (Built-in Functions): renamed bagof() to filter().
67 lines
1.2 KiB
Makefile
67 lines
1.2 KiB
Makefile
DESTDIR=/usr/local
|
|
LIBDESTDIR=$DESTDIR/lib
|
|
LIBDEST=$LIBDESTDIR/python
|
|
DOCDESTDIR=$LIBDEST/doc
|
|
|
|
all: tut ref lib qua
|
|
|
|
tut:
|
|
latex tut
|
|
latex tut
|
|
dvips tut >tut.ps
|
|
|
|
ref:
|
|
touch ref.ind
|
|
latex ref
|
|
./fix_hack ref.idx
|
|
makeindex ref
|
|
latex ref
|
|
dvips ref >ref.ps
|
|
|
|
lib:
|
|
touch lib.ind
|
|
latex lib
|
|
./fix_hack lib.idx
|
|
makeindex lib
|
|
latex lib
|
|
dvips lib >lib.ps
|
|
|
|
ext:
|
|
touch ext.ind
|
|
latex ext
|
|
./fix_hack ext.idx
|
|
makeindex ext
|
|
latex ext
|
|
dvips ext >ext.ps
|
|
|
|
qua:
|
|
latex qua
|
|
bibtex qua
|
|
latex qua
|
|
latex qua
|
|
dvips qua >qua.ps
|
|
|
|
lib.texi: lib1.tex lib2.tex lib3.tex lib4.tex lib5.tex texipre.dat texipost.dat
|
|
python partparse.py -o @lib.texi lib[1-5].tex
|
|
mv @lib.texi lib.texi
|
|
|
|
.PRECIOUS: lib.texi
|
|
|
|
python-lib.info: lib.texi
|
|
emacs -batch -l fix.el -f save-buffer -kill
|
|
makeinfo +footnote-style end +fill-column 72 +paragraph-indent 0 \
|
|
lib.texi
|
|
|
|
lib.info: python-lib.info
|
|
|
|
# This target is very local to CWI...
|
|
libwww: lib.texi
|
|
texi2html -d lib.texi /usr/local/ftp.cwi.nl/pub/www/texinfo/python
|
|
|
|
clean:
|
|
rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.pyc
|
|
# Sources: .tex, .bib, .sty
|
|
# Useful results: .dvi, .ps, .texi, .info
|
|
|
|
clobber: clean
|
|
rm -f *.dvi *.ps *.texi *.info *.info-[0-9]*
|