blob: 34bd63209bf4dfe601b6733df30139085b674f73 [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#
Fred Drake6532b9b1999-04-22 14:16:14 +00006# This is a bit of a mess. The documents are identified by short names:
Fred Draked69e2c41998-05-11 18:25:46 +00007# api -- Python/C API Reference Manual
Fred Drake6532b9b1999-04-22 14:16:14 +00008# doc -- Documenting Python
Fred Draked69e2c41998-05-11 18:25:46 +00009# ext -- Extending and Embedding the Python Interpreter
10# lib -- Library Reference Manual
Fred Drake34116ba1998-07-24 15:42:12 +000011# mac -- Macintosh Library Modules
Fred Drakef2951131998-05-07 19:30:16 +000012# ref -- Python Reference Manual
Fred Draked69e2c41998-05-11 18:25:46 +000013# tut -- Python Tutorial
Greg Ward0862f802000-04-28 16:53:36 +000014# inst -- Installing Python Modules
15# dist -- Distributing Python Modules
Guido van Rossume83e3801995-03-17 16:01:35 +000016#
Fred Drake3a045e82001-01-22 20:47:26 +000017# The LaTeX sources for each of these documents are in subdirectories
Fred Drakef2951131998-05-07 19:30:16 +000018# with the three-letter designations above as the directory names.
Guido van Rossum1f175431996-10-22 20:00:02 +000019#
Fred Drake3a045e82001-01-22 20:47:26 +000020# The main target creates HTML for each of the documents. You can
21# also do "make lib" (etc.) to create the HTML versions of individual
22# documents.
Guido van Rossume83e3801995-03-17 16:01:35 +000023#
Fred Drakef2951131998-05-07 19:30:16 +000024# The document classes and styles are in the texinputs/ directory.
25# These define a number of macros that are similar in name and intent
26# as macros in Texinfo (e.g. \code{...} and \emph{...}), as well as a
Fred Drakeefc17bd1998-07-28 21:05:16 +000027# number of environments for formatting function and data definitions.
Fred Drake3a045e82001-01-22 20:47:26 +000028# Documentation for the macros is included in "Documenting Python"; see
29# http://www.python.org/doc/current/doc/doc.html, or the sources for
30# this document in the doc/ directory.
Guido van Rossume83e3801995-03-17 16:01:35 +000031#
Fred Draked69e2c41998-05-11 18:25:46 +000032# Everything is processed by LaTeX. See the file `README' for more
33# information on the tools needed for processing.
Guido van Rossume83e3801995-03-17 16:01:35 +000034#
35# There's a problem with generating the index which has been solved by
36# a sed command applied to the index file. The shell script fix_hack
37# does this (the Makefile takes care of calling it).
38#
Guido van Rossume83e3801995-03-17 16:01:35 +000039# Additional targets attempt to convert selected LaTeX sources to
40# various other formats. These are generally site specific because
41# the tools used are all but universal. These targets are:
Fred Drake34116ba1998-07-24 15:42:12 +000042#
Fred Drake3a045e82001-01-22 20:47:26 +000043# ps -- convert all documents from LaTeX to PostScript
44# pdf -- convert all documents from LaTeX to the
Fred Drakeefc17bd1998-07-28 21:05:16 +000045# Portable Document Format
Fred Drake34116ba1998-07-24 15:42:12 +000046#
Fred Drakeefc17bd1998-07-28 21:05:16 +000047# See the README file for more information on these targets.
Fred Draked69e2c41998-05-11 18:25:46 +000048#
49# The formatted output is located in subdirectories. For PDF and
50# PostScript, look in the paper-$(PAPER)/ directory. For HTML, look in
Fred Drake34116ba1998-07-24 15:42:12 +000051# the html/ directory. If you want to fix the GNU info process, look
Fred Drake9d843082003-07-30 02:55:28 +000052# in the info/ directory; please send patches to docs@python.org.
Guido van Rossume83e3801995-03-17 16:01:35 +000053
Fred Drake78430b62000-08-29 16:30:21 +000054# This Makefile only includes information on how to perform builds; for
55# dependency information, see Makefile.deps.
56
Fred Drake3a045e82001-01-22 20:47:26 +000057# Customization -- you *may* have to edit this
Guido van Rossume83e3801995-03-17 16:01:35 +000058
Fred Drake3a045e82001-01-22 20:47:26 +000059# You could set this to a4:
Fred Drakef2951131998-05-07 19:30:16 +000060PAPER=letter
61
Guido van Rossum73827c61995-03-20 13:00:32 +000062# Ideally, you shouldn't need to edit beyond this point
Guido van Rossum5b343731992-07-07 09:06:34 +000063
Fred Drakeeb7fe4f1998-08-12 17:08:37 +000064INFODIR= info
65TOOLSDIR= tools
66
Fred Drake860e2561999-07-12 16:52:50 +000067# This is the *documentation* release, and is used to construct the file
68# names of the downloadable tarballs.
Fred Drakeafc0d8e2003-07-30 18:43:28 +000069RELEASE=2.4a0
Fred Drake860e2561999-07-12 16:52:50 +000070
Fred Drakef6bfe8e2001-02-19 19:19:26 +000071PYTHON= python
72DVIPS= dvips -N0 -t $(PAPER)
73
Fred Drakee395e222003-09-27 05:52:16 +000074# This is ugly! The issue here is that there are two different levels
75# in the directory tree at which we execute mkhowto, so we can't
76# define it just once using a relative path (at least not with the
77# current implementation and Makefile structure). We use the GNUish
78# $(shell) function here to work around that restriction by
79# identifying mkhowto using an absolute path.
80#
81MKHOWTO= $(PYTHON) $(shell pwd)/tools/mkhowto
Fred Drakedf493242003-09-25 15:25:37 +000082
83MKDVI= $(MKHOWTO) --paper=$(PAPER) --dvi
84MKHTML= $(MKHOWTO) --html --about html/stdabout.dat \
Fred Drakeb1510d52002-10-30 17:07:02 +000085 --iconserver ../icons --favicon ../icons/pyfav.gif \
Fred Drakef6bfe8e2001-02-19 19:19:26 +000086 --address $(PYTHONDOCS) --up-link ../index.html \
87 --up-title "Python Documentation Index" \
Fred Drake345b8df2001-10-30 16:28:46 +000088 --global-module-index "../modindex.html" --dvips-safe
Fred Drakedf493242003-09-25 15:25:37 +000089MKISILOHTML=$(MKHOWTO) --html --about html/stdabout.dat \
Fred Drake15a159c2002-10-01 15:20:20 +000090 --iconserver ../icons \
Fred Drake345b8df2001-10-30 16:28:46 +000091 --l2h-init perl/isilo.perl --numeric --split 1 \
92 --dvips-safe
Fred Drake0c77cf12001-10-19 21:12:57 +000093MKISILO= iSilo386 -U -y -rCR -d0
Fred Drakedf493242003-09-25 15:25:37 +000094MKPDF= $(MKHOWTO) --paper=$(PAPER) --pdf
95MKPS= $(MKHOWTO) --paper=$(PAPER) --ps
Fred Drakef6bfe8e2001-02-19 19:19:26 +000096
97BUILDINDEX=$(TOOLSDIR)/buildindex.py
98
Fred Drake1385a572001-07-17 16:53:19 +000099PYTHONDOCS="See <i><a href=\"about.html\">About this document...</a></i> for information on suggesting changes."
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000100HTMLBASE= file:`pwd`
101
Fred Drakebfc18bd2002-05-03 04:50:51 +0000102# The emacs binary used to build the info docs. GNU Emacs 21 is required.
103EMACS= emacs
104
Fred Drake30140862002-03-26 19:53:56 +0000105# The end of this should reflect the major/minor version numbers of
106# the release:
Fred Drake90b20492003-07-30 19:14:54 +0000107WHATSNEW=whatsnew24
Fred Drake9ac14de2002-03-26 19:18:18 +0000108
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000109# what's what
110MANDVIFILES= paper-$(PAPER)/api.dvi paper-$(PAPER)/ext.dvi \
111 paper-$(PAPER)/lib.dvi paper-$(PAPER)/mac.dvi \
112 paper-$(PAPER)/ref.dvi paper-$(PAPER)/tut.dvi
113HOWTODVIFILES= paper-$(PAPER)/doc.dvi paper-$(PAPER)/inst.dvi \
Fred Drake9ac14de2002-03-26 19:18:18 +0000114 paper-$(PAPER)/dist.dvi paper-$(PAPER)/$(WHATSNEW).dvi
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000115
116MANPDFFILES= paper-$(PAPER)/api.pdf paper-$(PAPER)/ext.pdf \
117 paper-$(PAPER)/lib.pdf paper-$(PAPER)/mac.pdf \
118 paper-$(PAPER)/ref.pdf paper-$(PAPER)/tut.pdf
119HOWTOPDFFILES= paper-$(PAPER)/doc.pdf paper-$(PAPER)/inst.pdf \
Fred Drake9ac14de2002-03-26 19:18:18 +0000120 paper-$(PAPER)/dist.pdf paper-$(PAPER)/$(WHATSNEW).pdf
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000121
122MANPSFILES= paper-$(PAPER)/api.ps paper-$(PAPER)/ext.ps \
123 paper-$(PAPER)/lib.ps paper-$(PAPER)/mac.ps \
124 paper-$(PAPER)/ref.ps paper-$(PAPER)/tut.ps
125HOWTOPSFILES= paper-$(PAPER)/doc.ps paper-$(PAPER)/inst.ps \
Fred Drake9ac14de2002-03-26 19:18:18 +0000126 paper-$(PAPER)/dist.ps paper-$(PAPER)/$(WHATSNEW).ps
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000127
128DVIFILES= $(MANDVIFILES) $(HOWTODVIFILES)
129PDFFILES= $(MANPDFFILES) $(HOWTOPDFFILES)
130PSFILES= $(MANPSFILES) $(HOWTOPSFILES)
131
Fred Drake0099d8f2001-10-25 15:12:31 +0000132HTMLCSSFILES=html/api/api.css \
133 html/doc/doc.css \
134 html/ext/ext.css \
135 html/lib/lib.css \
136 html/mac/mac.css \
137 html/ref/ref.css \
138 html/tut/tut.css \
139 html/inst/inst.css \
140 html/dist/dist.css
141
142ISILOCSSFILES=isilo/api/api.css \
143 isilo/doc/doc.css \
144 isilo/ext/ext.css \
145 isilo/lib/lib.css \
146 isilo/mac/mac.css \
147 isilo/ref/ref.css \
148 isilo/tut/tut.css \
149 isilo/inst/inst.css \
150 isilo/dist/dist.css
151
152ALLCSSFILES=$(HTMLCSSFILES) $(ISILOCSSFILES)
153
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000154INDEXFILES=html/api/api.html \
155 html/doc/doc.html \
156 html/ext/ext.html \
157 html/lib/lib.html \
158 html/mac/mac.html \
159 html/ref/ref.html \
160 html/tut/tut.html \
161 html/inst/inst.html \
Fred Drake9ac14de2002-03-26 19:18:18 +0000162 html/dist/dist.html \
163 html/whatsnew/$(WHATSNEW).html
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000164
Fred Drake5afb5e52001-07-18 21:17:29 +0000165ALLHTMLFILES=$(INDEXFILES) html/index.html html/modindex.html html/acks.html
166
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000167COMMONPERL= perl/manual.perl perl/python.perl perl/l2hinit.perl
168
Fred Drake520b0092001-10-29 17:40:40 +0000169ANNOAPI=api/refcounts.dat tools/anno-api.py
170
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000171include Makefile.deps
Fred Drake33d05b91998-01-13 16:33:09 +0000172
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000173# These must be declared phony since there
174# are directories with matching names:
Greg Ward0862f802000-04-28 16:53:36 +0000175.PHONY: api doc ext lib mac ref tut inst dist
Fred Drake0c77cf12001-10-19 21:12:57 +0000176.PHONY: html info isilo
Fred Drake3f8a59f1998-07-24 13:58:27 +0000177
Fred Drakebbe33c51998-05-07 01:39:06 +0000178
Guido van Rossume83e3801995-03-17 16:01:35 +0000179# Main target
Fred Drake38d53452002-05-25 20:28:46 +0000180default: html
181all: html dvi ps pdf isilo
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000182
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000183dvi: $(DVIFILES)
184pdf: $(PDFFILES)
185ps: $(PSFILES)
Fred Drakee4837a11998-03-06 21:29:34 +0000186
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000187world: ps pdf html distfiles
Guido van Rossum20aca5a1991-01-25 13:29:04 +0000188
Fred Drakef2951131998-05-07 19:30:16 +0000189
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000190# Rules to build PostScript and PDF formats
191.SUFFIXES: .dvi .ps
192
193.dvi.ps:
194 $(DVIPS) -o $@ $<
Fred Draked69e2c41998-05-11 18:25:46 +0000195
196
197# Targets for each document:
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000198# Python/C API Reference Manual
Fred Drake520b0092001-10-29 17:40:40 +0000199paper-$(PAPER)/api.dvi: $(ANNOAPIFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000200 cd paper-$(PAPER) && $(MKDVI) api.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000201
Fred Drake520b0092001-10-29 17:40:40 +0000202paper-$(PAPER)/api.pdf: $(ANNOAPIFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000203 cd paper-$(PAPER) && $(MKPDF) api.tex
Fred Drake15087431999-03-16 16:11:27 +0000204
Fred Drake57b38ed2002-10-04 19:23:06 +0000205paper-$(PAPER)/api.tex: api/api.tex
206 cp api/api.tex $@
Fred Draked69e2c41998-05-11 18:25:46 +0000207
Fred Drake520b0092001-10-29 17:40:40 +0000208paper-$(PAPER)/abstract.tex: api/abstract.tex $(ANNOAPI)
209 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/abstract.tex
210
211paper-$(PAPER)/concrete.tex: api/concrete.tex $(ANNOAPI)
212 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/concrete.tex
213
214paper-$(PAPER)/exceptions.tex: api/exceptions.tex $(ANNOAPI)
215 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/exceptions.tex
216
217paper-$(PAPER)/init.tex: api/init.tex $(ANNOAPI)
218 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/init.tex
219
Fred Drake57b38ed2002-10-04 19:23:06 +0000220paper-$(PAPER)/intro.tex: api/intro.tex
221 cp api/intro.tex $@
Fred Drake520b0092001-10-29 17:40:40 +0000222
223paper-$(PAPER)/memory.tex: api/memory.tex $(ANNOAPI)
224 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/memory.tex
225
226paper-$(PAPER)/newtypes.tex: api/newtypes.tex $(ANNOAPI)
227 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/newtypes.tex
228
229paper-$(PAPER)/refcounting.tex: api/refcounting.tex $(ANNOAPI)
230 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/refcounting.tex
231
232paper-$(PAPER)/utilities.tex: api/utilities.tex $(ANNOAPI)
233 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/utilities.tex
234
235paper-$(PAPER)/veryhigh.tex: api/veryhigh.tex $(ANNOAPI)
236 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/veryhigh.tex
237
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000238# Distributing Python Modules
239paper-$(PAPER)/dist.dvi: $(DISTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000240 cd paper-$(PAPER) && $(MKDVI) ../dist/dist.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000241
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000242paper-$(PAPER)/dist.pdf: $(DISTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000243 cd paper-$(PAPER) && $(MKPDF) ../dist/dist.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000244
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000245# Documenting Python
246paper-$(PAPER)/doc.dvi: $(DOCFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000247 cd paper-$(PAPER) && $(MKDVI) ../doc/doc.tex
Fred Drake3f8a59f1998-07-24 13:58:27 +0000248
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000249paper-$(PAPER)/doc.pdf: $(DOCFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000250 cd paper-$(PAPER) && $(MKPDF) ../doc/doc.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000251
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000252# Extending and Embedding the Python Interpreter
253paper-$(PAPER)/ext.dvi: $(EXTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000254 cd paper-$(PAPER) && $(MKDVI) ../ext/ext.tex
Greg Ward0862f802000-04-28 16:53:36 +0000255
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000256paper-$(PAPER)/ext.pdf: $(EXTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000257 cd paper-$(PAPER) && $(MKPDF) ../ext/ext.tex
Greg Ward0862f802000-04-28 16:53:36 +0000258
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000259# Installing Python Modules
260paper-$(PAPER)/inst.dvi: $(INSTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000261 cd paper-$(PAPER) && $(MKDVI) ../inst/inst.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000262
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000263paper-$(PAPER)/inst.pdf: $(INSTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000264 cd paper-$(PAPER) && $(MKPDF) ../inst/inst.tex
Fred Drakef2951131998-05-07 19:30:16 +0000265
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000266# Python Library Reference
267paper-$(PAPER)/lib.dvi: $(LIBFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000268 cd paper-$(PAPER) && $(MKDVI) ../lib/lib.tex
Fred Drake15087431999-03-16 16:11:27 +0000269
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000270paper-$(PAPER)/lib.pdf: $(LIBFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000271 cd paper-$(PAPER) && $(MKPDF) ../lib/lib.tex
Fred Drakef2951131998-05-07 19:30:16 +0000272
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000273# Macintosh Library Modules
274paper-$(PAPER)/mac.dvi: $(MACFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000275 cd paper-$(PAPER) && $(MKDVI) ../mac/mac.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000276
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000277paper-$(PAPER)/mac.pdf: $(MACFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000278 cd paper-$(PAPER) && $(MKPDF) ../mac/mac.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000279
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000280# Python Reference Manual
281paper-$(PAPER)/ref.dvi: $(REFFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000282 cd paper-$(PAPER) && $(MKDVI) ../ref/ref.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000283
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000284paper-$(PAPER)/ref.pdf: $(REFFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000285 cd paper-$(PAPER) && $(MKPDF) ../ref/ref.tex
Fred Drakeddae4141998-02-17 15:45:25 +0000286
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000287# Python Tutorial
288paper-$(PAPER)/tut.dvi: $(TUTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000289 cd paper-$(PAPER) && $(MKDVI) ../tut/tut.tex
Greg Ward0862f802000-04-28 16:53:36 +0000290
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000291paper-$(PAPER)/tut.pdf: $(TUTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000292 cd paper-$(PAPER) && $(MKPDF) ../tut/tut.tex
Guido van Rossume83e3801995-03-17 16:01:35 +0000293
Fred Drake9ac14de2002-03-26 19:18:18 +0000294# What's New in Python X.Y
Fred Drake4add68b2002-11-26 22:13:41 +0000295paper-$(PAPER)/$(WHATSNEW).dvi: whatsnew/$(WHATSNEW).tex
Fred Drake9ac14de2002-03-26 19:18:18 +0000296 cd paper-$(PAPER) && $(MKDVI) ../whatsnew/$(WHATSNEW).tex
297
Fred Drake4add68b2002-11-26 22:13:41 +0000298paper-$(PAPER)/$(WHATSNEW).pdf: whatsnew/$(WHATSNEW).tex
Fred Drake9ac14de2002-03-26 19:18:18 +0000299 cd paper-$(PAPER) && $(MKPDF) ../whatsnew/$(WHATSNEW).tex
300
Guido van Rossume83e3801995-03-17 16:01:35 +0000301# The remaining part of the Makefile is concerned with various
Guido van Rossum73827c61995-03-20 13:00:32 +0000302# conversions, as described above. See also the README file.
Guido van Rossume83e3801995-03-17 16:01:35 +0000303
Fred Drakeb9838d91998-05-08 15:43:08 +0000304info:
Fred Drakefa00f912003-07-16 04:01:04 +0000305 cd $(INFODIR) && $(MAKE) EMACS=$(EMACS) WHATSNEW=$(WHATSNEW)
Fred Drake5ad78f31998-02-22 19:47:13 +0000306
Guido van Rossum73827c61995-03-20 13:00:32 +0000307# Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to
308# HTML converter. For more info on this program, see
Guido van Rossume83e3801995-03-17 16:01:35 +0000309# <URL:http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html>.
Guido van Rossume83e3801995-03-17 16:01:35 +0000310
Guido van Rossum9cb64801997-12-29 20:01:55 +0000311# Note that LaTeX2HTML inserts references to an icons directory in
312# each page that it generates. I have placed a copy of this directory
313# in the distribution to simplify the process of creating a
314# self-contained HTML distribution; for this purpose I have also added
315# a (trivial) index.html. Change the definition of $ICONSERVER in
Fred Drake9fab3aa1998-04-28 19:20:43 +0000316# perl/l2hinit.perl to use a different location for the icons directory.
Guido van Rossume83e3801995-03-17 16:01:35 +0000317
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000318# If you have the standard LaTeX2HTML icons installed, the versions shipped
319# with this documentation should be stored in a separate directory and used
320# instead. The standard set does *not* include all the icons used in the
321# Python documentation.
Fred Drakebbe33c51998-05-07 01:39:06 +0000322
Fred Drake0099d8f2001-10-25 15:12:31 +0000323$(ALLCSSFILES): html/style.css
324 cp $< $@
325
Fred Drake5af41c52003-05-22 15:28:55 +0000326$(INDEXFILES): $(COMMONPERL) html/stdabout.dat tools/node2label.pl
Guido van Rossum6938f061994-08-01 12:22:53 +0000327
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000328html/acks.html: ACKS $(TOOLSDIR)/support.py $(TOOLSDIR)/mkackshtml
Fred Drake1385a572001-07-17 16:53:19 +0000329 $(PYTHON) $(TOOLSDIR)/mkackshtml --address $(PYTHONDOCS) \
Fred Drakeb1510d52002-10-30 17:07:02 +0000330 --favicon icons/pyfav.gif \
Fred Draked27ed852001-02-22 23:06:21 +0000331 --output html/acks.html <ACKS
Guido van Rossum6938f061994-08-01 12:22:53 +0000332
Fred Drake1385a572001-07-17 16:53:19 +0000333
334# html/index.html is dependent on $(INDEXFILES) since we want the date
335# on the front index to be updated whenever any of the child documents
336# are updated and boilerplate.tex uses \today as the date. The index
337# files are not used to actually generate content.
338
339BOILERPLATE=texinputs/boilerplate.tex
340html/index.html: $(INDEXFILES)
341html/index.html: html/index.html.in $(BOILERPLATE) tools/rewrite.py
Fred Drake4e526fe2002-03-26 20:29:11 +0000342 $(PYTHON) tools/rewrite.py $(BOILERPLATE) \
343 RELEASE=$(RELEASE) WHATSNEW=$(WHATSNEW) \
Fred Drake1385a572001-07-17 16:53:19 +0000344 <$< >$@
345
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000346html/modindex.html: $(TOOLSDIR)/support.py $(TOOLSDIR)/mkmodindex
347html/modindex.html: html/lib/lib.html html/mac/mac.html
Fred Drake1385a572001-07-17 16:53:19 +0000348 cd html && \
349 $(PYTHON) ../$(TOOLSDIR)/mkmodindex --columns 4 \
350 --output modindex.html --address $(PYTHONDOCS) \
Fred Drakeb1510d52002-10-30 17:07:02 +0000351 --favicon icons/pyfav.gif \
Fred Drake1385a572001-07-17 16:53:19 +0000352 lib/modindex.html mac/modindex.html
Fred Drake7d5f5dd1999-03-18 19:08:47 +0000353
Fred Drake0099d8f2001-10-25 15:12:31 +0000354html: $(ALLHTMLFILES) $(HTMLCSSFILES)
Guido van Rossum970871f1993-02-21 20:10:26 +0000355
Fred Drake0099d8f2001-10-25 15:12:31 +0000356api: html/api/api.html html/api/api.css
Fred Drakedb2e3e32002-05-23 19:41:25 +0000357html/api/api.html: $(APIFILES) api/refcounts.dat
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000358 $(MKHTML) --dir html/api api/api.tex
Fred Drakea6bb3961998-05-06 19:51:39 +0000359
Fred Drake0099d8f2001-10-25 15:12:31 +0000360doc: html/doc/doc.html html/doc/doc.css
361html/doc/doc.html: $(DOCFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000362 $(MKHTML) --dir html/doc doc/doc.tex
Fred Drakecdbd3911998-05-15 17:02:10 +0000363
Fred Drake0099d8f2001-10-25 15:12:31 +0000364ext: html/ext/ext.html html/ext/ext.css
365html/ext/ext.html: $(EXTFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000366 $(MKHTML) --dir html/ext ext/ext.tex
Guido van Rossume83e3801995-03-17 16:01:35 +0000367
Fred Drake0099d8f2001-10-25 15:12:31 +0000368lib: html/lib/lib.html html/lib/lib.css
369html/lib/lib.html: $(LIBFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000370 $(MKHTML) --dir html/lib lib/lib.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000371
Fred Drake0099d8f2001-10-25 15:12:31 +0000372mac: html/mac/mac.html html/mac/mac.css
373html/mac/mac.html: $(MACFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000374 $(MKHTML) --dir html/mac mac/mac.tex
Greg Ward0862f802000-04-28 16:53:36 +0000375
Fred Drake0099d8f2001-10-25 15:12:31 +0000376ref: html/ref/ref.html html/ref/ref.css
377html/ref/ref.html: $(REFFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000378 $(MKHTML) --dir html/ref ref/ref.tex
Greg Ward0862f802000-04-28 16:53:36 +0000379
Fred Drake0099d8f2001-10-25 15:12:31 +0000380tut: html/tut/tut.html html/tut/tut.css
381html/tut/tut.html: $(TUTFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000382 $(MKHTML) --dir html/tut --numeric --split 3 tut/tut.tex
383
Fred Drake0099d8f2001-10-25 15:12:31 +0000384inst: html/inst/inst.html html/inst/inst.css
385html/inst/inst.html: $(INSTFILES) perl/distutils.perl
Fred Drake8c011582001-03-01 18:38:56 +0000386 $(MKHTML) --dir html/inst --split 4 inst/inst.tex
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000387
Fred Drake0099d8f2001-10-25 15:12:31 +0000388dist: html/dist/dist.html html/dist/dist.css
389html/dist/dist.html: $(DISTFILES) perl/distutils.perl
Fred Drake8c011582001-03-01 18:38:56 +0000390 $(MKHTML) --dir html/dist --split 4 dist/dist.tex
Fred Drakee7a8c972000-04-07 16:27:15 +0000391
Fred Drake9ac14de2002-03-26 19:18:18 +0000392whatsnew: html/whatsnew/$(WHATSNEW).html
393html/whatsnew/$(WHATSNEW).html: whatsnew/$(WHATSNEW).tex
394 $(MKHTML) --dir html/whatsnew --split 4 whatsnew/$(WHATSNEW).tex
395
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000396
Fred Drake0c77cf12001-10-19 21:12:57 +0000397# The iSilo format is used by the iSilo document reader for PalmOS devices.
398
399ISILOINDEXFILES=isilo/api/api.html \
400 isilo/doc/doc.html \
401 isilo/ext/ext.html \
402 isilo/lib/lib.html \
403 isilo/mac/mac.html \
404 isilo/ref/ref.html \
405 isilo/tut/tut.html \
406 isilo/inst/inst.html \
Fred Drake30140862002-03-26 19:53:56 +0000407 isilo/dist/dist.html \
408 isilo/whatsnew/$(WHATSNEW).html
Fred Drake0c77cf12001-10-19 21:12:57 +0000409
Fred Drake5af41c52003-05-22 15:28:55 +0000410$(ISILOINDEXFILES): $(COMMONPERL) html/stdabout.dat perl/isilo.perl
Fred Drake0c77cf12001-10-19 21:12:57 +0000411
Fred Drake1a0199a2002-08-09 20:20:50 +0000412isilo: isilo/python-api.pdb \
413 isilo/python-doc.pdb \
414 isilo/python-ext.pdb \
415 isilo/python-lib.pdb \
416 isilo/python-mac.pdb \
417 isilo/python-ref.pdb \
418 isilo/python-tut.pdb \
419 isilo/python-dist.pdb \
420 isilo/python-inst.pdb \
421 isilo/python-whatsnew.pdb
Fred Drake0c77cf12001-10-19 21:12:57 +0000422
Fred Drake1a0199a2002-08-09 20:20:50 +0000423isilo/python-api.pdb: isilo/api/api.html isilo/api/api.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000424 $(MKISILO) "-iPython/C API Reference Manual" \
425 isilo/api/api.html $@
426
Fred Drake1a0199a2002-08-09 20:20:50 +0000427isilo/python-doc.pdb: isilo/doc/doc.html isilo/doc/doc.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000428 $(MKISILO) "-iDocumenting Python" \
429 isilo/doc/doc.html $@
430
Fred Drake1a0199a2002-08-09 20:20:50 +0000431isilo/python-ext.pdb: isilo/ext/ext.html isilo/ext/ext.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000432 $(MKISILO) "-iExtending & Embedding Python" \
433 isilo/ext/ext.html $@
434
Fred Drake1a0199a2002-08-09 20:20:50 +0000435isilo/python-lib.pdb: isilo/lib/lib.html isilo/lib/lib.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000436 $(MKISILO) "-iPython Library Reference" \
437 isilo/lib/lib.html $@
438
Fred Drake1a0199a2002-08-09 20:20:50 +0000439isilo/python-mac.pdb: isilo/mac/mac.html isilo/mac/mac.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000440 $(MKISILO) "-iPython/C API Reference Manual" \
441 isilo/mac/mac.html $@
442
Fred Drake1a0199a2002-08-09 20:20:50 +0000443isilo/python-ref.pdb: isilo/ref/ref.html isilo/ref/ref.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000444 $(MKISILO) "-iPython Reference Manual" \
445 isilo/ref/ref.html $@
446
Fred Drake1a0199a2002-08-09 20:20:50 +0000447isilo/python-tut.pdb: isilo/tut/tut.html isilo/tut/tut.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000448 $(MKISILO) "-iPython Tutorial" \
449 isilo/tut/tut.html $@
450
Fred Drake1a0199a2002-08-09 20:20:50 +0000451isilo/python-dist.pdb: isilo/dist/dist.html isilo/dist/dist.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000452 $(MKISILO) "-iDistributing Python Modules" \
453 isilo/dist/dist.html $@
454
Fred Drake1a0199a2002-08-09 20:20:50 +0000455isilo/python-inst.pdb: isilo/inst/inst.html isilo/inst/inst.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000456 $(MKISILO) "-iInstalling Python Modules" \
457 isilo/inst/inst.html $@
458
Fred Drake1a0199a2002-08-09 20:20:50 +0000459isilo/python-whatsnew.pdb: isilo/whatsnew/$(WHATSNEW).html isilo/whatsnew/$(WHATSNEW).css
Fred Drake30140862002-03-26 19:53:56 +0000460 $(MKISILO) "-iWhat's New in Python X.Y" \
461 isilo/whatsnew/$(WHATSNEW).html $@
462
Fred Drakedb2e3e32002-05-23 19:41:25 +0000463isilo/api/api.html: $(APIFILES) api/refcounts.dat
Fred Drake0c77cf12001-10-19 21:12:57 +0000464 $(MKISILOHTML) --dir isilo/api api/api.tex
465
466isilo/doc/doc.html: $(DOCFILES)
467 $(MKISILOHTML) --dir isilo/doc doc/doc.tex
468
469isilo/ext/ext.html: $(EXTFILES)
470 $(MKISILOHTML) --dir isilo/ext ext/ext.tex
471
472isilo/lib/lib.html: $(LIBFILES)
473 $(MKISILOHTML) --dir isilo/lib lib/lib.tex
474
475isilo/mac/mac.html: $(MACFILES)
476 $(MKISILOHTML) --dir isilo/mac mac/mac.tex
477
478isilo/ref/ref.html: $(REFFILES)
479 $(MKISILOHTML) --dir isilo/ref ref/ref.tex
480
481isilo/tut/tut.html: $(TUTFILES)
482 $(MKISILOHTML) --dir isilo/tut tut/tut.tex
483
484isilo/inst/inst.html: $(INSTFILES) perl/distutils.perl
485 $(MKISILOHTML) --dir isilo/inst inst/inst.tex
486
487isilo/dist/dist.html: $(DISTFILES) perl/distutils.perl
488 $(MKISILOHTML) --dir isilo/dist dist/dist.tex
489
Fred Drake9ac14de2002-03-26 19:18:18 +0000490isilo/whatsnew/$(WHATSNEW).html: whatsnew/$(WHATSNEW).tex
491 $(MKISILOHTML) --dir isilo/whatsnew whatsnew/$(WHATSNEW).tex
492
Fred Drake0c77cf12001-10-19 21:12:57 +0000493# These are useful if you need to transport the iSilo-ready HTML to
494# another machine to perform the conversion:
495
496isilozip: isilo-html-$(RELEASE).zip
497
498isilo-html-$(RELEASE).zip: $(ISILOINDEXFILES)
499 rm -f $@
500 cd isilo && \
501 zip -q -9 ../$@ */*.css */*.html */*.txt
502
503
Fred Drakee4837a11998-03-06 21:29:34 +0000504# webchecker needs an extra flag to process the huge index from the libref
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000505WEBCHECKER=$(PYTHON) ../Tools/webchecker/webchecker.py
506HTMLBASE= file:`pwd`/html
507
Fred Drake5afb5e52001-07-18 21:17:29 +0000508webcheck: $(ALLHTMLFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000509 $(WEBCHECKER) $(HTMLBASE)/api/
510 $(WEBCHECKER) $(HTMLBASE)/doc/
511 $(WEBCHECKER) $(HTMLBASE)/ext/
512 $(WEBCHECKER) -m290000 $(HTMLBASE)/lib/
513 $(WEBCHECKER) $(HTMLBASE)/mac/
514 $(WEBCHECKER) $(HTMLBASE)/ref/
515 $(WEBCHECKER) $(HTMLBASE)/tut/
516 $(WEBCHECKER) $(HTMLBASE)/dist/
517 $(WEBCHECKER) $(HTMLBASE)/inst/
Fred Drake30140862002-03-26 19:53:56 +0000518 $(WEBCHECKER) $(HTMLBASE)/whatsnew/
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000519
Fred Drake5afb5e52001-07-18 21:17:29 +0000520fastwebcheck: $(ALLHTMLFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000521 $(WEBCHECKER) -x $(HTMLBASE)/api/
522 $(WEBCHECKER) -x $(HTMLBASE)/doc/
523 $(WEBCHECKER) -x $(HTMLBASE)/ext/
524 $(WEBCHECKER) -x -m290000 $(HTMLBASE)/lib/
525 $(WEBCHECKER) -x $(HTMLBASE)/mac/
526 $(WEBCHECKER) -x $(HTMLBASE)/ref/
527 $(WEBCHECKER) -x $(HTMLBASE)/tut/
528 $(WEBCHECKER) -x $(HTMLBASE)/dist/
529 $(WEBCHECKER) -x $(HTMLBASE)/inst/
Fred Drake30140862002-03-26 19:53:56 +0000530 $(WEBCHECKER) -x $(HTMLBASE)/whatsnew/
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000531
532
533# Release packaging targets:
Fred Drakee4837a11998-03-06 21:29:34 +0000534
Fred Drake5afb5e52001-07-18 21:17:29 +0000535paper-$(PAPER)/README: $(PSFILES) $(TOOLSDIR)/getpagecounts
Fred Drake3d0b6972002-04-17 03:31:08 +0000536 cd paper-$(PAPER) && ../$(TOOLSDIR)/getpagecounts -r $(RELEASE) >../$@
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000537
Fred Drakeb6584ca1999-01-08 15:49:45 +0000538info-$(RELEASE).tgz: info
Fred Drake1385a572001-07-17 16:53:19 +0000539 cd $(INFODIR) && tar cf - README python.dir python-*.info* \
Fred Drakede7cdb22003-07-17 11:55:18 +0000540 | gzip -9 >../$@
Fred Drakea7998351998-02-19 16:01:04 +0000541
Fred Drake4ef3ea01999-07-27 16:30:59 +0000542info-$(RELEASE).tar.bz2: info
Fred Drake1385a572001-07-17 16:53:19 +0000543 cd $(INFODIR) && tar cf - README python.dir python-*.info* \
Fred Drakede7cdb22003-07-17 11:55:18 +0000544 | bzip2 -9 >../$@
Fred Drake4ef3ea01999-07-27 16:30:59 +0000545
Fred Drakee34ab301998-05-11 21:10:15 +0000546latex-$(RELEASE).tgz:
Fred Drake1385a572001-07-17 16:53:19 +0000547 $(PYTHON) $(TOOLSDIR)/mksourcepkg --gzip $(RELEASE)
Fred Drakee61d7af1998-03-05 16:37:34 +0000548
Fred Drake4ef3ea01999-07-27 16:30:59 +0000549latex-$(RELEASE).tar.bz2:
Fred Drake1385a572001-07-17 16:53:19 +0000550 $(PYTHON) $(TOOLSDIR)/mksourcepkg --bzip2 $(RELEASE)
Fred Drake4ef3ea01999-07-27 16:30:59 +0000551
Fred Drake7dcc69a1999-07-23 16:11:36 +0000552latex-$(RELEASE).zip:
Fred Drake02ba6212000-04-04 20:58:25 +0000553 rm -f $@
Fred Drake1385a572001-07-17 16:53:19 +0000554 $(PYTHON) $(TOOLSDIR)/mksourcepkg --zip $(RELEASE)
Fred Drake7dcc69a1999-07-23 16:11:36 +0000555
Fred Drake5afb5e52001-07-18 21:17:29 +0000556pdf-$(PAPER)-$(RELEASE).tar: $(PDFFILES)
Fred Drake1a0199a2002-08-09 20:20:50 +0000557 rm -f $@
558 mkdir Python-Docs-$(RELEASE)
559 cp paper-$(PAPER)/*.pdf Python-Docs-$(RELEASE)
560 tar cf $@ Python-Docs-$(RELEASE)
561 rm -r Python-Docs-$(RELEASE)
Fred Drake04cf4dc1998-02-12 22:33:50 +0000562
Fred Drake5afb5e52001-07-18 21:17:29 +0000563pdf-$(PAPER)-$(RELEASE).tgz: pdf-$(PAPER)-$(RELEASE).tar
564 gzip -9 <$? >$@
565
566pdf-$(PAPER)-$(RELEASE).tar.bz2: pdf-$(PAPER)-$(RELEASE).tar
567 bzip2 -9 <$? >$@
Fred Drake4ef3ea01999-07-27 16:30:59 +0000568
Fred Drake7dcc69a1999-07-23 16:11:36 +0000569pdf-$(PAPER)-$(RELEASE).zip: pdf
Fred Drake02ba6212000-04-04 20:58:25 +0000570 rm -f $@
Fred Drake1a0199a2002-08-09 20:20:50 +0000571 mkdir Python-Docs-$(RELEASE)
572 cp paper-$(PAPER)/*.pdf Python-Docs-$(RELEASE)
573 zip -q -r -9 $@ Python-Docs-$(RELEASE)
574 rm -r Python-Docs-$(RELEASE)
Fred Drake7dcc69a1999-07-23 16:11:36 +0000575
Fred Drake5afb5e52001-07-18 21:17:29 +0000576postscript-$(PAPER)-$(RELEASE).tar: $(PSFILES) paper-$(PAPER)/README
Fred Drake1a0199a2002-08-09 20:20:50 +0000577 rm -f $@
578 mkdir Python-Docs-$(RELEASE)
579 cp paper-$(PAPER)/*.ps Python-Docs-$(RELEASE)
580 cp paper-$(PAPER)/README Python-Docs-$(RELEASE)
581 tar cf $@ Python-Docs-$(RELEASE)
582 rm -r Python-Docs-$(RELEASE)
Fred Drake04cf4dc1998-02-12 22:33:50 +0000583
Fred Drake5afb5e52001-07-18 21:17:29 +0000584postscript-$(PAPER)-$(RELEASE).tar.bz2: postscript-$(PAPER)-$(RELEASE).tar
585 bzip2 -9 <$< >$@
Fred Drake4ef3ea01999-07-27 16:30:59 +0000586
Fred Drake5afb5e52001-07-18 21:17:29 +0000587postscript-$(PAPER)-$(RELEASE).tgz: postscript-$(PAPER)-$(RELEASE).tar
588 gzip -9 <$< >$@
589
590postscript-$(PAPER)-$(RELEASE).zip: $(PSFILES) paper-$(PAPER)/README
Fred Drake02ba6212000-04-04 20:58:25 +0000591 rm -f $@
Fred Drake1a0199a2002-08-09 20:20:50 +0000592 mkdir Python-Docs-$(RELEASE)
593 cp paper-$(PAPER)/*.ps Python-Docs-$(RELEASE)
594 cp paper-$(PAPER)/README Python-Docs-$(RELEASE)
595 zip -q -r -9 $@ Python-Docs-$(RELEASE)
596 rm -r Python-Docs-$(RELEASE)
597
598HTMLPKGFILES=*.html */*.css */*.html */*.gif */*.txt
Fred Drake7dcc69a1999-07-23 16:11:36 +0000599
Fred Drake0099d8f2001-10-25 15:12:31 +0000600html-$(RELEASE).tar: $(ALLHTMLFILES) $(HTMLCSSFILES)
Fred Drake1a0199a2002-08-09 20:20:50 +0000601 mkdir Python-Docs-$(RELEASE)
602 cd html && tar cf ../temp.tar $(HTMLPKGFILES)
603 cd Python-Docs-$(RELEASE) && tar xf ../temp.tar
604 rm temp.tar
605 tar cf html-$(RELEASE).tar Python-Docs-$(RELEASE)
606 rm -r Python-Docs-$(RELEASE)
Fred Drake33d05b91998-01-13 16:33:09 +0000607
Fred Drake8f65aef2001-07-17 23:35:46 +0000608html-$(RELEASE).tgz: html-$(RELEASE).tar
Fred Drake5afb5e52001-07-18 21:17:29 +0000609 gzip -9 <$? >$@
Fred Drake8f65aef2001-07-17 23:35:46 +0000610
611html-$(RELEASE).tar.bz2: html-$(RELEASE).tar
Fred Drake5afb5e52001-07-18 21:17:29 +0000612 bzip2 -9 <$? >$@
Fred Drake4ef3ea01999-07-27 16:30:59 +0000613
Fred Drake0099d8f2001-10-25 15:12:31 +0000614html-$(RELEASE).zip: $(ALLHTMLFILES) $(HTMLCSSFILES)
Fred Drake02ba6212000-04-04 20:58:25 +0000615 rm -f $@
Fred Drake1a0199a2002-08-09 20:20:50 +0000616 mkdir Python-Docs-$(RELEASE)
617 cd html && tar cf ../temp.tar $(HTMLPKGFILES)
618 cd Python-Docs-$(RELEASE) && tar xf ../temp.tar
619 rm temp.tar
620 zip -q -r -9 $@ Python-Docs-$(RELEASE)
621 rm -r Python-Docs-$(RELEASE)
Fred Drake7dcc69a1999-07-23 16:11:36 +0000622
Fred Drake0c77cf12001-10-19 21:12:57 +0000623isilo-$(RELEASE).zip: isilo
Fred Drake1a0199a2002-08-09 20:20:50 +0000624 rm -f $@
625 mkdir Python-Docs-$(RELEASE)
626 cp isilo/python-*.pdb Python-Docs-$(RELEASE)
627 zip -q -r -9 $@ Python-Docs-$(RELEASE)
628 rm -r Python-Docs-$(RELEASE)
Fred Drake0c77cf12001-10-19 21:12:57 +0000629
630
Fred Drakea7998351998-02-19 16:01:04 +0000631# convenience targets:
632
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000633tarhtml: html-$(RELEASE).tgz
Fred Drakeb6584ca1999-01-08 15:49:45 +0000634tarinfo: info-$(RELEASE).tgz
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000635tarps: postscript-$(PAPER)-$(RELEASE).tgz
636tarpdf: pdf-$(PAPER)-$(RELEASE).tgz
637tarlatex: latex-$(RELEASE).tgz
Fred Drakebbe33c51998-05-07 01:39:06 +0000638
Fred Drake83c09831999-08-02 20:20:14 +0000639tarballs: tarpdf tarps tarhtml
Guido van Rossum84cca441997-11-25 20:49:09 +0000640
Fred Drake7dcc69a1999-07-23 16:11:36 +0000641ziphtml: html-$(RELEASE).zip
642zipps: postscript-$(PAPER)-$(RELEASE).zip
643zippdf: pdf-$(PAPER)-$(RELEASE).zip
644ziplatex: latex-$(RELEASE).zip
Fred Drake0c77cf12001-10-19 21:12:57 +0000645zipisilo: isilo-$(RELEASE).zip
Fred Drake7dcc69a1999-07-23 16:11:36 +0000646
Fred Drakeb906d2e2000-07-01 02:37:37 +0000647zips: zippdf zipps ziphtml
Fred Drake7dcc69a1999-07-23 16:11:36 +0000648
Fred Drake4ef3ea01999-07-27 16:30:59 +0000649bziphtml: html-$(RELEASE).tar.bz2
650bzipinfo: info-$(RELEASE).tar.bz2
651bzipps: postscript-$(PAPER)-$(RELEASE).tar.bz2
652bzippdf: pdf-$(PAPER)-$(RELEASE).tar.bz2
653bziplatex: latex-$(RELEASE).tar.bz2
654
Fred Drake83c09831999-08-02 20:20:14 +0000655bzips: bzippdf bzipps bziphtml
Fred Drake4ef3ea01999-07-27 16:30:59 +0000656
Fred Drakefc4ee0a2001-04-13 18:00:23 +0000657disthtml: tarhtml bziphtml ziphtml
658distinfo: tarinfo bzipinfo
659distps: tarps bzipps zipps
660distpdf: tarpdf bzippdf zippdf
661distlatex: tarlatex bziplatex ziplatex
662
Fred Drake5afb5e52001-07-18 21:17:29 +0000663paperdist: distpdf distps
Fred Drake0106e1d2003-07-17 15:29:16 +0000664edist: disthtml distinfo zipisilo
Fred Drake5afb5e52001-07-18 21:17:29 +0000665
Fred Drakede7cdb22003-07-17 11:55:18 +0000666pkglist:
667 $(TOOLSDIR)/mkpkglist >pkglist.html
668
Fred Drake5afb5e52001-07-18 21:17:29 +0000669distfiles: paperdist edist
Fred Drake88634602001-01-25 17:32:51 +0000670 $(TOOLSDIR)/mksourcepkg --all $(RELEASE)
Fred Drake444e4342003-04-23 15:04:52 +0000671 $(TOOLSDIR)/mkpkglist >pkglist.html
Fred Drake4ef3ea01999-07-27 16:30:59 +0000672
Guido van Rossume83e3801995-03-17 16:01:35 +0000673
674# Housekeeping targets
675
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000676# Remove temporary files; all except the following:
Fred Drake6659c301998-03-03 22:02:19 +0000677# - sources: .tex, .bib, .sty, *.cls
Fred Drake04cf4dc1998-02-12 22:33:50 +0000678# - useful results: .dvi, .pdf, .ps, .texi, .info
Fred Drakee4837a11998-03-06 21:29:34 +0000679clean:
Fred Drake8f65aef2001-07-17 23:35:46 +0000680 rm -f html-$(RELEASE).tar
Fred Drake1385a572001-07-17 16:53:19 +0000681 cd $(INFODIR) && $(MAKE) clean
Guido van Rossum5b343731992-07-07 09:06:34 +0000682
Guido van Rossume83e3801995-03-17 16:01:35 +0000683# Remove temporaries as well as final products
Fred Drakeb6584ca1999-01-08 15:49:45 +0000684clobber:
Fred Drake8f65aef2001-07-17 23:35:46 +0000685 rm -f html-$(RELEASE).tar
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000686 rm -f html-$(RELEASE).tgz info-$(RELEASE).tgz
687 rm -f pdf-$(RELEASE).tgz postscript-$(RELEASE).tgz
Fred Drake7dcc69a1999-07-23 16:11:36 +0000688 rm -f latex-$(RELEASE).tgz html-$(RELEASE).zip
689 rm -f pdf-$(RELEASE).zip postscript-$(RELEASE).zip
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000690 rm -f $(DVIFILES) $(PSFILES) $(PDFFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000691 cd $(INFODIR) && $(MAKE) clobber
Fred Drake210d3cc2002-02-04 19:49:29 +0000692 rm -f paper-$(PAPER)/*.tex paper-$(PAPER)/*.ind paper-$(PAPER)/*.idx
693 rm -f paper-$(PAPER)/*.l2h paper-$(PAPER)/*.how paper-$(PAPER)/README
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000694 rm -rf html/index.html html/modindex.html html/acks.html
695 rm -rf html/api/ html/doc/ html/ext/ html/lib/ html/mac/
696 rm -rf html/ref/ html/tut/ html/inst/ html/dist/
Fred Drake30140862002-03-26 19:53:56 +0000697 rm -rf html/whatsnew/
Fred Drake0c77cf12001-10-19 21:12:57 +0000698 rm -rf isilo/api/ isilo/doc/ isilo/ext/ isilo/lib/ isilo/mac/
699 rm -rf isilo/ref/ isilo/tut/ isilo/inst/ isilo/dist/
Fred Drake30140862002-03-26 19:53:56 +0000700 rm -rf isilo/whatsnew/
Fred Drake1a0199a2002-08-09 20:20:50 +0000701 rm -f isilo/python-*.pdb isilo-$(RELEASE).zip
Fred Drake5ad78f31998-02-22 19:47:13 +0000702
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000703realclean distclean: clobber