blob: 6d23a4fd650d373b6602b7dd632e8cd5c90ebecb [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:
7# tut -- Tutorial (file tut.tex)
8# lib -- Library Reference (file lib.tex, inputs lib*.tex)
Guido van Rossume83e3801995-03-17 16:01:35 +00009# ext -- Extending and Embedding (file ext.tex)
Guido van Rossum9231c8f1997-05-15 21:43:21 +000010# api -- Python-C API Reference
Guido van Rossume83e3801995-03-17 16:01:35 +000011#
Guido van Rossum1f175431996-10-22 20:00:02 +000012# The Reference Manual is now maintained as a FrameMaker document.
13# See the subdirectory ref; PostScript is included as ref/ref.ps.
14# (In the future, the Tutorial will also be converted to FrameMaker;
15# the other documents will be maintained in a text format such
16# as LaTeX or perhaps TIM.)
17#
Guido van Rossume83e3801995-03-17 16:01:35 +000018# The main target "make all" creates DVI and PostScript for these
19# four. You can also do "make lib" (etc.) to process individual
20# documents.
21#
Fred Drake6659c301998-03-03 22:02:19 +000022# There's one local style file: python.sty. This defines a number
Guido van Rossume83e3801995-03-17 16:01:35 +000023# of macros that are similar in name and intent as macros in Texinfo
24# (e.g. \code{...} and \emph{...}), as well as a number of
25# environments for formatting function and data definitions, also in
26# the style of Texinfo.
27#
28# Everything is processed by LaTeX. The following tools are used:
29# latex
30# makeindex
31# dvips
Guido van Rossume83e3801995-03-17 16:01:35 +000032#
33# There's a problem with generating the index which has been solved by
34# a sed command applied to the index file. The shell script fix_hack
35# does this (the Makefile takes care of calling it).
36#
37# To preview the dvi files produced by LaTeX it would be useful to
38# have xdvi as well.
39#
40# Additional targets attempt to convert selected LaTeX sources to
41# various other formats. These are generally site specific because
42# the tools used are all but universal. These targets are:
Guido van Rossum9231c8f1997-05-15 21:43:21 +000043# l2h -- convert tut, lib, ext, api from LaTeX to HTML
Guido van Rossum73827c61995-03-20 13:00:32 +000044# See the README file for more info on these targets.
Guido van Rossume83e3801995-03-17 16:01:35 +000045
Guido van Rossum73827c61995-03-20 13:00:32 +000046# Customizations -- you *may* have to edit these
Guido van Rossume83e3801995-03-17 16:01:35 +000047
Guido van Rossum73827c61995-03-20 13:00:32 +000048# Where are the various programs?
49LATEX= latex
Fred Drake3b26eed1998-02-16 17:06:10 +000050PDFLATEX= pdflatex
Guido van Rossum73827c61995-03-20 13:00:32 +000051BIBTEX= bibtex
Guido van Rossum5344d4f1997-10-05 18:51:02 +000052DVIPS= dvips -f -N0
Fred Drake126d8401998-02-04 19:54:40 +000053DISTILL= distill
Guido van Rossum73827c61995-03-20 13:00:32 +000054MAKEINDEX= makeindex
Fred Drakef93f1011996-10-29 16:07:46 +000055L2H= latex2html
Guido van Rossum0f280b61997-12-01 18:50:09 +000056L2HARGS= -address $$LOGNAME@`domainname`
Guido van Rossum73827c61995-03-20 13:00:32 +000057
58# Install destination -- not used now but might be useful some time...
59DESTDIR= /usr/local
60LIBDESTDIR= $DESTDIR/lib
61LIBDEST= $LIBDESTDIR/python
62DOCDESTDIR= $LIBDEST/doc
63
Fred Drake05dd3c01997-12-29 17:17:54 +000064# This is only used for .info generation:
65EMACS= emacs
66PYTHON= python
67MAKEINFO= makeinfo
Fred Drake4f4e9201998-02-27 05:18:28 +000068# When debugging partparse.py, make this the pyc file:
Fred Drake6eab2fb1998-02-13 03:23:33 +000069PARTPARSEOBJ= partparse.pyc
70PARTPARSE= $(PYTHON) $(PARTPARSEOBJ)
Fred Drake05dd3c01997-12-29 17:17:54 +000071
Guido van Rossum73827c61995-03-20 13:00:32 +000072# Ideally, you shouldn't need to edit beyond this point
Guido van Rossum5b343731992-07-07 09:06:34 +000073
Fred Drake33d05b91998-01-13 16:33:09 +000074VERSION=1.5
75
Fred Drake04cf4dc1998-02-12 22:33:50 +000076DVIFILES= api.dvi ext.dvi lib.dvi tut.dvi
Fred Drakea7998351998-02-19 16:01:04 +000077INFOFILES= python-lib.info
Fred Drake04cf4dc1998-02-12 22:33:50 +000078PDFFILES= api.pdf ext.pdf lib.pdf tut.pdf
79PSFILES= api.ps ext.ps lib.ps tut.ps
80
Guido van Rossume83e3801995-03-17 16:01:35 +000081# Main target
Guido van Rossumeb8d5031996-08-09 21:46:05 +000082all: all-ps
83
Fred Drake04cf4dc1998-02-12 22:33:50 +000084all-dvi: $(DVIFILES)
85all-pdf: $(PDFFILES)
86all-ps: $(PSFILES)
Guido van Rossum20aca5a1991-01-25 13:29:04 +000087
Fred Drake5fd242b1998-02-17 18:20:30 +000088# This target gets both the PDF and PS files updated; the all-pdf target
89# above doesn't ensure that both are done if the "alternate" rule (using
90# pdflatex) for PDF generation is used.
Fred Drakeddae4141998-02-17 15:45:25 +000091#
92all-formats: $(PSFILES) $(PDFFILES)
93
Guido van Rossume83e3801995-03-17 16:01:35 +000094# Individual document fake targets
Guido van Rossumeb8d5031996-08-09 21:46:05 +000095tut: tut.ps
96lib: lib.ps
Guido van Rossumeb8d5031996-08-09 21:46:05 +000097ext: ext.ps
Guido van Rossum9231c8f1997-05-15 21:43:21 +000098api: api.ps
Guido van Rossume83e3801995-03-17 16:01:35 +000099
Fred Drakedd946761998-02-18 16:02:14 +0000100# All formats for a single document
101api-all: api.dvi api.pdf api.ps l2hapi
102ext-all: ext.dvi ext.pdf ext.ps l2hext
103lib-all: lib.dvi lib.pdf lib.ps l2hlib
104tut-all: tut.dvi tut.pdf tut.ps l2htut
105
106
Fred Drake126d8401998-02-04 19:54:40 +0000107# Rules to build PostScript and PDF formats
Fred Drake5ad78f31998-02-22 19:47:13 +0000108.SUFFIXES: .dvi .ps .pdf .tex
Fred Drake126d8401998-02-04 19:54:40 +0000109
110.dvi.ps:
111 $(DVIPS) $< >$@
112
Fred Drakeddae4141998-02-17 15:45:25 +0000113#.ps.pdf:
114# $(DISTILL) $<
Fred Drake126d8401998-02-04 19:54:40 +0000115
Fred Drake3b26eed1998-02-16 17:06:10 +0000116# An alternate formulation of PDF creation; requires latex format with
117# pdftex. To use this instead of the Acrobat distiller solution, comment
118# out the above .ps.pdf rule and uncomment this rule. This was tested
119# using a pre-release of the teTeX distribution. See
120# http://www.tug.org/tetex/ for more information on getting & using teTeX.
121# This rule avoids creation of the intermediate PostScript files and uses
122# only free software.
123#
Fred Drakeddae4141998-02-17 15:45:25 +0000124.dvi.pdf:
125 $(PDFLATEX) $*
Fred Drake3b26eed1998-02-16 17:06:10 +0000126
Guido van Rossume83e3801995-03-17 16:01:35 +0000127# Dependencies
Fred Drake6659c301998-03-03 22:02:19 +0000128COMMONTEX=python.sty manual.cls copyright.tex boilerplate.tex
Fred Drake5d8f0ed1998-02-11 14:43:38 +0000129
Fred Drake5ad78f31998-02-22 19:47:13 +0000130$(DVIFILES): fix_hack $(COMMONTEX)
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000131
Guido van Rossum16d6e711994-08-08 12:30:22 +0000132# LaTeX source files for the Python Library Reference
133LIBFILES = lib.tex \
Guido van Rossum40006cf1996-08-19 22:58:03 +0000134 libintro.tex libobjs.tex libtypes.tex libexcs.tex libfuncs.tex \
135 libpython.tex libsys.tex libtypes2.tex libtraceback.tex libpickle.tex \
136 libshelve.tex libcopy.tex libmarshal.tex libimp.tex libparser.tex \
137 libbltin.tex libmain.tex libstrings.tex libstring.tex libregex.tex \
138 libregsub.tex libstruct.tex libmisc.tex libmath.tex librand.tex \
139 libwhrandom.tex libarray.tex liballos.tex libos.tex libtime.tex \
140 libgetopt.tex libtempfile.tex liberrno.tex libsomeos.tex libsignal.tex \
141 libsocket.tex libselect.tex libthread.tex libunix.tex libposix.tex \
142 libppath.tex libpwd.tex libgrp.tex libcrypt.tex libdbm.tex libgdbm.tex \
143 libtermios.tex libfcntl.tex libposixfile.tex libsyslog.tex libpdb.tex \
144 libprofile.tex libwww.tex libcgi.tex liburllib.tex libhttplib.tex \
145 libftplib.tex libgopherlib.tex libnntplib.tex liburlparse.tex \
146 libhtmllib.tex libsgmllib.tex librfc822.tex libmimetools.tex \
147 libbinascii.tex libmm.tex libaudioop.tex libimageop.tex libaifc.tex \
148 libjpeg.tex librgbimg.tex libcrypto.tex libmd5.tex libmpz.tex \
149 librotor.tex libmac.tex libctb.tex libmacconsole.tex libmacdnr.tex \
150 libmacfs.tex libmacos.tex libmacostools.tex libmactcp.tex \
151 libmacspeech.tex libmacui.tex libstdwin.tex libsgi.tex libal.tex \
152 libcd.tex libfl.tex libfm.tex libgl.tex libimgfile.tex libsun.tex \
Guido van Rossuma80c3981996-10-22 01:12:13 +0000153 libxdrlib.tex libimghdr.tex \
154 librestricted.tex librexec.tex libbastion.tex \
Guido van Rossum3dd68d31996-12-31 02:24:54 +0000155 libformatter.tex liboperator.tex libsoundex.tex libresource.tex \
Guido van Rossum7f3b0421997-03-27 14:56:18 +0000156 libstat.tex libstrio.tex libundoc.tex libmailcap.tex libglob.tex \
Guido van Rossume76b7a81997-04-27 21:25:52 +0000157 libuser.tex libanydbm.tex librandom.tex libsite.tex libwhichdb.tex \
Guido van Rossum41c302f1997-06-02 17:36:12 +0000158 libbase64.tex libfnmatch.tex libquopri.tex libzlib.tex libsocksvr.tex \
Fred Drake18600a41997-07-18 20:43:27 +0000159 libmailbox.tex libcommands.tex libcmath.tex libni.tex libgzip.tex \
Guido van Rossum36764b81997-08-30 20:02:25 +0000160 libpprint.tex libcode.tex libmimify.tex libre.tex libmacic.tex \
Guido van Rossum9cb64801997-12-29 20:01:55 +0000161 libuserdict.tex libdis.tex libxmllib.tex libqueue.tex \
Fred Drake8ff4b8b1998-02-18 17:19:53 +0000162 liblocale.tex libbasehttp.tex libcopyreg.tex libsymbol.tex libtoken.tex \
Fred Drake91683281998-02-19 20:46:47 +0000163 libframework.tex libminiae.tex libbinhex.tex libuu.tex libsunaudio.tex
Guido van Rossum16d6e711994-08-08 12:30:22 +0000164
Guido van Rossume83e3801995-03-17 16:01:35 +0000165# Library document
Fred Drake4be00711998-02-09 22:18:42 +0000166lib.dvi: modindex.py indfix.py $(LIBFILES)
Fred Drake4f4e9201998-02-27 05:18:28 +0000167 ./newind.py >$*.ind
168 ./newind.py modindex >mod$*.ind
Fred Drake5ad78f31998-02-22 19:47:13 +0000169 $(LATEX) $*
Fred Drake888dfa91998-02-25 15:30:47 +0000170 ./modindex.py mod$*.idx
Fred Drake5ad78f31998-02-22 19:47:13 +0000171 ./fix_hack $*.idx
172 $(MAKEINDEX) $*.idx
173 ./indfix.py $*.ind
174 $(LATEX) $*
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000175
Fred Drake5ad78f31998-02-22 19:47:13 +0000176# Tutorial document
177tut.dvi: tut.tex
178 $(LATEX) $*
179 $(LATEX) $*
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000180
Fred Drake5ad78f31998-02-22 19:47:13 +0000181# Extending & Embedding, Python/C API documents.
182# Done this way to avoid repeated command sets.
183.tex.dvi:
Fred Drake4f4e9201998-02-27 05:18:28 +0000184 ./newind.py >$*.ind
Fred Drake5ad78f31998-02-22 19:47:13 +0000185 $(LATEX) $*
186 ./fix_hack $*.idx
187 $(MAKEINDEX) $*.idx
188 $(LATEX) $*
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000189
Guido van Rossume83e3801995-03-17 16:01:35 +0000190
191# The remaining part of the Makefile is concerned with various
Guido van Rossum73827c61995-03-20 13:00:32 +0000192# conversions, as described above. See also the README file.
Guido van Rossume83e3801995-03-17 16:01:35 +0000193
Fred Drake6eab2fb1998-02-13 03:23:33 +0000194.SUFFIXES: .py .pyc .pyo
195
196.py.pyo:
197 $(PYTHON) -O -c "import $*"
Fred Drake05dd3c01997-12-29 17:17:54 +0000198
199.py.pyc:
200 $(PYTHON) -c "import $*"
201
Fred Drake5ad78f31998-02-22 19:47:13 +0000202.PRECIOUS: python-lib.texi
Fred Drake05dd3c01997-12-29 17:17:54 +0000203
Fred Drake3d913ad1997-12-29 21:31:23 +0000204# The sed script in this target fixes a really nasty little condition in
205# libcgi.tex where \e has to be used in a group to get the right behavior,
Fred Drake5ad78f31998-02-22 19:47:13 +0000206# and makeinfo can't handle a group without a leading @command. But at
207# least the info file gets generated.
Fred Drake3d913ad1997-12-29 21:31:23 +0000208
Fred Drake5ad78f31998-02-22 19:47:13 +0000209lib1.texi: $(LIBFILES) texipre.dat texipost.dat $(PARTPARSEOBJ)
Fred Drakea7998351998-02-19 16:01:04 +0000210 $(PARTPARSE) -o $@ `./whichlibs`
211 sed 's/"{\\}n{\\}n/"\\n\\n/' $@ >temp.texi
212 mv temp.texi $@
Fred Drake05dd3c01997-12-29 17:17:54 +0000213
Fred Drake5ad78f31998-02-22 19:47:13 +0000214python-lib.texi: lib1.texi fix.el
Fred Drakea7998351998-02-19 16:01:04 +0000215 cp lib1.texi temp.texi
Fred Drake05dd3c01997-12-29 17:17:54 +0000216 $(EMACS) -batch -l fix.el -f save-buffer -kill
Fred Drakea7998351998-02-19 16:01:04 +0000217 mv temp.texi $@
Fred Drake05dd3c01997-12-29 17:17:54 +0000218
Fred Drake5ad78f31998-02-22 19:47:13 +0000219python-lib.info: python-lib.texi
Fred Drakef7f2e701998-02-19 21:40:51 +0000220 $(MAKEINFO) --footnote-style end --fill-column 72 \
Fred Drakea7998351998-02-19 16:01:04 +0000221 --paragraph-indent 0 $<
Fred Drake05dd3c01997-12-29 17:17:54 +0000222
Fred Drake13704a81997-12-29 22:04:44 +0000223# this is needed to prevent a second set of info files from being generated,
224# at least when using GNU make
Fred Drake5ad78f31998-02-22 19:47:13 +0000225.PHONY: lib.info lib.texi
Fred Drake13704a81997-12-29 22:04:44 +0000226
Fred Drake05dd3c01997-12-29 17:17:54 +0000227lib.info: python-lib.info
228
Fred Drake5ad78f31998-02-22 19:47:13 +0000229lib.texi: python-lib.texi
230
Guido van Rossum73827c61995-03-20 13:00:32 +0000231# Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to
232# HTML converter. For more info on this program, see
Guido van Rossume83e3801995-03-17 16:01:35 +0000233# <URL:http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html>.
Guido van Rossume83e3801995-03-17 16:01:35 +0000234
Guido van Rossum9cb64801997-12-29 20:01:55 +0000235# Note that LaTeX2HTML inserts references to an icons directory in
236# each page that it generates. I have placed a copy of this directory
237# in the distribution to simplify the process of creating a
238# self-contained HTML distribution; for this purpose I have also added
239# a (trivial) index.html. Change the definition of $ICONSERVER in
240# .latex2html-init to use a different location for the icons directory.
Guido van Rossume83e3801995-03-17 16:01:35 +0000241
Guido van Rossum9cb64801997-12-29 20:01:55 +0000242# The sed hack rips out a superfluous comma which I haven't found the
243# source of. The prominent location makes it worth the extra step;
244# this affects the title pages!
Fred Drakefc8f6f31996-12-06 18:45:30 +0000245
Fred Drakeddae4141998-02-17 15:45:25 +0000246l2h: l2hapi l2hext l2hlib l2htut
Guido van Rossum6938f061994-08-01 12:22:53 +0000247
Fred Drake6659c301998-03-03 22:02:19 +0000248l2htut: tut.dvi manual.perl python.perl
Guido van Rossum6938f061994-08-01 12:22:53 +0000249 $(L2H) $(L2HARGS) tut.tex
Fred Drake791f2ae1998-03-03 18:05:13 +0000250 (cd tut; ../node2label.pl *.html)
Fred Drakefc8f6f31996-12-06 18:45:30 +0000251 sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \
252 <tut/tut.html >tut/xxx
253 mv tut/xxx tut/tut.html
Fred Drake03ff6f71997-08-22 18:18:54 +0000254 ln -s tut.html tut/index.html || true
Guido van Rossum6938f061994-08-01 12:22:53 +0000255
Fred Drake6659c301998-03-03 22:02:19 +0000256l2hext: ext.dvi manual.perl python.perl
Guido van Rossum6938f061994-08-01 12:22:53 +0000257 $(L2H) $(L2HARGS) ext.tex
Fred Drake791f2ae1998-03-03 18:05:13 +0000258 (cd ext; ../node2label.pl *.html)
Fred Drakefc8f6f31996-12-06 18:45:30 +0000259 sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \
260 <ext/ext.html >ext/xxx
261 mv ext/xxx ext/ext.html
Fred Drake03ff6f71997-08-22 18:18:54 +0000262 ln -s ext.html ext/index.html || true
Guido van Rossum970871f1993-02-21 20:10:26 +0000263
Fred Drake6659c301998-03-03 22:02:19 +0000264l2hlib: lib.dvi manual.perl python.perl
Fred Drake03ff6f71997-08-22 18:18:54 +0000265 ./fix_libaux.sed <lib.aux >lib1.aux
266 mv lib1.aux lib.aux
Fred Drakedd946761998-02-18 16:02:14 +0000267 if [ -d lib ] ; then rm -f lib/*.html ; fi
Guido van Rossume83e3801995-03-17 16:01:35 +0000268 $(L2H) $(L2HARGS) lib.tex
Fred Drake791f2ae1998-03-03 18:05:13 +0000269 (cd lib; ../node2label.pl *.html)
Fred Drakef1e67071996-12-06 15:11:34 +0000270 sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \
271 <lib/lib.html >lib/xxx
272 mv lib/xxx lib/lib.html
Fred Drake03ff6f71997-08-22 18:18:54 +0000273 ln -s lib.html lib/index.html || true
Guido van Rossume83e3801995-03-17 16:01:35 +0000274
Fred Drake6659c301998-03-03 22:02:19 +0000275l2hapi: api.dvi manual.perl python.perl
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000276 $(L2H) $(L2HARGS) api.tex
Fred Drake791f2ae1998-03-03 18:05:13 +0000277 (cd api; ../node2label.pl *.html)
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000278 sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \
279 <api/api.html >api/xxx
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000280 mv api/xxx api/api.html
Fred Drake03ff6f71997-08-22 18:18:54 +0000281 ln -s api.html api/index.html || true
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000282
Fred Drakea7998351998-02-19 16:01:04 +0000283info-$(VERSION).tar.gz: $(INFOFILES)
284 tar cf - python-???.info* | gzip -9 >$@
285
Fred Drake04cf4dc1998-02-12 22:33:50 +0000286pdf-$(VERSION).tar.gz: $(PDFFILES)
Fred Drakea7998351998-02-19 16:01:04 +0000287 tar cf - ???.pdf | gzip -9 >$@
Fred Drake04cf4dc1998-02-12 22:33:50 +0000288
289postscript-$(VERSION).tar.gz: $(PSFILES) ref/ref.ps
290 cp ref/ref.ps .
Fred Drakea7998351998-02-19 16:01:04 +0000291 tar cf - ???.ps | gzip -9 >$@
Fred Drake04cf4dc1998-02-12 22:33:50 +0000292 rm ref.ps
293
Guido van Rossum330c6601997-11-26 15:31:32 +0000294tarhtml:
Guido van Rossum84cca441997-11-25 20:49:09 +0000295 @echo "Did you remember to run makeMIFs.py in the ref subdirectory...?"
Fred Drake33d05b91998-01-13 16:33:09 +0000296 tar cf - index.html ???/???.css ???/*.html lib/*.gif icons/*.* \
Fred Drake95810e41998-01-13 17:18:57 +0000297 | gzip -9 >html-$(VERSION).tar.gz
Fred Drake33d05b91998-01-13 16:33:09 +0000298
Fred Drakea7998351998-02-19 16:01:04 +0000299# convenience targets:
300
301tarinfo: info-$(VERSION).tar.gz
302
Fred Drake04cf4dc1998-02-12 22:33:50 +0000303tarps: postscript-$(VERSION).tar.gz
Fred Drake33d05b91998-01-13 16:33:09 +0000304
Fred Drake04cf4dc1998-02-12 22:33:50 +0000305tarpdf: pdf-$(VERSION).tar.gz
306
307tarballs: tarpdf tarps tarhtml
Guido van Rossum84cca441997-11-25 20:49:09 +0000308
Guido van Rossume83e3801995-03-17 16:01:35 +0000309
310# Housekeeping targets
311
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000312# Remove temporary files; all except the following:
Fred Drake6659c301998-03-03 22:02:19 +0000313# - sources: .tex, .bib, .sty, *.cls
Fred Drake04cf4dc1998-02-12 22:33:50 +0000314# - useful results: .dvi, .pdf, .ps, .texi, .info
Fred Drake03ff6f71997-08-22 18:18:54 +0000315clean: l2hclean
Fred Drake6eab2fb1998-02-13 03:23:33 +0000316 rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.py[co]
Fred Drake4d3b2a21998-02-23 21:34:26 +0000317 rm -f *.bak *.orig lib1.texi *.out
Fred Drake95810e41998-01-13 17:18:57 +0000318 rm -f html-$(VERSION).tar.gz postscript-$(VERSION).tar.gz
Fred Drake04cf4dc1998-02-12 22:33:50 +0000319 rm -f pdf-$(VERSION).tar.gz
Guido van Rossum5b343731992-07-07 09:06:34 +0000320
Fred Drake03ff6f71997-08-22 18:18:54 +0000321l2hclean:
Fred Drake5de31fc1997-08-22 18:20:33 +0000322 rm -rf api ext lib tut
Fred Drake03ff6f71997-08-22 18:18:54 +0000323
Guido van Rossume83e3801995-03-17 16:01:35 +0000324# Remove temporaries as well as final products
Guido van Rossum5b343731992-07-07 09:06:34 +0000325clobber: clean
Fred Drake6b7fc6f1998-02-04 20:33:13 +0000326 rm -f *.dvi *.pdf *.ps *.texi *.info *.info-[0-9]*
Fred Drake5ad78f31998-02-22 19:47:13 +0000327
328realclean: clobber
329distclean: clobber