blob: 5d22a870901f93eaa76cc805b53307980b4a8ecd [file] [log] [blame]
Guido van Rossume83e3801995-03-17 16:01:35 +00001# Makefile for Python documentation
2# ---------------------------------
3#
Guido van Rossum73827c61995-03-20 13:00:32 +00004# See also the README file.
5#
Guido van Rossume83e3801995-03-17 16:01:35 +00006# This is a bit of a mess. The main documents are:
Fred Draked69e2c41998-05-11 18:25:46 +00007# api -- Python/C API Reference Manual
8# ext -- Extending and Embedding the Python Interpreter
9# lib -- Library Reference Manual
Fred Drakef2951131998-05-07 19:30:16 +000010# ref -- Python Reference Manual
Fred Draked69e2c41998-05-11 18:25:46 +000011# tut -- Python Tutorial
Guido van Rossume83e3801995-03-17 16:01:35 +000012#
Fred Drakef2951131998-05-07 19:30:16 +000013# The latex sources for each of these documents are in subdirectories
14# with the three-letter designations above as the directory names.
Guido van Rossum1f175431996-10-22 20:00:02 +000015#
Fred Draked69e2c41998-05-11 18:25:46 +000016# The main target creates DVI and PostScript for the main each of the
17# documents. You can also do "make lib" (etc.) to process individual
Guido van Rossume83e3801995-03-17 16:01:35 +000018# documents.
19#
Fred Drakef2951131998-05-07 19:30:16 +000020# The document classes and styles are in the texinputs/ directory.
21# These define a number of macros that are similar in name and intent
22# as macros in Texinfo (e.g. \code{...} and \emph{...}), as well as a
23# number of environments for formatting function and data definitions,
24# also in the style of Texinfo.
Guido van Rossume83e3801995-03-17 16:01:35 +000025#
Fred Draked69e2c41998-05-11 18:25:46 +000026# Everything is processed by LaTeX. See the file `README' for more
27# information on the tools needed for processing.
Guido van Rossume83e3801995-03-17 16:01:35 +000028#
29# There's a problem with generating the index which has been solved by
30# a sed command applied to the index file. The shell script fix_hack
31# does this (the Makefile takes care of calling it).
32#
Guido van Rossume83e3801995-03-17 16:01:35 +000033# Additional targets attempt to convert selected LaTeX sources to
34# various other formats. These are generally site specific because
35# the tools used are all but universal. These targets are:
Fred Drakef2951131998-05-07 19:30:16 +000036# l2h -- convert tut, ref, lib, ext, api from LaTeX to HTML
Guido van Rossum73827c61995-03-20 13:00:32 +000037# See the README file for more info on these targets.
Fred Draked69e2c41998-05-11 18:25:46 +000038#
39# The formatted output is located in subdirectories. For PDF and
40# PostScript, look in the paper-$(PAPER)/ directory. For HTML, look in
41# the html/ directory. If you fix the GNU info process, look in the
42# info/ directory.
Guido van Rossume83e3801995-03-17 16:01:35 +000043
Guido van Rossum73827c61995-03-20 13:00:32 +000044# Customizations -- you *may* have to edit these
Guido van Rossume83e3801995-03-17 16:01:35 +000045
Fred Drakef2951131998-05-07 19:30:16 +000046# you could set this to a4
47PAPER=letter
48
Guido van Rossum73827c61995-03-20 13:00:32 +000049# Where are the various programs?
Fred Drake9cdf0871998-05-07 15:03:25 +000050LATEX= latex
51PDFLATEX= pdflatex
Fred Drake9fab3aa1998-04-28 19:20:43 +000052DVIPS= dvips -N0
Fred Drakedf68e3d1998-05-08 03:46:38 +000053KPSEWHICH= TEXINPUTS=$(TEXINPUTS) kpsewhich tex
Fred Drake3af9f251998-04-24 21:07:22 +000054MAKEINDEX= makeindex -s $(srcdir)/texinputs/myindex.ist
Fred Drakef2951131998-05-07 19:30:16 +000055ACROREAD= acroread
Fred Drake0d27d081998-04-23 20:07:55 +000056L2HARGS=
Fred Drakeb9838d91998-05-08 15:43:08 +000057# HTMLDIR should not be '.'!
58HTMLDIR= html
Fred Drakef2951131998-05-07 19:30:16 +000059PYTHON= python
Fred Drake3af9f251998-04-24 21:07:22 +000060WEBCHECKER= $(PYTHON) $(srcdir)/../Tools/webchecker/webchecker.py
Guido van Rossum73827c61995-03-20 13:00:32 +000061
62# Install destination -- not used now but might be useful some time...
63DESTDIR= /usr/local
64LIBDESTDIR= $DESTDIR/lib
Fred Drakee4837a11998-03-06 21:29:34 +000065LIBDEST= $LIBDESTDIR/python$(VERSION)
Guido van Rossum73827c61995-03-20 13:00:32 +000066DOCDESTDIR= $LIBDEST/doc
67
Fred Drakeb9838d91998-05-08 15:43:08 +000068INFODIR= info
Fred Drake3af9f251998-04-24 21:07:22 +000069
70srcdir=.
71VPATH=.
Fred Drake05dd3c01997-12-29 17:17:54 +000072
Guido van Rossum73827c61995-03-20 13:00:32 +000073# Ideally, you shouldn't need to edit beyond this point
Guido van Rossum5b343731992-07-07 09:06:34 +000074
Fred Drakef5013f11998-04-13 21:02:49 +000075RELEASE=1.5.1
Fred Drake33d05b91998-01-13 16:33:09 +000076VERSION=1.5
77
Fred Drakecdbd3911998-05-15 17:02:10 +000078DVIFILES= api.dvi ext.dvi lib.dvi mac.dvi ref.dvi tut.dvi
79PDFFILES= api.pdf ext.pdf lib.pdf mac.pdf ref.pdf tut.pdf
80PSFILES= api.ps ext.ps lib.ps mac.ps ref.ps tut.ps
Fred Drake04cf4dc1998-02-12 22:33:50 +000081
Fred Drakebbe33c51998-05-07 01:39:06 +000082# Be careful when messing with this one!
Fred Drakeb9838d91998-05-08 15:43:08 +000083TEXINPUTS= .:../texinputs:
Fred Drakebbe33c51998-05-07 01:39:06 +000084
85MKDVI= TEXINPUTS=$(TEXINPUTS) $(srcdir)/tools/mkdvi.sh
Fred Drakecdbd3911998-05-15 17:02:10 +000086MKHOWTO= $(srcdir)/tools/mkhowto.sh --keep
87MKHTML= PAPER=$(PAPER) $(srcdir)/tools/mkhtml.sh
Fred Drakef2951131998-05-07 19:30:16 +000088MKPDF= TEXINPUTS=$(TEXINPUTS) $(srcdir)/tools/mkdvi.sh --pdf
Fred Drakebbe33c51998-05-07 01:39:06 +000089
Guido van Rossume83e3801995-03-17 16:01:35 +000090# Main target
Fred Drake566d2091998-05-08 02:00:48 +000091all: all-ps
Guido van Rossumeb8d5031996-08-09 21:46:05 +000092
Fred Drakef2951131998-05-07 19:30:16 +000093all-dvi:
Fred Drakeb9838d91998-05-08 15:43:08 +000094 (cd paper-$(PAPER); \
95 $(MAKE) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS) \
96 -f ../Makefile do-dvi)
Fred Drakee4837a11998-03-06 21:29:34 +000097
Fred Drakef2951131998-05-07 19:30:16 +000098all-pdf:
Fred Drakeb9838d91998-05-08 15:43:08 +000099 (cd paper-$(PAPER); \
100 $(MAKE) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS) \
101 -f ../Makefile do-pdf)
Guido van Rossum20aca5a1991-01-25 13:29:04 +0000102
Fred Drakef2951131998-05-07 19:30:16 +0000103all-ps:
Fred Drakeb9838d91998-05-08 15:43:08 +0000104 (cd paper-$(PAPER); \
105 $(MAKE) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS) \
106 -f ../Makefile do-ps)
Fred Drakef2951131998-05-07 19:30:16 +0000107
Fred Draked69e2c41998-05-11 18:25:46 +0000108world: all-ps all-pdf l2h tarballs
109
110
111# Targets for each document:
112.PHONY: api ext lib ref tut
113
114api:
115 (cd paper-$(PAPER); \
116 $(MAKE) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS) \
117 -f ../Makefile api.ps)
118
119ext:
120 (cd paper-$(PAPER); \
121 $(MAKE) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS) \
122 -f ../Makefile ext.ps)
123
124lib:
125 (cd paper-$(PAPER); \
126 $(MAKE) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS) \
127 -f ../Makefile lib.ps)
128
129ref:
130 (cd paper-$(PAPER); \
131 $(MAKE) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS) \
132 -f ../Makefile ref.ps)
133
134tut:
135 (cd paper-$(PAPER); \
136 $(MAKE) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS) \
137 -f ../Makefile tut.ps)
138
139
140# Internal targets:
Fred Drakef2951131998-05-07 19:30:16 +0000141
142do-dvi: $(DVIFILES)
143do-pdf: $(PDFFILES)
Fred Drakecdbd3911998-05-15 17:02:10 +0000144do-ps: $(PSFILES)
Fred Drakef2951131998-05-07 19:30:16 +0000145
146# This target gets both the PDF and PS files updated.
Fred Drakeddae4141998-02-17 15:45:25 +0000147#
148all-formats: $(PSFILES) $(PDFFILES)
149
Fred Drakedd946761998-02-18 16:02:14 +0000150
Fred Drake126d8401998-02-04 19:54:40 +0000151# Rules to build PostScript and PDF formats
Fred Drakef2951131998-05-07 19:30:16 +0000152.SUFFIXES: .dvi .ps .pdf
Fred Drake126d8401998-02-04 19:54:40 +0000153
154.dvi.ps:
Fred Drake9fab3aa1998-04-28 19:20:43 +0000155 $(DVIPS) -o $@ $<
Fred Drake126d8401998-02-04 19:54:40 +0000156
Fred Drakef2951131998-05-07 19:30:16 +0000157#.pdf.ps:
158# $(ACROREAD) -toPostScript $<
Fred Drake126d8401998-02-04 19:54:40 +0000159
Fred Drake3b26eed1998-02-16 17:06:10 +0000160
Guido van Rossume83e3801995-03-17 16:01:35 +0000161# Dependencies
Fred Drakef2951131998-05-07 19:30:16 +0000162# We really need some support of dependency generator for this...
163
164MANSTYLES=texinputs/fncychap.sty texinputs/manual.cls \
165 texinputs/python.sty texinputs/myindex.ist
166
Fred Drakebbe33c51998-05-07 01:39:06 +0000167COMMONTEX=$(MANSTYLES) texinputs/copyright.tex texinputs/boilerplate.tex
Fred Drake5d8f0ed1998-02-11 14:43:38 +0000168
Fred Drakebbe33c51998-05-07 01:39:06 +0000169$(DVIFILES): tools/fix_hack tools/mkdvi.sh $(COMMONTEX)
Fred Drakef2951131998-05-07 19:30:16 +0000170$(PDFFILES): tools/fix_hack tools/mkdvi.sh $(COMMONTEX)
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000171
Fred Drakef2951131998-05-07 19:30:16 +0000172REFFILES = ref/ref1.tex ref/ref2.tex ref/ref3.tex ref/ref4.tex \
173 ref/ref5.tex ref/ref6.tex ref/ref7.tex ref/ref8.tex
Fred Drakea6bb3961998-05-06 19:51:39 +0000174
Guido van Rossum16d6e711994-08-08 12:30:22 +0000175# LaTeX source files for the Python Library Reference
Fred Drake9cdf0871998-05-07 15:03:25 +0000176LIBFILES = lib/lib.tex \
177 lib/libintro.tex lib/libobjs.tex lib/libtypes.tex lib/libexcs.tex \
178 lib/libfuncs.tex lib/libpython.tex lib/libsys.tex lib/libtypes2.tex \
179 lib/libtraceback.tex lib/libpickle.tex lib/libshelve.tex \
180 lib/libcopy.tex lib/libmarshal.tex lib/libimp.tex lib/libparser.tex \
181 lib/libbltin.tex lib/libmain.tex lib/libstrings.tex lib/libstring.tex \
182 lib/libregex.tex lib/libregsub.tex lib/libstruct.tex lib/libmisc.tex \
183 lib/libmath.tex lib/librand.tex lib/libwhrandom.tex lib/libarray.tex \
184 lib/liballos.tex lib/libos.tex lib/libtime.tex lib/libgetopt.tex \
185 lib/libtempfile.tex lib/liberrno.tex lib/libsomeos.tex lib/libsignal.tex \
186 lib/libsocket.tex lib/libselect.tex lib/libthread.tex lib/libunix.tex \
187 lib/libposix.tex lib/libppath.tex lib/libpwd.tex lib/libgrp.tex \
188 lib/libcrypt.tex lib/libdbm.tex lib/libgdbm.tex lib/libtermios.tex \
189 lib/libfcntl.tex lib/libposixfile.tex lib/libsyslog.tex lib/libpdb.tex \
190 lib/libprofile.tex lib/libwww.tex lib/libcgi.tex lib/liburllib.tex \
191 lib/libhttplib.tex lib/libftplib.tex lib/libgopherlib.tex \
192 lib/libnntplib.tex lib/liburlparse.tex lib/libhtmllib.tex \
193 lib/libsgmllib.tex lib/librfc822.tex lib/libmimetools.tex \
194 lib/libbinascii.tex lib/libmm.tex lib/libaudioop.tex lib/libimageop.tex \
195 lib/libaifc.tex lib/libjpeg.tex lib/librgbimg.tex lib/libcrypto.tex \
196 lib/libmd5.tex lib/libmpz.tex lib/librotor.tex lib/libstdwin.tex \
197 lib/libsgi.tex lib/libal.tex lib/libcd.tex lib/libfl.tex lib/libfm.tex \
198 lib/libgl.tex lib/libimgfile.tex lib/libsun.tex lib/libxdrlib.tex \
199 lib/libimghdr.tex lib/librestricted.tex lib/librexec.tex \
200 lib/libbastion.tex lib/libformatter.tex lib/liboperator.tex \
201 lib/libsoundex.tex lib/libresource.tex lib/libstat.tex lib/libstrio.tex \
202 lib/libundoc.tex lib/libmailcap.tex lib/libglob.tex lib/libuser.tex \
203 lib/libanydbm.tex lib/librandom.tex lib/libsite.tex lib/libwhichdb.tex \
204 lib/libbase64.tex lib/libfnmatch.tex lib/libquopri.tex lib/libzlib.tex \
205 lib/libsocksvr.tex lib/libmailbox.tex lib/libcommands.tex \
206 lib/libcmath.tex lib/libgzip.tex lib/libpprint.tex \
207 lib/libcode.tex lib/libmimify.tex lib/libre.tex lib/libuserdict.tex \
208 lib/libdis.tex lib/libxmllib.tex lib/libqueue.tex lib/liblocale.tex \
209 lib/libbasehttp.tex lib/libcopyreg.tex lib/libsymbol.tex lib/libtoken.tex \
210 lib/libbinhex.tex lib/libuu.tex \
211 lib/libsunaudio.tex lib/libfileinput.tex lib/libimaplib.tex \
212 lib/libpoplib.tex lib/libcalendar.tex lib/libpopen2.tex lib/libbisect.tex
Guido van Rossum16d6e711994-08-08 12:30:22 +0000213
Fred Drake9cdf0871998-05-07 15:03:25 +0000214# LaTeX source files for Macintosh Library Modules.
215MACLIBFILES = mac/mac.tex mac/libmac.tex mac/libctb.tex mac/libmacconsole.tex \
216 mac/libmacdnr.tex mac/libmacfs.tex mac/libmacos.tex mac/libmacostools.tex \
217 mac/libmactcp.tex mac/libmacspeech.tex mac/libmacui.tex mac/libmacic.tex \
218 mac/libframework.tex mac/libminiae.tex
Fred Drakebdbdb801998-04-17 14:01:44 +0000219
Fred Drakebbe33c51998-05-07 01:39:06 +0000220# Python Library Reference
Fred Drake520f8bd1998-03-09 16:43:54 +0000221lib.dvi: tools/indfix.py $(LIBFILES)
Fred Drake3af9f251998-04-24 21:07:22 +0000222 $(srcdir)/tools/newind.py >$*.ind
223 $(srcdir)/tools/newind.py modindex >mod$*.ind
Fred Drake9cdf0871998-05-07 15:03:25 +0000224 TEXINPUTS=$(srcdir)/lib:$(TEXINPUTS) $(LATEX) $*
Fred Drake8bc96571998-03-09 16:37:52 +0000225 $(MAKEINDEX) mod$*.idx
Fred Drake3af9f251998-04-24 21:07:22 +0000226 $(srcdir)/tools/fix_hack $*.idx
Fred Drake5ad78f31998-02-22 19:47:13 +0000227 $(MAKEINDEX) $*.idx
Fred Drake3af9f251998-04-24 21:07:22 +0000228 $(srcdir)/tools/indfix.py $*.ind
Fred Drake9cdf0871998-05-07 15:03:25 +0000229 TEXINPUTS=$(srcdir)/lib:$(TEXINPUTS) $(LATEX) $*
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000230
Fred Drakef2951131998-05-07 19:30:16 +0000231lib.pdf: tools/indfix.py $(LIBFILES)
232 $(srcdir)/tools/newind.py >$*.ind
233 $(srcdir)/tools/newind.py modindex >mod$*.ind
234 TEXINPUTS=$(srcdir)/lib:$(TEXINPUTS) $(PDFLATEX) $*
235 $(MAKEINDEX) mod$*.idx
236 $(srcdir)/tools/fix_hack $*.idx
237 $(MAKEINDEX) $*.idx
238 $(srcdir)/tools/indfix.py $*.ind
239 TEXINPUTS=$(srcdir)/lib:$(TEXINPUTS) $(PDFLATEX) $*
240
Fred Drakebbe33c51998-05-07 01:39:06 +0000241# Python/C API Reference Manual
242api.dvi: api/api.tex
243 $(MKDVI) api
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000244
Fred Drakef2951131998-05-07 19:30:16 +0000245api.pdf: api/api.tex
246 $(MKPDF) api
247
Fred Drakebbe33c51998-05-07 01:39:06 +0000248# Extending and Embedding the Python Interpreter
249ext.dvi: ext/ext.tex
250 $(MKDVI) ext
251
Fred Drakef2951131998-05-07 19:30:16 +0000252ext.pdf: ext/ext.tex
253 $(MKPDF) ext
254
Fred Drakecdbd3911998-05-15 17:02:10 +0000255# Macintosh Library Modules
256mac.dvi: $(MACLIBFILES) tools/mkhowto.sh
257 $(MKHOWTO) --dvi $(srcdir)/$*/$*.tex
258
259mac.pdf: $(MACLIBFILES) tools/mkhowto.sh
260 $(MKHOWTO) --pdf $(srcdir)/$*/$*.tex
261
Fred Drakebbe33c51998-05-07 01:39:06 +0000262# Python Reference Manual
Fred Drakef2951131998-05-07 19:30:16 +0000263ref.dvi: $(REFFILES)
Fred Drakebbe33c51998-05-07 01:39:06 +0000264 $(MKDVI) ref
265
Fred Drakef2951131998-05-07 19:30:16 +0000266ref.pdf: $(REFFILES)
267 $(MKPDF) ref
268
Fred Drakebbe33c51998-05-07 01:39:06 +0000269# Python Tutorial
270tut.dvi: tut/tut.tex
271 $(MKDVI) tut
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000272
Fred Drakef2951131998-05-07 19:30:16 +0000273tut.pdf: tut/tut.tex
274 $(MKPDF) tut
275
Guido van Rossume83e3801995-03-17 16:01:35 +0000276
277# The remaining part of the Makefile is concerned with various
Guido van Rossum73827c61995-03-20 13:00:32 +0000278# conversions, as described above. See also the README file.
Guido van Rossume83e3801995-03-17 16:01:35 +0000279
Fred Draked69e2c41998-05-11 18:25:46 +0000280.PHONY: html info
Fred Drake05dd3c01997-12-29 17:17:54 +0000281
Fred Drakeb9838d91998-05-08 15:43:08 +0000282info:
283 (cd $(INFODIR); $(MAKE))
Fred Drake5ad78f31998-02-22 19:47:13 +0000284
Guido van Rossum73827c61995-03-20 13:00:32 +0000285# Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to
286# HTML converter. For more info on this program, see
Guido van Rossume83e3801995-03-17 16:01:35 +0000287# <URL:http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html>.
Guido van Rossume83e3801995-03-17 16:01:35 +0000288
Guido van Rossum9cb64801997-12-29 20:01:55 +0000289# Note that LaTeX2HTML inserts references to an icons directory in
290# each page that it generates. I have placed a copy of this directory
291# in the distribution to simplify the process of creating a
292# self-contained HTML distribution; for this purpose I have also added
293# a (trivial) index.html. Change the definition of $ICONSERVER in
Fred Drake9fab3aa1998-04-28 19:20:43 +0000294# perl/l2hinit.perl to use a different location for the icons directory.
Guido van Rossume83e3801995-03-17 16:01:35 +0000295
Fred Drakef2951131998-05-07 19:30:16 +0000296COMMONPERL=perl/manual.perl perl/python.perl
Fred Drakebbe33c51998-05-07 01:39:06 +0000297
Fred Draked69e2c41998-05-11 18:25:46 +0000298html: l2h
299
Fred Drake9cdf0871998-05-07 15:03:25 +0000300l2h:
Fred Drakecdbd3911998-05-15 17:02:10 +0000301 (cd $(HTMLDIR); $(MAKE) TEXINPUTS=../paper-$(PAPER):../texinputs:)
Guido van Rossum6938f061994-08-01 12:22:53 +0000302
Fred Drake9cdf0871998-05-07 15:03:25 +0000303l2hapi: $(COMMONPERL)
Fred Drakef2951131998-05-07 19:30:16 +0000304 $(MKHTML) api $(L2HARGS)
Guido van Rossum6938f061994-08-01 12:22:53 +0000305
Fred Drake9cdf0871998-05-07 15:03:25 +0000306l2hext: $(COMMONPERL)
Fred Drakef2951131998-05-07 19:30:16 +0000307 $(MKHTML) ext $(L2HARGS)
Guido van Rossum970871f1993-02-21 20:10:26 +0000308
Fred Drakecdbd3911998-05-15 17:02:10 +0000309l2hlib: $(COMMONPERL) $(LIBFILES)
Fred Drake9fab3aa1998-04-28 19:20:43 +0000310 $(srcdir)/tools/fix_libaux.sed <`$(KPSEWHICH) lib.aux` >lib1.aux
311 mv lib1.aux `$(KPSEWHICH) lib.aux`
Fred Drakef2951131998-05-07 19:30:16 +0000312 $(MKHTML) lib $(L2HARGS)
Fred Drakea6bb3961998-05-06 19:51:39 +0000313
Fred Drakecdbd3911998-05-15 17:02:10 +0000314l2hmac: $(COMMONPERL) $(MACLIBFILES)
315 $(srcdir)/tools/mkhowto.sh --html $(srcdir)/mac/mac.tex
316
Fred Drake9cdf0871998-05-07 15:03:25 +0000317l2href: $(COMMONPERL)
Fred Drakef2951131998-05-07 19:30:16 +0000318 $(MKHTML) ref $(L2HARGS)
Guido van Rossume83e3801995-03-17 16:01:35 +0000319
Fred Drake9cdf0871998-05-07 15:03:25 +0000320l2htut: $(COMMONPERL)
Fred Drakef2951131998-05-07 19:30:16 +0000321 $(MKHTML) tut $(L2HARGS)
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000322
Fred Drakee4837a11998-03-06 21:29:34 +0000323# webchecker needs an extra flag to process the huge index from the libref
324webcheck:
Fred Drake9cdf0871998-05-07 15:03:25 +0000325 $(WEBCHECKER) file:`pwd`/api/
326 $(WEBCHECKER) file:`pwd`/ext/
327 $(WEBCHECKER) -m290000 file:`pwd`/lib/
328 $(WEBCHECKER) file:`pwd`/ref/
329 $(WEBCHECKER) file:`pwd`/tut/
Fred Drakee4837a11998-03-06 21:29:34 +0000330
Fred Drakee34ab301998-05-11 21:10:15 +0000331lib-info-$(RELEASE).tgz: info
Fred Draked69e2c41998-05-11 18:25:46 +0000332 (cd $(INFODIR); tar cf - python-???.info*) | gzip -9 >$@
Fred Drakea7998351998-02-19 16:01:04 +0000333
Fred Drakee34ab301998-05-11 21:10:15 +0000334latex-$(RELEASE).tgz:
Fred Drake29cabd41998-05-11 18:53:07 +0000335 $(srcdir)/tools/mktarball.sh $(RELEASE)
Fred Drakee61d7af1998-03-05 16:37:34 +0000336
Fred Drakee34ab301998-05-11 21:10:15 +0000337pdf-$(PAPER)-$(RELEASE).tgz: all-pdf
Fred Draked69e2c41998-05-11 18:25:46 +0000338 (cd paper-$(PAPER); tar cf - $(PDFFILES)) | gzip -9 >$@
Fred Drake04cf4dc1998-02-12 22:33:50 +0000339
Fred Drakee34ab301998-05-11 21:10:15 +0000340postscript-$(PAPER)-$(RELEASE).tgz: all-ps
Fred Draked69e2c41998-05-11 18:25:46 +0000341 (cd paper-$(PAPER); tar cf - $(PSFILES)) | gzip -9 >$@
Fred Drake04cf4dc1998-02-12 22:33:50 +0000342
Fred Drakee34ab301998-05-11 21:10:15 +0000343html-$(RELEASE).tgz:
344 (cd $(HTMLDIR); tar cf - index.html ???/???.css ???/*.html */*.gif) \
Fred Drake29cabd41998-05-11 18:53:07 +0000345 | gzip -9 >$@
Fred Drake33d05b91998-01-13 16:33:09 +0000346
Fred Drakea7998351998-02-19 16:01:04 +0000347# convenience targets:
348
Fred Drakee34ab301998-05-11 21:10:15 +0000349tarhtml: html-$(RELEASE).tgz
Fred Drakebbe33c51998-05-07 01:39:06 +0000350
Fred Drakee34ab301998-05-11 21:10:15 +0000351tarinfo: lib-info-$(RELEASE).tgz
Fred Drakea7998351998-02-19 16:01:04 +0000352
Fred Drakee34ab301998-05-11 21:10:15 +0000353tarps: postscript-$(PAPER)-$(RELEASE).tgz
Fred Drake33d05b91998-01-13 16:33:09 +0000354
Fred Drakee34ab301998-05-11 21:10:15 +0000355tarpdf: pdf-$(PAPER)-$(RELEASE).tgz
Fred Drake04cf4dc1998-02-12 22:33:50 +0000356
Fred Drakee34ab301998-05-11 21:10:15 +0000357tarlatex: latex-$(RELEASE).tgz
Fred Drakee61d7af1998-03-05 16:37:34 +0000358
Fred Drakee34ab301998-05-11 21:10:15 +0000359tarballs: tarpdf tarps tarhtml tarinfo tarlatex
Guido van Rossum84cca441997-11-25 20:49:09 +0000360
Guido van Rossume83e3801995-03-17 16:01:35 +0000361
362# Housekeeping targets
363
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000364# Remove temporary files; all except the following:
Fred Drake6659c301998-03-03 22:02:19 +0000365# - sources: .tex, .bib, .sty, *.cls
Fred Drake04cf4dc1998-02-12 22:33:50 +0000366# - useful results: .dvi, .pdf, .ps, .texi, .info
Fred Drakee4837a11998-03-06 21:29:34 +0000367clean:
Fred Drakeb9838d91998-05-08 15:43:08 +0000368 (cd paper-$(PAPER); rm -f *~ *.aux *.idx *.ilg *.ind *.log *.toc *.bkm)
Fred Drakee34ab301998-05-11 21:10:15 +0000369 (cd $(INFODIR); $(MAKE) clean)
Fred Drakeb9838d91998-05-08 15:43:08 +0000370 (cd $(HTMLDIR); rm -f @webchecker.pickle)
Fred Drakee34ab301998-05-11 21:10:15 +0000371 rm -f html-$(RELEASE).tgz info-$(RELEASE).tgz
372 rm -f pdf-$(RELEASE).tgz postscript-$(RELEASE).tgz
373 rm -f latex-$(RELEASE).tgz
Guido van Rossum5b343731992-07-07 09:06:34 +0000374
Fred Drake03ff6f71997-08-22 18:18:54 +0000375l2hclean:
Fred Drakeb9838d91998-05-08 15:43:08 +0000376 (cd $(HTMLDIR); rm -rf api ext lib ref tut)
Fred Drake03ff6f71997-08-22 18:18:54 +0000377
Guido van Rossume83e3801995-03-17 16:01:35 +0000378# Remove temporaries as well as final products
Fred Drakee4837a11998-03-06 21:29:34 +0000379clobber: clean l2hclean
Fred Drakeb9838d91998-05-08 15:43:08 +0000380 (cd paper-$(PAPER); rm -f $(DVIFILES) $(PSFILES) $(PDFFILES))
Fred Drakee34ab301998-05-11 21:10:15 +0000381 (cd $(INFODIR); $(MAKE) clobber)
Fred Drake5ad78f31998-02-22 19:47:13 +0000382
383realclean: clobber
384distclean: clobber