blob: cfc6ad2f150ff8212c9c873654ffbfd7b812cb36 [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?
Fred Drakee4837a11998-03-06 21:29:34 +000049LATEX= TEXINPUTS=$(TEXINPUTS) latex
50PDFLATEX= TEXINPUTS=$(TEXINPUTS) pdflatex
51TEXINPUTS= texinputs:
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 Drakee4837a11998-03-06 21:29:34 +000055L2H= TEXINPUTS=$(TEXINPUTS) latex2html -init_file perl/l2hinit.perl
Guido van Rossum0f280b61997-12-01 18:50:09 +000056L2HARGS= -address $$LOGNAME@`domainname`
Fred Drakee4837a11998-03-06 21:29:34 +000057WEBCHECKER= $(PYTHON) ../Tools/webchecker/webchecker.py
Guido van Rossum73827c61995-03-20 13:00:32 +000058
59# Install destination -- not used now but might be useful some time...
60DESTDIR= /usr/local
61LIBDESTDIR= $DESTDIR/lib
Fred Drakee4837a11998-03-06 21:29:34 +000062LIBDEST= $LIBDESTDIR/python$(VERSION)
Guido van Rossum73827c61995-03-20 13:00:32 +000063DOCDESTDIR= $LIBDEST/doc
64
Fred Drake05dd3c01997-12-29 17:17:54 +000065# This is only used for .info generation:
66EMACS= emacs
67PYTHON= python
68MAKEINFO= makeinfo
Fred Drakee4837a11998-03-06 21:29:34 +000069PARTPARSE= $(PYTHON) tools/partparse.py
Fred Drake05dd3c01997-12-29 17:17:54 +000070
Guido van Rossum73827c61995-03-20 13:00:32 +000071# Ideally, you shouldn't need to edit beyond this point
Guido van Rossum5b343731992-07-07 09:06:34 +000072
Fred Drake33d05b91998-01-13 16:33:09 +000073VERSION=1.5
74
Fred Drake04cf4dc1998-02-12 22:33:50 +000075DVIFILES= api.dvi ext.dvi lib.dvi tut.dvi
Fred Drakea7998351998-02-19 16:01:04 +000076INFOFILES= python-lib.info
Fred Drake04cf4dc1998-02-12 22:33:50 +000077PDFFILES= api.pdf ext.pdf lib.pdf tut.pdf
78PSFILES= api.ps ext.ps lib.ps tut.ps
79
Fred Drakee4837a11998-03-06 21:29:34 +000080MANSTYLES=texinputs/fncychap.sty texinputs/manual.cls texinputs/python.sty
81
Guido van Rossume83e3801995-03-17 16:01:35 +000082# Main target
Guido van Rossumeb8d5031996-08-09 21:46:05 +000083all: all-ps
84
Fred Drake2c954fa1998-03-07 19:59:45 +000085world: all-ps all-pdf l2h tarballs
Fred Drakee4837a11998-03-06 21:29:34 +000086
Fred Drake04cf4dc1998-02-12 22:33:50 +000087all-dvi: $(DVIFILES)
88all-pdf: $(PDFFILES)
89all-ps: $(PSFILES)
Guido van Rossum20aca5a1991-01-25 13:29:04 +000090
Fred Drake5fd242b1998-02-17 18:20:30 +000091# This target gets both the PDF and PS files updated; the all-pdf target
92# above doesn't ensure that both are done if the "alternate" rule (using
93# pdflatex) for PDF generation is used.
Fred Drakeddae4141998-02-17 15:45:25 +000094#
95all-formats: $(PSFILES) $(PDFFILES)
96
Guido van Rossume83e3801995-03-17 16:01:35 +000097# Individual document fake targets
Guido van Rossumeb8d5031996-08-09 21:46:05 +000098tut: tut.ps
99lib: lib.ps
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000100ext: ext.ps
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000101api: api.ps
Guido van Rossume83e3801995-03-17 16:01:35 +0000102
Fred Drakedd946761998-02-18 16:02:14 +0000103# All formats for a single document
104api-all: api.dvi api.pdf api.ps l2hapi
105ext-all: ext.dvi ext.pdf ext.ps l2hext
106lib-all: lib.dvi lib.pdf lib.ps l2hlib
107tut-all: tut.dvi tut.pdf tut.ps l2htut
108
109
Fred Drake126d8401998-02-04 19:54:40 +0000110# Rules to build PostScript and PDF formats
Fred Drake5ad78f31998-02-22 19:47:13 +0000111.SUFFIXES: .dvi .ps .pdf .tex
Fred Drake126d8401998-02-04 19:54:40 +0000112
113.dvi.ps:
114 $(DVIPS) $< >$@
115
Fred Drakeddae4141998-02-17 15:45:25 +0000116#.ps.pdf:
117# $(DISTILL) $<
Fred Drake126d8401998-02-04 19:54:40 +0000118
Fred Drake3b26eed1998-02-16 17:06:10 +0000119# An alternate formulation of PDF creation; requires latex format with
120# pdftex. To use this instead of the Acrobat distiller solution, comment
121# out the above .ps.pdf rule and uncomment this rule. This was tested
122# using a pre-release of the teTeX distribution. See
123# http://www.tug.org/tetex/ for more information on getting & using teTeX.
124# This rule avoids creation of the intermediate PostScript files and uses
125# only free software.
126#
Fred Drakee4837a11998-03-06 21:29:34 +0000127.dvi.pdf: $*.bkm
Fred Drake396a7cf1998-03-17 06:22:12 +0000128 $(PDFLATEX) $*
Fred Drakee4837a11998-03-06 21:29:34 +0000129 $(PYTHON) tools/toc2bkm.py $*
Fred Drakeddae4141998-02-17 15:45:25 +0000130 $(PDFLATEX) $*
Fred Drake3b26eed1998-02-16 17:06:10 +0000131
Guido van Rossume83e3801995-03-17 16:01:35 +0000132# Dependencies
Fred Drakee4837a11998-03-06 21:29:34 +0000133COMMONTEX=$(MANSTYLES) copyright.tex boilerplate.tex
134COMMONPERL=perl/manual.perl perl/python.perl
Fred Drake5d8f0ed1998-02-11 14:43:38 +0000135
Fred Drakee4837a11998-03-06 21:29:34 +0000136$(DVIFILES): tools/fix_hack $(COMMONTEX)
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000137
Guido van Rossum16d6e711994-08-08 12:30:22 +0000138# LaTeX source files for the Python Library Reference
139LIBFILES = lib.tex \
Guido van Rossum40006cf1996-08-19 22:58:03 +0000140 libintro.tex libobjs.tex libtypes.tex libexcs.tex libfuncs.tex \
141 libpython.tex libsys.tex libtypes2.tex libtraceback.tex libpickle.tex \
142 libshelve.tex libcopy.tex libmarshal.tex libimp.tex libparser.tex \
143 libbltin.tex libmain.tex libstrings.tex libstring.tex libregex.tex \
144 libregsub.tex libstruct.tex libmisc.tex libmath.tex librand.tex \
145 libwhrandom.tex libarray.tex liballos.tex libos.tex libtime.tex \
146 libgetopt.tex libtempfile.tex liberrno.tex libsomeos.tex libsignal.tex \
147 libsocket.tex libselect.tex libthread.tex libunix.tex libposix.tex \
148 libppath.tex libpwd.tex libgrp.tex libcrypt.tex libdbm.tex libgdbm.tex \
149 libtermios.tex libfcntl.tex libposixfile.tex libsyslog.tex libpdb.tex \
150 libprofile.tex libwww.tex libcgi.tex liburllib.tex libhttplib.tex \
151 libftplib.tex libgopherlib.tex libnntplib.tex liburlparse.tex \
152 libhtmllib.tex libsgmllib.tex librfc822.tex libmimetools.tex \
153 libbinascii.tex libmm.tex libaudioop.tex libimageop.tex libaifc.tex \
154 libjpeg.tex librgbimg.tex libcrypto.tex libmd5.tex libmpz.tex \
155 librotor.tex libmac.tex libctb.tex libmacconsole.tex libmacdnr.tex \
156 libmacfs.tex libmacos.tex libmacostools.tex libmactcp.tex \
157 libmacspeech.tex libmacui.tex libstdwin.tex libsgi.tex libal.tex \
158 libcd.tex libfl.tex libfm.tex libgl.tex libimgfile.tex libsun.tex \
Guido van Rossuma80c3981996-10-22 01:12:13 +0000159 libxdrlib.tex libimghdr.tex \
160 librestricted.tex librexec.tex libbastion.tex \
Guido van Rossum3dd68d31996-12-31 02:24:54 +0000161 libformatter.tex liboperator.tex libsoundex.tex libresource.tex \
Guido van Rossum7f3b0421997-03-27 14:56:18 +0000162 libstat.tex libstrio.tex libundoc.tex libmailcap.tex libglob.tex \
Guido van Rossume76b7a81997-04-27 21:25:52 +0000163 libuser.tex libanydbm.tex librandom.tex libsite.tex libwhichdb.tex \
Guido van Rossum41c302f1997-06-02 17:36:12 +0000164 libbase64.tex libfnmatch.tex libquopri.tex libzlib.tex libsocksvr.tex \
Fred Drake18600a41997-07-18 20:43:27 +0000165 libmailbox.tex libcommands.tex libcmath.tex libni.tex libgzip.tex \
Guido van Rossum36764b81997-08-30 20:02:25 +0000166 libpprint.tex libcode.tex libmimify.tex libre.tex libmacic.tex \
Guido van Rossum9cb64801997-12-29 20:01:55 +0000167 libuserdict.tex libdis.tex libxmllib.tex libqueue.tex \
Fred Drake8ff4b8b1998-02-18 17:19:53 +0000168 liblocale.tex libbasehttp.tex libcopyreg.tex libsymbol.tex libtoken.tex \
Fred Drake91683281998-02-19 20:46:47 +0000169 libframework.tex libminiae.tex libbinhex.tex libuu.tex libsunaudio.tex
Guido van Rossum16d6e711994-08-08 12:30:22 +0000170
Guido van Rossume83e3801995-03-17 16:01:35 +0000171# Library document
Fred Drake520f8bd1998-03-09 16:43:54 +0000172lib.dvi: tools/indfix.py $(LIBFILES)
Fred Drake396a7cf1998-03-17 06:22:12 +0000173 tools/newind.py >$*.ind
174 tools/newind.py modindex >mod$*.ind
Fred Drake5ad78f31998-02-22 19:47:13 +0000175 $(LATEX) $*
Fred Drake8bc96571998-03-09 16:37:52 +0000176 $(MAKEINDEX) mod$*.idx
Fred Drakee4837a11998-03-06 21:29:34 +0000177 tools/fix_hack $*.idx
Fred Drake5ad78f31998-02-22 19:47:13 +0000178 $(MAKEINDEX) $*.idx
Fred Drakee4837a11998-03-06 21:29:34 +0000179 tools/indfix.py $*.ind
Fred Drake5ad78f31998-02-22 19:47:13 +0000180 $(LATEX) $*
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000181
Fred Drake5ad78f31998-02-22 19:47:13 +0000182# Tutorial document
183tut.dvi: tut.tex
184 $(LATEX) $*
185 $(LATEX) $*
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000186
Fred Drake5ad78f31998-02-22 19:47:13 +0000187# Extending & Embedding, Python/C API documents.
188# Done this way to avoid repeated command sets.
189.tex.dvi:
Fred Drake396a7cf1998-03-17 06:22:12 +0000190 tools/newind.py >$*.ind
Fred Drake5ad78f31998-02-22 19:47:13 +0000191 $(LATEX) $*
Fred Drakee4837a11998-03-06 21:29:34 +0000192 tools/fix_hack $*.idx
Fred Drake5ad78f31998-02-22 19:47:13 +0000193 $(MAKEINDEX) $*.idx
194 $(LATEX) $*
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000195
Guido van Rossume83e3801995-03-17 16:01:35 +0000196
197# The remaining part of the Makefile is concerned with various
Guido van Rossum73827c61995-03-20 13:00:32 +0000198# conversions, as described above. See also the README file.
Guido van Rossume83e3801995-03-17 16:01:35 +0000199
Fred Drake5ad78f31998-02-22 19:47:13 +0000200.PRECIOUS: python-lib.texi
Fred Drake05dd3c01997-12-29 17:17:54 +0000201
Fred Drake3d913ad1997-12-29 21:31:23 +0000202# The sed script in this target fixes a really nasty little condition in
203# libcgi.tex where \e has to be used in a group to get the right behavior,
Fred Drake5ad78f31998-02-22 19:47:13 +0000204# and makeinfo can't handle a group without a leading @command. But at
205# least the info file gets generated.
Fred Drake3d913ad1997-12-29 21:31:23 +0000206
Fred Drake5ad78f31998-02-22 19:47:13 +0000207lib1.texi: $(LIBFILES) texipre.dat texipost.dat $(PARTPARSEOBJ)
Fred Drakee4837a11998-03-06 21:29:34 +0000208 $(PARTPARSE) -o $@ `tools/whichlibs`
Fred Drakea7998351998-02-19 16:01:04 +0000209 sed 's/"{\\}n{\\}n/"\\n\\n/' $@ >temp.texi
210 mv temp.texi $@
Fred Drake05dd3c01997-12-29 17:17:54 +0000211
Fred Drakee4837a11998-03-06 21:29:34 +0000212python-lib.texi: lib1.texi tools/fix.el
Fred Drakea7998351998-02-19 16:01:04 +0000213 cp lib1.texi temp.texi
Fred Drakee4837a11998-03-06 21:29:34 +0000214 $(EMACS) -batch -l tools/fix.el -f save-buffer -kill
Fred Drakea7998351998-02-19 16:01:04 +0000215 mv temp.texi $@
Fred Drake05dd3c01997-12-29 17:17:54 +0000216
Fred Drake5ad78f31998-02-22 19:47:13 +0000217python-lib.info: python-lib.texi
Fred Drakef7f2e701998-02-19 21:40:51 +0000218 $(MAKEINFO) --footnote-style end --fill-column 72 \
Fred Drakea7998351998-02-19 16:01:04 +0000219 --paragraph-indent 0 $<
Fred Drake05dd3c01997-12-29 17:17:54 +0000220
Fred Drake13704a81997-12-29 22:04:44 +0000221# this is needed to prevent a second set of info files from being generated,
222# at least when using GNU make
Fred Drake5ad78f31998-02-22 19:47:13 +0000223.PHONY: lib.info lib.texi
Fred Drake13704a81997-12-29 22:04:44 +0000224
Fred Drake05dd3c01997-12-29 17:17:54 +0000225lib.info: python-lib.info
226
Fred Drake5ad78f31998-02-22 19:47:13 +0000227lib.texi: python-lib.texi
228
Guido van Rossum73827c61995-03-20 13:00:32 +0000229# Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to
230# HTML converter. For more info on this program, see
Guido van Rossume83e3801995-03-17 16:01:35 +0000231# <URL:http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html>.
Guido van Rossume83e3801995-03-17 16:01:35 +0000232
Guido van Rossum9cb64801997-12-29 20:01:55 +0000233# Note that LaTeX2HTML inserts references to an icons directory in
234# each page that it generates. I have placed a copy of this directory
235# in the distribution to simplify the process of creating a
236# self-contained HTML distribution; for this purpose I have also added
237# a (trivial) index.html. Change the definition of $ICONSERVER in
238# .latex2html-init to use a different location for the icons directory.
Guido van Rossume83e3801995-03-17 16:01:35 +0000239
Fred Drakeddae4141998-02-17 15:45:25 +0000240l2h: l2hapi l2hext l2hlib l2htut
Guido van Rossum6938f061994-08-01 12:22:53 +0000241
Fred Drakee4837a11998-03-06 21:29:34 +0000242l2htut: tut.dvi $(COMMONPERL)
Guido van Rossum6938f061994-08-01 12:22:53 +0000243 $(L2H) $(L2HARGS) tut.tex
Fred Drakee4837a11998-03-06 21:29:34 +0000244 (cd tut; ../tools/node2label.pl *.html)
Guido van Rossum6938f061994-08-01 12:22:53 +0000245
Fred Drakee4837a11998-03-06 21:29:34 +0000246l2hext: ext.dvi $(COMMONPERL)
Guido van Rossum6938f061994-08-01 12:22:53 +0000247 $(L2H) $(L2HARGS) ext.tex
Fred Drakee4837a11998-03-06 21:29:34 +0000248 (cd ext; ../tools/node2label.pl *.html)
Guido van Rossum970871f1993-02-21 20:10:26 +0000249
Fred Drakee4837a11998-03-06 21:29:34 +0000250l2hlib: lib.dvi $(COMMONPERL)
251 tools/fix_libaux.sed <lib.aux >lib1.aux
Fred Drake03ff6f71997-08-22 18:18:54 +0000252 mv lib1.aux lib.aux
Fred Drakee4837a11998-03-06 21:29:34 +0000253 if test -d lib ; then rm -f lib/*.html ; fi
Guido van Rossume83e3801995-03-17 16:01:35 +0000254 $(L2H) $(L2HARGS) lib.tex
Fred Drakee4837a11998-03-06 21:29:34 +0000255 (cd lib; ../tools/node2label.pl *.html)
Guido van Rossume83e3801995-03-17 16:01:35 +0000256
Fred Drakee4837a11998-03-06 21:29:34 +0000257l2hapi: api.dvi $(COMMONPERL)
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000258 $(L2H) $(L2HARGS) api.tex
Fred Drakee4837a11998-03-06 21:29:34 +0000259 (cd api; ../tools/node2label.pl *.html)
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000260
Fred Drakee4837a11998-03-06 21:29:34 +0000261# webchecker needs an extra flag to process the huge index from the libref
262webcheck:
263 $(WEBCHECKER) file:`pwd`/api/
264 $(WEBCHECKER) file:`pwd`/ext/
265 $(WEBCHECKER) -m290000 file:`pwd`/lib/
266 $(WEBCHECKER) file:`pwd`/tut/
267
268lib-info-$(VERSION).tar.gz: $(INFOFILES)
Fred Drakea7998351998-02-19 16:01:04 +0000269 tar cf - python-???.info* | gzip -9 >$@
270
Fred Drakee61d7af1998-03-05 16:37:34 +0000271latex-$(VERSION).tar.gz:
Fred Drakee4837a11998-03-06 21:29:34 +0000272 tools/mktarball.sh
Fred Drakee61d7af1998-03-05 16:37:34 +0000273
Fred Drakeb1cd7711998-03-04 16:49:36 +0000274# This snags a PDF version if available, but doesn't fail if not.
Fred Drake04cf4dc1998-02-12 22:33:50 +0000275pdf-$(VERSION).tar.gz: $(PDFFILES)
Fred Drakee4837a11998-03-06 21:29:34 +0000276 if test -f ref/ref.pdf ; then cp ref/ref.pdf . ; else true ; fi
Fred Drakea7998351998-02-19 16:01:04 +0000277 tar cf - ???.pdf | gzip -9 >$@
Fred Drakee4837a11998-03-06 21:29:34 +0000278 if test -f ref.pdf ; then rm ref.pdf ; else true ; fi
Fred Drake04cf4dc1998-02-12 22:33:50 +0000279
280postscript-$(VERSION).tar.gz: $(PSFILES) ref/ref.ps
281 cp ref/ref.ps .
Fred Drakea7998351998-02-19 16:01:04 +0000282 tar cf - ???.ps | gzip -9 >$@
Fred Drake04cf4dc1998-02-12 22:33:50 +0000283 rm ref.ps
284
Guido van Rossum330c6601997-11-26 15:31:32 +0000285tarhtml:
Guido van Rossum84cca441997-11-25 20:49:09 +0000286 @echo "Did you remember to run makeMIFs.py in the ref subdirectory...?"
Fred Drakeb1cd7711998-03-04 16:49:36 +0000287 tar cf - index.html ???/???.css ???/*.html */*.gif \
Fred Drake95810e41998-01-13 17:18:57 +0000288 | gzip -9 >html-$(VERSION).tar.gz
Fred Drake33d05b91998-01-13 16:33:09 +0000289
Fred Drakea7998351998-02-19 16:01:04 +0000290# convenience targets:
291
Fred Drakee4837a11998-03-06 21:29:34 +0000292tarinfo: lib-info-$(VERSION).tar.gz
Fred Drakea7998351998-02-19 16:01:04 +0000293
Fred Drake04cf4dc1998-02-12 22:33:50 +0000294tarps: postscript-$(VERSION).tar.gz
Fred Drake33d05b91998-01-13 16:33:09 +0000295
Fred Drake04cf4dc1998-02-12 22:33:50 +0000296tarpdf: pdf-$(VERSION).tar.gz
297
Fred Drakee61d7af1998-03-05 16:37:34 +0000298tarlatex: latex-$(VERSION).tar.gz
299
Fred Drake2c954fa1998-03-07 19:59:45 +0000300tarballs: tarpdf tarps tarhtml tarlatex
Guido van Rossum84cca441997-11-25 20:49:09 +0000301
Guido van Rossume83e3801995-03-17 16:01:35 +0000302
303# Housekeeping targets
304
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000305# Remove temporary files; all except the following:
Fred Drake6659c301998-03-03 22:02:19 +0000306# - sources: .tex, .bib, .sty, *.cls
Fred Drake04cf4dc1998-02-12 22:33:50 +0000307# - useful results: .dvi, .pdf, .ps, .texi, .info
Fred Drakee4837a11998-03-06 21:29:34 +0000308clean:
Fred Drake6eab2fb1998-02-13 03:23:33 +0000309 rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.py[co]
Fred Drake4d3b2a21998-02-23 21:34:26 +0000310 rm -f *.bak *.orig lib1.texi *.out
Fred Drakee61d7af1998-03-05 16:37:34 +0000311 rm -f html-$(VERSION).tar.gz info-$(VERSION).tar.gz
312 rm -f pdf-$(VERSION).tar.gz postscript-$(VERSION).tar.gz
313 rm -f latex-$(VERSION).tar.gz
Guido van Rossum5b343731992-07-07 09:06:34 +0000314
Fred Drake03ff6f71997-08-22 18:18:54 +0000315l2hclean:
Fred Drake5de31fc1997-08-22 18:20:33 +0000316 rm -rf api ext lib tut
Fred Drake03ff6f71997-08-22 18:18:54 +0000317
Guido van Rossume83e3801995-03-17 16:01:35 +0000318# Remove temporaries as well as final products
Fred Drakee4837a11998-03-06 21:29:34 +0000319clobber: clean l2hclean
320 rm -f *.dvi *.pdf *.ps *.texi python-*.info python-*.info-[0-9]*
Fred Drake5ad78f31998-02-22 19:47:13 +0000321
322realclean: clobber
323distclean: clobber