annotate Doc/Makefile @ 4566:6403c94de50d legacy-trunk

Added safeguard against failure in __del__.
author Guido van Rossum <guido@python.org>
date Wed, 27 Nov 1996 19:39:58 +0000
parents 47e7c42b9dc6
children 5c741d2d97f5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
1 # Makefile for Python documentation
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
2 # ---------------------------------
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
3 #
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
4 # See also the README file.
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
5 #
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
6 # This is a bit of a mess. The main documents are:
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
7 # tut -- Tutorial (file tut.tex)
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
8 # lib -- Library Reference (file lib.tex, inputs lib*.tex)
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
9 # ext -- Extending and Embedding (file ext.tex)
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
10 #
4453
dcc4cf9fa62a Removed LaTeX version of reference manual. Added ref/ref.ps.
Guido van Rossum <guido@python.org>
parents: 4435
diff changeset
11 # The Reference Manual is now maintained as a FrameMaker document.
dcc4cf9fa62a Removed LaTeX version of reference manual. Added ref/ref.ps.
Guido van Rossum <guido@python.org>
parents: 4435
diff changeset
12 # See the subdirectory ref; PostScript is included as ref/ref.ps.
dcc4cf9fa62a Removed LaTeX version of reference manual. Added ref/ref.ps.
Guido van Rossum <guido@python.org>
parents: 4435
diff changeset
13 # (In the future, the Tutorial will also be converted to FrameMaker;
dcc4cf9fa62a Removed LaTeX version of reference manual. Added ref/ref.ps.
Guido van Rossum <guido@python.org>
parents: 4435
diff changeset
14 # the other documents will be maintained in a text format such
dcc4cf9fa62a Removed LaTeX version of reference manual. Added ref/ref.ps.
Guido van Rossum <guido@python.org>
parents: 4435
diff changeset
15 # as LaTeX or perhaps TIM.)
dcc4cf9fa62a Removed LaTeX version of reference manual. Added ref/ref.ps.
Guido van Rossum <guido@python.org>
parents: 4435
diff changeset
16 #
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
17 # The main target "make all" creates DVI and PostScript for these
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
18 # four. You can also do "make lib" (etc.) to process individual
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
19 # documents.
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
20 #
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
21 # There's also:
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
22 # qua -- Paper published in the CWI Quarterly (file qua.tex)
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
23 #
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
24 # There's one local style file: myformat.sty. This defines a number
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
25 # of macros that are similar in name and intent as macros in Texinfo
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
26 # (e.g. \code{...} and \emph{...}), as well as a number of
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
27 # environments for formatting function and data definitions, also in
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
28 # the style of Texinfo.
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
29 #
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
30 # Everything is processed by LaTeX. The following tools are used:
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
31 # latex
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
32 # makeindex
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
33 # dvips
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
34 # bibtex (only for formatting qua.tex)
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
35 #
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
36 # There's a problem with generating the index which has been solved by
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
37 # a sed command applied to the index file. The shell script fix_hack
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
38 # does this (the Makefile takes care of calling it).
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
39 #
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
40 # To preview the dvi files produced by LaTeX it would be useful to
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
41 # have xdvi as well.
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
42 #
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
43 # Additional targets attempt to convert selected LaTeX sources to
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
44 # various other formats. These are generally site specific because
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
45 # the tools used are all but universal. These targets are:
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
46 # l2h -- convert tut, ref, ext (but not lib!) from LaTeX to HTML
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
47 # lib.texi -- convert lib from LaTeX to Texinfo
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
48 # lib.info -- convert lib from Texinfo to Emacs INFO
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
49 # libwww -- convert lib from Texinfo to HTML
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
50 # See the README file for more info on these targets.
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
51
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
52 # Customizations -- you *may* have to edit these
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
53
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
54 # Where are the various programs?
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
55 LATEX= latex
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
56 BIBTEX= bibtex
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
57 EMACS= emacs
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
58 DVIPS= dvips -f
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
59 MAKEINDEX= makeindex
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
60 PYTHON= python
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
61 MAKEINFO= makeinfo
4512
23a104d3bced (Makefile): Updated latex2html support.
Fred Drake <fdrake@acm.org>
parents: 4453
diff changeset
62 L2H= latex2html
4539
47e7c42b9dc6 (Makefile): Updated comments about using LaTeX2HTML for the library
Fred Drake <fdrake@acm.org>
parents: 4512
diff changeset
63 L2HARGS= -address $$USER@`domainname`
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
64
3997
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
65 # Destination directory for output of libwww target.
4307
2eec35e2afff (texi2html.py): Use "if __name__ == '__main__':" test. Adjust indentation
Fred Drake <fdrake@acm.org>
parents: 4259
diff changeset
66 PARTPARSE= $(PYTHON) ./partparse.pyc
4393
798086323464 (Makefile): Push texi2html.py options into a make variable.
Fred Drake <fdrake@acm.org>
parents: 4391
diff changeset
67 TEXI2HTMLFLAGS= -d
4307
2eec35e2afff (texi2html.py): Use "if __name__ == '__main__':" test. Adjust indentation
Fred Drake <fdrake@acm.org>
parents: 4259
diff changeset
68 TEXI2HTML= $(PYTHON) ./texi2html.pyc
3997
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
69 LIBHTMLDIR= ./python-lib
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
70
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
71 # Install destination -- not used now but might be useful some time...
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
72 DESTDIR= /usr/local
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
73 LIBDESTDIR= $DESTDIR/lib
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
74 LIBDEST= $LIBDESTDIR/python
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
75 DOCDESTDIR= $LIBDEST/doc
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
76
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
77 # Ideally, you shouldn't need to edit beyond this point
910
a4f2b2210b02 > * Makefile: always create .ps files; add qua to 'all' target;
Guido van Rossum <guido@python.org>
parents: 903
diff changeset
78
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
79 # Main target
3997
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
80 all: all-ps
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
81
4453
dcc4cf9fa62a Removed LaTeX version of reference manual. Added ref/ref.ps.
Guido van Rossum <guido@python.org>
parents: 4435
diff changeset
82 all-dvi: tut.dvi lib.dvi ext.dvi
dcc4cf9fa62a Removed LaTeX version of reference manual. Added ref/ref.ps.
Guido van Rossum <guido@python.org>
parents: 4435
diff changeset
83 all-ps: tut.ps lib.ps ext.ps
700
14119b1948fb Much simpler version, intended as a script.
Guido van Rossum <guido@python.org>
parents: 447
diff changeset
84
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
85 # Individual document fake targets
3997
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
86 tut: tut.ps
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
87 lib: lib.ps
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
88 ext: ext.ps
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
89
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
90 # CWI Quarterly document fake target
3997
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
91 qua: qua.ps
1767
907605320a5f Lots of small corrections by Andrew Kuchling (plus all new rotor docs)
Guido van Rossum <guido@python.org>
parents: 1751
diff changeset
92
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
93 # Dependencies
4453
dcc4cf9fa62a Removed LaTeX version of reference manual. Added ref/ref.ps.
Guido van Rossum <guido@python.org>
parents: 4435
diff changeset
94 tut.dvi lib.dvi ext.dvi: myformat.sty fix_hack
1767
907605320a5f Lots of small corrections by Andrew Kuchling (plus all new rotor docs)
Guido van Rossum <guido@python.org>
parents: 1751
diff changeset
95
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
96 # Tutorial document
1767
907605320a5f Lots of small corrections by Andrew Kuchling (plus all new rotor docs)
Guido van Rossum <guido@python.org>
parents: 1751
diff changeset
97 tut.dvi: tut.tex
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
98 $(LATEX) tut
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
99 $(LATEX) tut
3997
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
100
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
101 tut.ps: tut.dvi
1751
ec25aad43724 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1426
diff changeset
102 $(DVIPS) tut >tut.ps
134
5d5c9b2da562 Took out (di)troff references.
Guido van Rossum <guido@python.org>
parents: 123
diff changeset
103
1767
907605320a5f Lots of small corrections by Andrew Kuchling (plus all new rotor docs)
Guido van Rossum <guido@python.org>
parents: 1751
diff changeset
104 # LaTeX source files for the Python Library Reference
907605320a5f Lots of small corrections by Andrew Kuchling (plus all new rotor docs)
Guido van Rossum <guido@python.org>
parents: 1751
diff changeset
105 LIBFILES = lib.tex \
4047
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
106 libintro.tex libobjs.tex libtypes.tex libexcs.tex libfuncs.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
107 libpython.tex libsys.tex libtypes2.tex libtraceback.tex libpickle.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
108 libshelve.tex libcopy.tex libmarshal.tex libimp.tex libparser.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
109 libbltin.tex libmain.tex libstrings.tex libstring.tex libregex.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
110 libregsub.tex libstruct.tex libmisc.tex libmath.tex librand.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
111 libwhrandom.tex libarray.tex liballos.tex libos.tex libtime.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
112 libgetopt.tex libtempfile.tex liberrno.tex libsomeos.tex libsignal.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
113 libsocket.tex libselect.tex libthread.tex libunix.tex libposix.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
114 libppath.tex libpwd.tex libgrp.tex libcrypt.tex libdbm.tex libgdbm.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
115 libtermios.tex libfcntl.tex libposixfile.tex libsyslog.tex libpdb.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
116 libprofile.tex libwww.tex libcgi.tex liburllib.tex libhttplib.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
117 libftplib.tex libgopherlib.tex libnntplib.tex liburlparse.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
118 libhtmllib.tex libsgmllib.tex librfc822.tex libmimetools.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
119 libbinascii.tex libmm.tex libaudioop.tex libimageop.tex libaifc.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
120 libjpeg.tex librgbimg.tex libcrypto.tex libmd5.tex libmpz.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
121 librotor.tex libmac.tex libctb.tex libmacconsole.tex libmacdnr.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
122 libmacfs.tex libmacos.tex libmacostools.tex libmactcp.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
123 libmacspeech.tex libmacui.tex libstdwin.tex libsgi.tex libal.tex \
3e6863cea383 Added imghdr,xdrlib; reformatted Makefile somewhat
Guido van Rossum <guido@python.org>
parents: 3997
diff changeset
124 libcd.tex libfl.tex libfm.tex libgl.tex libimgfile.tex libsun.tex \
4435
25c53286763d Added chapter on restricted execution.
Guido van Rossum <guido@python.org>
parents: 4393
diff changeset
125 libxdrlib.tex libimghdr.tex \
25c53286763d Added chapter on restricted execution.
Guido van Rossum <guido@python.org>
parents: 4393
diff changeset
126 librestricted.tex librexec.tex libbastion.tex \
25c53286763d Added chapter on restricted execution.
Guido van Rossum <guido@python.org>
parents: 4393
diff changeset
127 libformatter.tex
1767
907605320a5f Lots of small corrections by Andrew Kuchling (plus all new rotor docs)
Guido van Rossum <guido@python.org>
parents: 1751
diff changeset
128
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
129 # Library document
1767
907605320a5f Lots of small corrections by Andrew Kuchling (plus all new rotor docs)
Guido van Rossum <guido@python.org>
parents: 1751
diff changeset
130 lib.dvi: $(LIBFILES)
700
14119b1948fb Much simpler version, intended as a script.
Guido van Rossum <guido@python.org>
parents: 447
diff changeset
131 touch lib.ind
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
132 $(LATEX) lib
1100
ff1899dcda05 Incorporated Jan-Hein's changes and texinfo conversion.
Guido van Rossum <guido@python.org>
parents: 910
diff changeset
133 ./fix_hack lib.idx
4539
47e7c42b9dc6 (Makefile): Updated comments about using LaTeX2HTML for the library
Fred Drake <fdrake@acm.org>
parents: 4512
diff changeset
134 $(MAKEINDEX) lib.idx
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
135 $(LATEX) lib
3997
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
136
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
137 lib.ps: lib.dvi
1751
ec25aad43724 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1426
diff changeset
138 $(DVIPS) lib >lib.ps
0
3cd033e6b530 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
139
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
140 # Extensions document
4117
3d117587005a Changes to dependencies (Fred)
Guido van Rossum <guido@python.org>
parents: 4047
diff changeset
141 ext.dvi: ext.tex extref.tex
1401
cd5989a58bcf * ext.tex: documentation for extending, reference counts, and embedding
Guido van Rossum <guido@python.org>
parents: 1283
diff changeset
142 touch ext.ind
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
143 $(LATEX) ext
1401
cd5989a58bcf * ext.tex: documentation for extending, reference counts, and embedding
Guido van Rossum <guido@python.org>
parents: 1283
diff changeset
144 ./fix_hack ext.idx
4539
47e7c42b9dc6 (Makefile): Updated comments about using LaTeX2HTML for the library
Fred Drake <fdrake@acm.org>
parents: 4512
diff changeset
145 $(MAKEINDEX) ext.idx
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
146 $(LATEX) ext
3997
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
147
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
148 ext.ps: ext.dvi
1751
ec25aad43724 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1426
diff changeset
149 $(DVIPS) ext >ext.ps
1401
cd5989a58bcf * ext.tex: documentation for extending, reference counts, and embedding
Guido van Rossum <guido@python.org>
parents: 1283
diff changeset
150
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
151 # Quarterly document
1767
907605320a5f Lots of small corrections by Andrew Kuchling (plus all new rotor docs)
Guido van Rossum <guido@python.org>
parents: 1751
diff changeset
152 qua.dvi: qua.tex quabib.bib
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
153 $(LATEX) qua
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
154 $(BIBTEX) qua
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
155 $(LATEX) qua
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
156 $(BIBTEX) qua
3997
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
157
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
158 qua.ps: qua.dvi
1751
ec25aad43724 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1426
diff changeset
159 $(DVIPS) qua >qua.ps
123
22727b43781e Made the move to TeX.
Guido van Rossum <guido@python.org>
parents: 3
diff changeset
160
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
161
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
162 # The remaining part of the Makefile is concerned with various
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
163 # conversions, as described above. See also the README file.
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
164
4307
2eec35e2afff (texi2html.py): Use "if __name__ == '__main__':" test. Adjust indentation
Fred Drake <fdrake@acm.org>
parents: 4259
diff changeset
165 .SUFFIXES: .py .pyc
2eec35e2afff (texi2html.py): Use "if __name__ == '__main__':" test. Adjust indentation
Fred Drake <fdrake@acm.org>
parents: 4259
diff changeset
166
2eec35e2afff (texi2html.py): Use "if __name__ == '__main__':" test. Adjust indentation
Fred Drake <fdrake@acm.org>
parents: 4259
diff changeset
167 .py.pyc:
2eec35e2afff (texi2html.py): Use "if __name__ == '__main__':" test. Adjust indentation
Fred Drake <fdrake@acm.org>
parents: 4259
diff changeset
168 $(PYTHON) -c "import $*"
2eec35e2afff (texi2html.py): Use "if __name__ == '__main__':" test. Adjust indentation
Fred Drake <fdrake@acm.org>
parents: 4259
diff changeset
169
2eec35e2afff (texi2html.py): Use "if __name__ == '__main__':" test. Adjust indentation
Fred Drake <fdrake@acm.org>
parents: 4259
diff changeset
170 .PRECIOUS: lib.texi
2eec35e2afff (texi2html.py): Use "if __name__ == '__main__':" test. Adjust indentation
Fred Drake <fdrake@acm.org>
parents: 4259
diff changeset
171
2eec35e2afff (texi2html.py): Use "if __name__ == '__main__':" test. Adjust indentation
Fred Drake <fdrake@acm.org>
parents: 4259
diff changeset
172 lib.texi: lib*.tex texipre.dat texipost.dat partparse.pyc fix.el
2eec35e2afff (texi2html.py): Use "if __name__ == '__main__':" test. Adjust indentation
Fred Drake <fdrake@acm.org>
parents: 4259
diff changeset
173 $(PARTPARSE) -o @lib.texi `./whichlibs`
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
174 $(EMACS) -batch -l fix.el -f save-buffer -kill
1401
cd5989a58bcf * ext.tex: documentation for extending, reference counts, and embedding
Guido van Rossum <guido@python.org>
parents: 1283
diff changeset
175 mv @lib.texi lib.texi
cd5989a58bcf * ext.tex: documentation for extending, reference counts, and embedding
Guido van Rossum <guido@python.org>
parents: 1283
diff changeset
176
1751
ec25aad43724 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1426
diff changeset
177 python-lib.info: lib.texi
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
178 -$(MAKEINFO) --footnote-style end --fill-column 72 \
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
179 --paragraph-indent 0 lib.texi
1401
cd5989a58bcf * ext.tex: documentation for extending, reference counts, and embedding
Guido van Rossum <guido@python.org>
parents: 1283
diff changeset
180
cd5989a58bcf * ext.tex: documentation for extending, reference counts, and embedding
Guido van Rossum <guido@python.org>
parents: 1283
diff changeset
181 lib.info: python-lib.info
cd5989a58bcf * ext.tex: documentation for extending, reference counts, and embedding
Guido van Rossum <guido@python.org>
parents: 1283
diff changeset
182
4307
2eec35e2afff (texi2html.py): Use "if __name__ == '__main__':" test. Adjust indentation
Fred Drake <fdrake@acm.org>
parents: 4259
diff changeset
183 libwww: lib.texi texi2html.pyc
3997
8069790b3974 Separate .dvi and .ps targets.
Guido van Rossum <guido@python.org>
parents: 3199
diff changeset
184 if test ! -d $(LIBHTMLDIR); then mkdir $(LIBHTMLDIR); else true; fi
4393
798086323464 (Makefile): Push texi2html.py options into a make variable.
Fred Drake <fdrake@acm.org>
parents: 4391
diff changeset
185 $(TEXI2HTML) $(TEXI2HTMLFLAGS) lib.texi $(LIBHTMLDIR)
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
186
2582
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
187 # Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to
3770e4347803 use macros more; added some more docs
Guido van Rossum <guido@python.org>
parents: 2574
diff changeset
188 # HTML converter. For more info on this program, see
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
189 # <URL:http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html>.
1751
ec25aad43724 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1426
diff changeset
190
4539
47e7c42b9dc6 (Makefile): Updated comments about using LaTeX2HTML for the library
Fred Drake <fdrake@acm.org>
parents: 4512
diff changeset
191 # Note that LaTeX2HTML inserts references to an "icons" directory in
47e7c42b9dc6 (Makefile): Updated comments about using LaTeX2HTML for the library
Fred Drake <fdrake@acm.org>
parents: 4512
diff changeset
192 # each page that it generates. You can customize where these icons
47e7c42b9dc6 (Makefile): Updated comments about using LaTeX2HTML for the library
Fred Drake <fdrake@acm.org>
parents: 4512
diff changeset
193 # are to be found; I generally make it point to "../icons" and then
47e7c42b9dc6 (Makefile): Updated comments about using LaTeX2HTML for the library
Fred Drake <fdrake@acm.org>
parents: 4512
diff changeset
194 # create a symbolic link to the icons directory in the LaTeX2HTML
47e7c42b9dc6 (Makefile): Updated comments about using LaTeX2HTML for the library
Fred Drake <fdrake@acm.org>
parents: 4512
diff changeset
195 # source at the appropriate place. Change the definition of
47e7c42b9dc6 (Makefile): Updated comments about using LaTeX2HTML for the library
Fred Drake <fdrake@acm.org>
parents: 4512
diff changeset
196 # $ICONSERVER in .latex2html-init to point to a different location.
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
197
4539
47e7c42b9dc6 (Makefile): Updated comments about using LaTeX2HTML for the library
Fred Drake <fdrake@acm.org>
parents: 4512
diff changeset
198 l2h: l2htut l2hext l2hlib
1751
ec25aad43724 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1426
diff changeset
199
4539
47e7c42b9dc6 (Makefile): Updated comments about using LaTeX2HTML for the library
Fred Drake <fdrake@acm.org>
parents: 4512
diff changeset
200 l2htut: tut.dvi myformat.perl
1751
ec25aad43724 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1426
diff changeset
201 $(L2H) $(L2HARGS) tut.tex
ec25aad43724 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1426
diff changeset
202 @rm -rf python-tut
ec25aad43724 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1426
diff changeset
203 mv tut python-tut
ec25aad43724 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1426
diff changeset
204
4539
47e7c42b9dc6 (Makefile): Updated comments about using LaTeX2HTML for the library
Fred Drake <fdrake@acm.org>
parents: 4512
diff changeset
205 l2hext: ext.dvi myformat.perl
1751
ec25aad43724 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1426
diff changeset
206 $(L2H) $(L2HARGS) ext.tex
ec25aad43724 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1426
diff changeset
207 @rm -rf python-ext
ec25aad43724 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1426
diff changeset
208 mv ext python-ext
1236
680406c41539 * Changed preface in texipre.dat.
Guido van Rossum <guido@python.org>
parents: 1195
diff changeset
209
4539
47e7c42b9dc6 (Makefile): Updated comments about using LaTeX2HTML for the library
Fred Drake <fdrake@acm.org>
parents: 4512
diff changeset
210 l2hlib: lib.dvi myformat.perl
47e7c42b9dc6 (Makefile): Updated comments about using LaTeX2HTML for the library
Fred Drake <fdrake@acm.org>
parents: 4512
diff changeset
211 ./fix_libaux.sed <lib.aux >@lib.aux
47e7c42b9dc6 (Makefile): Updated comments about using LaTeX2HTML for the library
Fred Drake <fdrake@acm.org>
parents: 4512
diff changeset
212 mv @lib.aux lib.aux
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
213 $(L2H) $(L2HARGS) lib.tex
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
214 @rm -rf python-lib
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
215 mv lib python-lib
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
216
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
217
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
218 # Housekeeping targets
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
219
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
220 # Remove temporary files
0
3cd033e6b530 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
221 clean:
1141
54eb2cf2697e Changes to some math using underscore as subscript, necessary since
Guido van Rossum <guido@python.org>
parents: 1100
diff changeset
222 rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.pyc
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
223 rm -f *.bak *.orig
910
a4f2b2210b02 > * Makefile: always create .ps files; add qua to 'all' target;
Guido van Rossum <guido@python.org>
parents: 903
diff changeset
224 # Sources: .tex, .bib, .sty
1401
cd5989a58bcf * ext.tex: documentation for extending, reference counts, and embedding
Guido van Rossum <guido@python.org>
parents: 1283
diff changeset
225 # Useful results: .dvi, .ps, .texi, .info
910
a4f2b2210b02 > * Makefile: always create .ps files; add qua to 'all' target;
Guido van Rossum <guido@python.org>
parents: 903
diff changeset
226
2574
f0b7872da689 added lots of comments
Guido van Rossum <guido@python.org>
parents: 2489
diff changeset
227 # Remove temporaries as well as final products
910
a4f2b2210b02 > * Makefile: always create .ps files; add qua to 'all' target;
Guido van Rossum <guido@python.org>
parents: 903
diff changeset
228 clobber: clean
1401
cd5989a58bcf * ext.tex: documentation for extending, reference counts, and embedding
Guido van Rossum <guido@python.org>
parents: 1283
diff changeset
229 rm -f *.dvi *.ps *.texi *.info *.info-[0-9]*