blob: edeede169078ab266add6eb6b5246296b93f5c68 [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
Fred Drake3af9f251998-04-24 21:07:22 +000051TEXINPUTS= .:$(srcdir):$(srcdir)/texinputs:
Fred Drake9fab3aa1998-04-28 19:20:43 +000052DVIPS= dvips -N0
Fred Drake126d8401998-02-04 19:54:40 +000053DISTILL= distill
Fred Drake9fab3aa1998-04-28 19:20:43 +000054KPSEWHICH= TEXINPUTS=$(TEXINPUTS) kpsewhich
Fred Drake3af9f251998-04-24 21:07:22 +000055MAKEINDEX= makeindex -s $(srcdir)/texinputs/myindex.ist
56L2H= TEXINPUTS=$(TEXINPUTS) latex2html -init_file $(L2HINIT)
Fred Drake0d27d081998-04-23 20:07:55 +000057L2HARGS=
Fred Drake3af9f251998-04-24 21:07:22 +000058L2HINIT= $(srcdir)/perl/l2hinit.perl
59WEBCHECKER= $(PYTHON) $(srcdir)/../Tools/webchecker/webchecker.py
Guido van Rossum73827c61995-03-20 13:00:32 +000060
61# Install destination -- not used now but might be useful some time...
62DESTDIR= /usr/local
63LIBDESTDIR= $DESTDIR/lib
Fred Drakee4837a11998-03-06 21:29:34 +000064LIBDEST= $LIBDESTDIR/python$(VERSION)
Guido van Rossum73827c61995-03-20 13:00:32 +000065DOCDESTDIR= $LIBDEST/doc
66
Fred Drake05dd3c01997-12-29 17:17:54 +000067# This is only used for .info generation:
68EMACS= emacs
69PYTHON= python
70MAKEINFO= makeinfo
Fred Drake3af9f251998-04-24 21:07:22 +000071PARTPARSE= $(PYTHON) $(srcdir)/tools/partparse.py
72
73srcdir=.
74VPATH=.
Fred Drake05dd3c01997-12-29 17:17:54 +000075
Guido van Rossum73827c61995-03-20 13:00:32 +000076# Ideally, you shouldn't need to edit beyond this point
Guido van Rossum5b343731992-07-07 09:06:34 +000077
Fred Drakef5013f11998-04-13 21:02:49 +000078RELEASE=1.5.1
Fred Drake33d05b91998-01-13 16:33:09 +000079VERSION=1.5
80
Fred Drake04cf4dc1998-02-12 22:33:50 +000081DVIFILES= api.dvi ext.dvi lib.dvi tut.dvi
Fred Drakea7998351998-02-19 16:01:04 +000082INFOFILES= python-lib.info
Fred Drake04cf4dc1998-02-12 22:33:50 +000083PDFFILES= api.pdf ext.pdf lib.pdf tut.pdf
84PSFILES= api.ps ext.ps lib.ps tut.ps
85
Fred Drake3af9f251998-04-24 21:07:22 +000086MANSTYLES=$(srcdir)/texinputs/fncychap.sty $(srcdir)/texinputs/manual.cls \
87 $(srcdir)/texinputs/python.sty $(srcdir)/texinputs/myindex.ist
Fred Drakee4837a11998-03-06 21:29:34 +000088
Guido van Rossume83e3801995-03-17 16:01:35 +000089# Main target
Guido van Rossumeb8d5031996-08-09 21:46:05 +000090all: all-ps
91
Fred Drake2c954fa1998-03-07 19:59:45 +000092world: all-ps all-pdf l2h tarballs
Fred Drakee4837a11998-03-06 21:29:34 +000093
Fred Drake04cf4dc1998-02-12 22:33:50 +000094all-dvi: $(DVIFILES)
95all-pdf: $(PDFFILES)
96all-ps: $(PSFILES)
Guido van Rossum20aca5a1991-01-25 13:29:04 +000097
Fred Drake5fd242b1998-02-17 18:20:30 +000098# This target gets both the PDF and PS files updated; the all-pdf target
99# above doesn't ensure that both are done if the "alternate" rule (using
100# pdflatex) for PDF generation is used.
Fred Drakeddae4141998-02-17 15:45:25 +0000101#
102all-formats: $(PSFILES) $(PDFFILES)
103
Guido van Rossume83e3801995-03-17 16:01:35 +0000104# Individual document fake targets
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000105tut: tut.ps
106lib: lib.ps
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000107ext: ext.ps
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000108api: api.ps
Guido van Rossume83e3801995-03-17 16:01:35 +0000109
Fred Drakedd946761998-02-18 16:02:14 +0000110# All formats for a single document
111api-all: api.dvi api.pdf api.ps l2hapi
112ext-all: ext.dvi ext.pdf ext.ps l2hext
113lib-all: lib.dvi lib.pdf lib.ps l2hlib
114tut-all: tut.dvi tut.pdf tut.ps l2htut
115
116
Fred Drake126d8401998-02-04 19:54:40 +0000117# Rules to build PostScript and PDF formats
Fred Drake5ad78f31998-02-22 19:47:13 +0000118.SUFFIXES: .dvi .ps .pdf .tex
Fred Drake126d8401998-02-04 19:54:40 +0000119
120.dvi.ps:
Fred Drake9fab3aa1998-04-28 19:20:43 +0000121 $(DVIPS) -o $@ $<
Fred Drake126d8401998-02-04 19:54:40 +0000122
Fred Drakeddae4141998-02-17 15:45:25 +0000123#.ps.pdf:
124# $(DISTILL) $<
Fred Drake126d8401998-02-04 19:54:40 +0000125
Fred Drake3b26eed1998-02-16 17:06:10 +0000126# An alternate formulation of PDF creation; requires latex format with
127# pdftex. To use this instead of the Acrobat distiller solution, comment
128# out the above .ps.pdf rule and uncomment this rule. This was tested
129# using a pre-release of the teTeX distribution. See
130# http://www.tug.org/tetex/ for more information on getting & using teTeX.
131# This rule avoids creation of the intermediate PostScript files and uses
132# only free software.
133#
Fred Drake3af9f251998-04-24 21:07:22 +0000134$(PDFFILES): $(srcdir)/tools/toc2bkm.py
135.dvi.pdf:
Fred Drake396a7cf1998-03-17 06:22:12 +0000136 $(PDFLATEX) $*
Fred Drake3af9f251998-04-24 21:07:22 +0000137 $(PYTHON) $(srcdir)/tools/toc2bkm.py $*
Fred Drakeddae4141998-02-17 15:45:25 +0000138 $(PDFLATEX) $*
Fred Drake3b26eed1998-02-16 17:06:10 +0000139
Guido van Rossume83e3801995-03-17 16:01:35 +0000140# Dependencies
Fred Drakee4837a11998-03-06 21:29:34 +0000141COMMONTEX=$(MANSTYLES) copyright.tex boilerplate.tex
142COMMONPERL=perl/manual.perl perl/python.perl
Fred Drake5d8f0ed1998-02-11 14:43:38 +0000143
Fred Drakee4837a11998-03-06 21:29:34 +0000144$(DVIFILES): tools/fix_hack $(COMMONTEX)
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000145
Guido van Rossum16d6e711994-08-08 12:30:22 +0000146# LaTeX source files for the Python Library Reference
147LIBFILES = lib.tex \
Guido van Rossum40006cf1996-08-19 22:58:03 +0000148 libintro.tex libobjs.tex libtypes.tex libexcs.tex libfuncs.tex \
149 libpython.tex libsys.tex libtypes2.tex libtraceback.tex libpickle.tex \
150 libshelve.tex libcopy.tex libmarshal.tex libimp.tex libparser.tex \
151 libbltin.tex libmain.tex libstrings.tex libstring.tex libregex.tex \
152 libregsub.tex libstruct.tex libmisc.tex libmath.tex librand.tex \
153 libwhrandom.tex libarray.tex liballos.tex libos.tex libtime.tex \
154 libgetopt.tex libtempfile.tex liberrno.tex libsomeos.tex libsignal.tex \
155 libsocket.tex libselect.tex libthread.tex libunix.tex libposix.tex \
156 libppath.tex libpwd.tex libgrp.tex libcrypt.tex libdbm.tex libgdbm.tex \
157 libtermios.tex libfcntl.tex libposixfile.tex libsyslog.tex libpdb.tex \
158 libprofile.tex libwww.tex libcgi.tex liburllib.tex libhttplib.tex \
159 libftplib.tex libgopherlib.tex libnntplib.tex liburlparse.tex \
160 libhtmllib.tex libsgmllib.tex librfc822.tex libmimetools.tex \
161 libbinascii.tex libmm.tex libaudioop.tex libimageop.tex libaifc.tex \
162 libjpeg.tex librgbimg.tex libcrypto.tex libmd5.tex libmpz.tex \
Fred Drakebdbdb801998-04-17 14:01:44 +0000163 librotor.tex libstdwin.tex libsgi.tex libal.tex \
Guido van Rossum40006cf1996-08-19 22:58:03 +0000164 libcd.tex libfl.tex libfm.tex libgl.tex libimgfile.tex libsun.tex \
Guido van Rossuma80c3981996-10-22 01:12:13 +0000165 libxdrlib.tex libimghdr.tex \
166 librestricted.tex librexec.tex libbastion.tex \
Guido van Rossum3dd68d31996-12-31 02:24:54 +0000167 libformatter.tex liboperator.tex libsoundex.tex libresource.tex \
Guido van Rossum7f3b0421997-03-27 14:56:18 +0000168 libstat.tex libstrio.tex libundoc.tex libmailcap.tex libglob.tex \
Guido van Rossume76b7a81997-04-27 21:25:52 +0000169 libuser.tex libanydbm.tex librandom.tex libsite.tex libwhichdb.tex \
Guido van Rossum41c302f1997-06-02 17:36:12 +0000170 libbase64.tex libfnmatch.tex libquopri.tex libzlib.tex libsocksvr.tex \
Fred Drake18600a41997-07-18 20:43:27 +0000171 libmailbox.tex libcommands.tex libcmath.tex libni.tex libgzip.tex \
Fred Drakebdbdb801998-04-17 14:01:44 +0000172 libpprint.tex libcode.tex libmimify.tex libre.tex \
Guido van Rossum9cb64801997-12-29 20:01:55 +0000173 libuserdict.tex libdis.tex libxmllib.tex libqueue.tex \
Fred Drake8ff4b8b1998-02-18 17:19:53 +0000174 liblocale.tex libbasehttp.tex libcopyreg.tex libsymbol.tex libtoken.tex \
Fred Drakeea2f2b91998-04-04 04:21:45 +0000175 libframework.tex libminiae.tex libbinhex.tex libuu.tex libsunaudio.tex \
Fred Drake9fab3aa1998-04-28 19:20:43 +0000176 libfileinput.tex libimaplib.tex libpoplib.tex libcalendar.tex \
177 libpopen2.tex libbisect.tex
Guido van Rossum16d6e711994-08-08 12:30:22 +0000178
Fred Drakebdbdb801998-04-17 14:01:44 +0000179MACLIBFILES = mac.tex libmac.tex libctb.tex libmacconsole.tex \
180 libmacdnr.tex libmacfs.tex libmacos.tex libmacostools.tex \
181 libmactcp.tex libmacspeech.tex libmacui.tex libmacic.tex
182
Guido van Rossume83e3801995-03-17 16:01:35 +0000183# Library document
Fred Drake520f8bd1998-03-09 16:43:54 +0000184lib.dvi: tools/indfix.py $(LIBFILES)
Fred Drake3af9f251998-04-24 21:07:22 +0000185 $(srcdir)/tools/newind.py >$*.ind
186 $(srcdir)/tools/newind.py modindex >mod$*.ind
Fred Drake5ad78f31998-02-22 19:47:13 +0000187 $(LATEX) $*
Fred Drake8bc96571998-03-09 16:37:52 +0000188 $(MAKEINDEX) mod$*.idx
Fred Drake3af9f251998-04-24 21:07:22 +0000189 $(srcdir)/tools/fix_hack $*.idx
Fred Drake5ad78f31998-02-22 19:47:13 +0000190 $(MAKEINDEX) $*.idx
Fred Drake3af9f251998-04-24 21:07:22 +0000191 $(srcdir)/tools/indfix.py $*.ind
Fred Drake5ad78f31998-02-22 19:47:13 +0000192 $(LATEX) $*
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000193
Fred Drake5ad78f31998-02-22 19:47:13 +0000194# Tutorial document
195tut.dvi: tut.tex
196 $(LATEX) $*
197 $(LATEX) $*
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000198
Fred Drake5ad78f31998-02-22 19:47:13 +0000199# Extending & Embedding, Python/C API documents.
200# Done this way to avoid repeated command sets.
201.tex.dvi:
Fred Drake3af9f251998-04-24 21:07:22 +0000202 $(srcdir)/tools/newind.py >$*.ind
Fred Drake5ad78f31998-02-22 19:47:13 +0000203 $(LATEX) $*
Fred Drake3af9f251998-04-24 21:07:22 +0000204 $(srcdir)/tools/fix_hack $*.idx
Fred Drake5ad78f31998-02-22 19:47:13 +0000205 $(MAKEINDEX) $*.idx
206 $(LATEX) $*
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000207
Guido van Rossume83e3801995-03-17 16:01:35 +0000208
209# The remaining part of the Makefile is concerned with various
Guido van Rossum73827c61995-03-20 13:00:32 +0000210# conversions, as described above. See also the README file.
Guido van Rossume83e3801995-03-17 16:01:35 +0000211
Fred Drake5ad78f31998-02-22 19:47:13 +0000212.PRECIOUS: python-lib.texi
Fred Drake05dd3c01997-12-29 17:17:54 +0000213
Fred Drake3d913ad1997-12-29 21:31:23 +0000214# The sed script in this target fixes a really nasty little condition in
215# libcgi.tex where \e has to be used in a group to get the right behavior,
Fred Drake5ad78f31998-02-22 19:47:13 +0000216# and makeinfo can't handle a group without a leading @command. But at
217# least the info file gets generated.
Fred Drake3d913ad1997-12-29 21:31:23 +0000218
Fred Drakebdbdb801998-04-17 14:01:44 +0000219lib1.texi: $(LIBFILES) texipre.dat texipost.dat tools/partparse.py
Fred Drakee4837a11998-03-06 21:29:34 +0000220 $(PARTPARSE) -o $@ `tools/whichlibs`
Fred Drakea7998351998-02-19 16:01:04 +0000221 sed 's/"{\\}n{\\}n/"\\n\\n/' $@ >temp.texi
222 mv temp.texi $@
Fred Drake05dd3c01997-12-29 17:17:54 +0000223
Fred Drakee4837a11998-03-06 21:29:34 +0000224python-lib.texi: lib1.texi tools/fix.el
Fred Drakea7998351998-02-19 16:01:04 +0000225 cp lib1.texi temp.texi
Fred Drakee4837a11998-03-06 21:29:34 +0000226 $(EMACS) -batch -l tools/fix.el -f save-buffer -kill
Fred Drakea7998351998-02-19 16:01:04 +0000227 mv temp.texi $@
Fred Drake05dd3c01997-12-29 17:17:54 +0000228
Fred Drake5ad78f31998-02-22 19:47:13 +0000229python-lib.info: python-lib.texi
Fred Drakef7f2e701998-02-19 21:40:51 +0000230 $(MAKEINFO) --footnote-style end --fill-column 72 \
Fred Drake9fab3aa1998-04-28 19:20:43 +0000231 --paragraph-indent 0 $<
Fred Drake05dd3c01997-12-29 17:17:54 +0000232
Fred Drake13704a81997-12-29 22:04:44 +0000233# this is needed to prevent a second set of info files from being generated,
234# at least when using GNU make
Fred Drake5ad78f31998-02-22 19:47:13 +0000235.PHONY: lib.info lib.texi
Fred Drake13704a81997-12-29 22:04:44 +0000236
Fred Drake05dd3c01997-12-29 17:17:54 +0000237lib.info: python-lib.info
238
Fred Drake5ad78f31998-02-22 19:47:13 +0000239lib.texi: python-lib.texi
240
Guido van Rossum73827c61995-03-20 13:00:32 +0000241# Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to
242# HTML converter. For more info on this program, see
Guido van Rossume83e3801995-03-17 16:01:35 +0000243# <URL:http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html>.
Guido van Rossume83e3801995-03-17 16:01:35 +0000244
Guido van Rossum9cb64801997-12-29 20:01:55 +0000245# Note that LaTeX2HTML inserts references to an icons directory in
246# each page that it generates. I have placed a copy of this directory
247# in the distribution to simplify the process of creating a
248# self-contained HTML distribution; for this purpose I have also added
249# a (trivial) index.html. Change the definition of $ICONSERVER in
Fred Drake9fab3aa1998-04-28 19:20:43 +0000250# perl/l2hinit.perl to use a different location for the icons directory.
Guido van Rossume83e3801995-03-17 16:01:35 +0000251
Fred Drakeddae4141998-02-17 15:45:25 +0000252l2h: l2hapi l2hext l2hlib l2htut
Guido van Rossum6938f061994-08-01 12:22:53 +0000253
Fred Drake9fab3aa1998-04-28 19:20:43 +0000254l2hapi: $(COMMONPERL)
255 $(L2H) $(L2HARGS) api.tex
256 (cd api; ../tools/node2label.pl *.html)
Guido van Rossum6938f061994-08-01 12:22:53 +0000257
Fred Drake9fab3aa1998-04-28 19:20:43 +0000258l2hext: $(COMMONPERL)
Guido van Rossum6938f061994-08-01 12:22:53 +0000259 $(L2H) $(L2HARGS) ext.tex
Fred Drakee4837a11998-03-06 21:29:34 +0000260 (cd ext; ../tools/node2label.pl *.html)
Guido van Rossum970871f1993-02-21 20:10:26 +0000261
Fred Drake9fab3aa1998-04-28 19:20:43 +0000262l2hlib: $(COMMONPERL)
263 $(srcdir)/tools/fix_libaux.sed <`$(KPSEWHICH) lib.aux` >lib1.aux
264 mv lib1.aux `$(KPSEWHICH) lib.aux`
Fred Drakee4837a11998-03-06 21:29:34 +0000265 if test -d lib ; then rm -f lib/*.html ; fi
Guido van Rossume83e3801995-03-17 16:01:35 +0000266 $(L2H) $(L2HARGS) lib.tex
Fred Drakee4837a11998-03-06 21:29:34 +0000267 (cd lib; ../tools/node2label.pl *.html)
Guido van Rossume83e3801995-03-17 16:01:35 +0000268
Fred Drake9fab3aa1998-04-28 19:20:43 +0000269l2htut: $(COMMONPERL)
270 $(L2H) $(L2HARGS) tut.tex
271 (cd tut; ../tools/node2label.pl *.html)
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000272
Fred Drakee4837a11998-03-06 21:29:34 +0000273# webchecker needs an extra flag to process the huge index from the libref
274webcheck:
275 $(WEBCHECKER) file:`pwd`/api/
276 $(WEBCHECKER) file:`pwd`/ext/
277 $(WEBCHECKER) -m290000 file:`pwd`/lib/
278 $(WEBCHECKER) file:`pwd`/tut/
279
Fred Drakef5013f11998-04-13 21:02:49 +0000280lib-info-$(RELEASE).tar.gz: $(INFOFILES)
Fred Drakea7998351998-02-19 16:01:04 +0000281 tar cf - python-???.info* | gzip -9 >$@
282
Fred Drakef5013f11998-04-13 21:02:49 +0000283latex-$(RELEASE).tar.gz:
Fred Drake9fab3aa1998-04-28 19:20:43 +0000284 $(srcdir)/tools/mktarball.sh
Fred Drakee61d7af1998-03-05 16:37:34 +0000285
Fred Drakeb1cd7711998-03-04 16:49:36 +0000286# This snags a PDF version if available, but doesn't fail if not.
Fred Drakef5013f11998-04-13 21:02:49 +0000287pdf-$(RELEASE).tar.gz: $(PDFFILES)
Fred Drake9fab3aa1998-04-28 19:20:43 +0000288 if test -f $(srcdir)/ref/ref.pdf ; then \
289 cp $(srcdir)/ref/ref.pdf . ; else true ; fi
Fred Drakea7998351998-02-19 16:01:04 +0000290 tar cf - ???.pdf | gzip -9 >$@
Fred Drakee4837a11998-03-06 21:29:34 +0000291 if test -f ref.pdf ; then rm ref.pdf ; else true ; fi
Fred Drake04cf4dc1998-02-12 22:33:50 +0000292
Fred Drakef5013f11998-04-13 21:02:49 +0000293postscript-$(RELEASE).tar.gz: $(PSFILES) ref/ref.ps
Fred Drake9fab3aa1998-04-28 19:20:43 +0000294 cp $(srcdir)/ref/ref.ps .
Fred Drakea7998351998-02-19 16:01:04 +0000295 tar cf - ???.ps | gzip -9 >$@
Fred Drake04cf4dc1998-02-12 22:33:50 +0000296 rm ref.ps
297
Guido van Rossum330c6601997-11-26 15:31:32 +0000298tarhtml:
Guido van Rossum84cca441997-11-25 20:49:09 +0000299 @echo "Did you remember to run makeMIFs.py in the ref subdirectory...?"
Fred Drakeb1cd7711998-03-04 16:49:36 +0000300 tar cf - index.html ???/???.css ???/*.html */*.gif \
Fred Drakef5013f11998-04-13 21:02:49 +0000301 | gzip -9 >html-$(RELEASE).tar.gz
Fred Drake33d05b91998-01-13 16:33:09 +0000302
Fred Drakea7998351998-02-19 16:01:04 +0000303# convenience targets:
304
Fred Drakef5013f11998-04-13 21:02:49 +0000305tarinfo: lib-info-$(RELEASE).tar.gz
Fred Drakea7998351998-02-19 16:01:04 +0000306
Fred Drakef5013f11998-04-13 21:02:49 +0000307tarps: postscript-$(RELEASE).tar.gz
Fred Drake33d05b91998-01-13 16:33:09 +0000308
Fred Drakef5013f11998-04-13 21:02:49 +0000309tarpdf: pdf-$(RELEASE).tar.gz
Fred Drake04cf4dc1998-02-12 22:33:50 +0000310
Fred Drakef5013f11998-04-13 21:02:49 +0000311tarlatex: latex-$(RELEASE).tar.gz
Fred Drakee61d7af1998-03-05 16:37:34 +0000312
Fred Drake2c954fa1998-03-07 19:59:45 +0000313tarballs: tarpdf tarps tarhtml tarlatex
Guido van Rossum84cca441997-11-25 20:49:09 +0000314
Guido van Rossume83e3801995-03-17 16:01:35 +0000315
316# Housekeeping targets
317
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000318# Remove temporary files; all except the following:
Fred Drake6659c301998-03-03 22:02:19 +0000319# - sources: .tex, .bib, .sty, *.cls
Fred Drake04cf4dc1998-02-12 22:33:50 +0000320# - useful results: .dvi, .pdf, .ps, .texi, .info
Fred Drakee4837a11998-03-06 21:29:34 +0000321clean:
Fred Drake6eab2fb1998-02-13 03:23:33 +0000322 rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.py[co]
Fred Drake23916e71998-04-25 04:15:56 +0000323 rm -f *.bak *.orig lib1.texi *.out @webchecker.pickle *.bkm
Fred Drakef5013f11998-04-13 21:02:49 +0000324 rm -f html-$(RELEASE).tar.gz info-$(RELEASE).tar.gz
325 rm -f pdf-$(RELEASE).tar.gz postscript-$(RELEASE).tar.gz
326 rm -f latex-$(RELEASE).tar.gz
Guido van Rossum5b343731992-07-07 09:06:34 +0000327
Fred Drake03ff6f71997-08-22 18:18:54 +0000328l2hclean:
Fred Drake5de31fc1997-08-22 18:20:33 +0000329 rm -rf api ext lib tut
Fred Drake03ff6f71997-08-22 18:18:54 +0000330
Guido van Rossume83e3801995-03-17 16:01:35 +0000331# Remove temporaries as well as final products
Fred Drakee4837a11998-03-06 21:29:34 +0000332clobber: clean l2hclean
Fred Drake9fab3aa1998-04-28 19:20:43 +0000333 rm -f $(DVIFILES) $(PSFILES) $(PDFFILES)
334 rm -f *.texi python-???.info python-???.info-[0-9]*
Fred Drake5ad78f31998-02-22 19:47:13 +0000335
336realclean: clobber
337distclean: clobber