blob: 647d33f65d3d30ea5f2dade4bff18c218db683f0 [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 Drakeeb7fe4f1998-08-12 17:08:37 +000052# in the info/ directory; please send patches to python-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 Drake3e2244c2003-06-29 02:17:28 +000069RELEASE=2.3b2
Fred Drake860e2561999-07-12 16:52:50 +000070
Fred Drakef6bfe8e2001-02-19 19:19:26 +000071PYTHON= python
72DVIPS= dvips -N0 -t $(PAPER)
73
Fred Drake1385a572001-07-17 16:53:19 +000074MKDVI= $(PYTHON) ../tools/mkhowto --paper=$(PAPER) --dvi
75MKHTML= $(PYTHON) tools/mkhowto --html --about html/stdabout.dat \
Fred Drakeb1510d52002-10-30 17:07:02 +000076 --iconserver ../icons --favicon ../icons/pyfav.gif \
Fred Drakef6bfe8e2001-02-19 19:19:26 +000077 --address $(PYTHONDOCS) --up-link ../index.html \
78 --up-title "Python Documentation Index" \
Fred Drake345b8df2001-10-30 16:28:46 +000079 --global-module-index "../modindex.html" --dvips-safe
Fred Drake0c77cf12001-10-19 21:12:57 +000080MKISILOHTML=$(PYTHON) tools/mkhowto --html --about html/stdabout.dat \
Fred Drake15a159c2002-10-01 15:20:20 +000081 --iconserver ../icons \
Fred Drake345b8df2001-10-30 16:28:46 +000082 --l2h-init perl/isilo.perl --numeric --split 1 \
83 --dvips-safe
Fred Drake0c77cf12001-10-19 21:12:57 +000084MKISILO= iSilo386 -U -y -rCR -d0
Fred Drake1385a572001-07-17 16:53:19 +000085MKPDF= $(PYTHON) ../tools/mkhowto --paper=$(PAPER) --pdf
86MKPS= $(PYTHON) ../tools/mkhowto --paper=$(PAPER) --ps
Fred Drakef6bfe8e2001-02-19 19:19:26 +000087
88BUILDINDEX=$(TOOLSDIR)/buildindex.py
89
Fred Drake1385a572001-07-17 16:53:19 +000090PYTHONDOCS="See <i><a href=\"about.html\">About this document...</a></i> for information on suggesting changes."
Fred Drakef6bfe8e2001-02-19 19:19:26 +000091HTMLBASE= file:`pwd`
92
Fred Drakebfc18bd2002-05-03 04:50:51 +000093# The emacs binary used to build the info docs. GNU Emacs 21 is required.
94EMACS= emacs
95
Fred Drake30140862002-03-26 19:53:56 +000096# The end of this should reflect the major/minor version numbers of
97# the release:
Fred Drake9ac14de2002-03-26 19:18:18 +000098WHATSNEW=whatsnew23
99
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000100# what's what
101MANDVIFILES= paper-$(PAPER)/api.dvi paper-$(PAPER)/ext.dvi \
102 paper-$(PAPER)/lib.dvi paper-$(PAPER)/mac.dvi \
103 paper-$(PAPER)/ref.dvi paper-$(PAPER)/tut.dvi
104HOWTODVIFILES= paper-$(PAPER)/doc.dvi paper-$(PAPER)/inst.dvi \
Fred Drake9ac14de2002-03-26 19:18:18 +0000105 paper-$(PAPER)/dist.dvi paper-$(PAPER)/$(WHATSNEW).dvi
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000106
107MANPDFFILES= paper-$(PAPER)/api.pdf paper-$(PAPER)/ext.pdf \
108 paper-$(PAPER)/lib.pdf paper-$(PAPER)/mac.pdf \
109 paper-$(PAPER)/ref.pdf paper-$(PAPER)/tut.pdf
110HOWTOPDFFILES= paper-$(PAPER)/doc.pdf paper-$(PAPER)/inst.pdf \
Fred Drake9ac14de2002-03-26 19:18:18 +0000111 paper-$(PAPER)/dist.pdf paper-$(PAPER)/$(WHATSNEW).pdf
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000112
113MANPSFILES= paper-$(PAPER)/api.ps paper-$(PAPER)/ext.ps \
114 paper-$(PAPER)/lib.ps paper-$(PAPER)/mac.ps \
115 paper-$(PAPER)/ref.ps paper-$(PAPER)/tut.ps
116HOWTOPSFILES= paper-$(PAPER)/doc.ps paper-$(PAPER)/inst.ps \
Fred Drake9ac14de2002-03-26 19:18:18 +0000117 paper-$(PAPER)/dist.ps paper-$(PAPER)/$(WHATSNEW).ps
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000118
119DVIFILES= $(MANDVIFILES) $(HOWTODVIFILES)
120PDFFILES= $(MANPDFFILES) $(HOWTOPDFFILES)
121PSFILES= $(MANPSFILES) $(HOWTOPSFILES)
122
Fred Drake0099d8f2001-10-25 15:12:31 +0000123HTMLCSSFILES=html/api/api.css \
124 html/doc/doc.css \
125 html/ext/ext.css \
126 html/lib/lib.css \
127 html/mac/mac.css \
128 html/ref/ref.css \
129 html/tut/tut.css \
130 html/inst/inst.css \
131 html/dist/dist.css
132
133ISILOCSSFILES=isilo/api/api.css \
134 isilo/doc/doc.css \
135 isilo/ext/ext.css \
136 isilo/lib/lib.css \
137 isilo/mac/mac.css \
138 isilo/ref/ref.css \
139 isilo/tut/tut.css \
140 isilo/inst/inst.css \
141 isilo/dist/dist.css
142
143ALLCSSFILES=$(HTMLCSSFILES) $(ISILOCSSFILES)
144
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000145INDEXFILES=html/api/api.html \
146 html/doc/doc.html \
147 html/ext/ext.html \
148 html/lib/lib.html \
149 html/mac/mac.html \
150 html/ref/ref.html \
151 html/tut/tut.html \
152 html/inst/inst.html \
Fred Drake9ac14de2002-03-26 19:18:18 +0000153 html/dist/dist.html \
154 html/whatsnew/$(WHATSNEW).html
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000155
Fred Drake5afb5e52001-07-18 21:17:29 +0000156ALLHTMLFILES=$(INDEXFILES) html/index.html html/modindex.html html/acks.html
157
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000158COMMONPERL= perl/manual.perl perl/python.perl perl/l2hinit.perl
159
Fred Drake520b0092001-10-29 17:40:40 +0000160ANNOAPI=api/refcounts.dat tools/anno-api.py
161
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000162include Makefile.deps
Fred Drake33d05b91998-01-13 16:33:09 +0000163
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000164# These must be declared phony since there
165# are directories with matching names:
Greg Ward0862f802000-04-28 16:53:36 +0000166.PHONY: api doc ext lib mac ref tut inst dist
Fred Drake0c77cf12001-10-19 21:12:57 +0000167.PHONY: html info isilo
Fred Drake3f8a59f1998-07-24 13:58:27 +0000168
Fred Drakebbe33c51998-05-07 01:39:06 +0000169
Guido van Rossume83e3801995-03-17 16:01:35 +0000170# Main target
Fred Drake38d53452002-05-25 20:28:46 +0000171default: html
172all: html dvi ps pdf isilo
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000173
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000174dvi: $(DVIFILES)
175pdf: $(PDFFILES)
176ps: $(PSFILES)
Fred Drakee4837a11998-03-06 21:29:34 +0000177
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000178world: ps pdf html distfiles
Guido van Rossum20aca5a1991-01-25 13:29:04 +0000179
Fred Drakef2951131998-05-07 19:30:16 +0000180
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000181# Rules to build PostScript and PDF formats
182.SUFFIXES: .dvi .ps
183
184.dvi.ps:
185 $(DVIPS) -o $@ $<
Fred Draked69e2c41998-05-11 18:25:46 +0000186
187
188# Targets for each document:
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000189# Python/C API Reference Manual
Fred Drake520b0092001-10-29 17:40:40 +0000190paper-$(PAPER)/api.dvi: $(ANNOAPIFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000191 cd paper-$(PAPER) && $(MKDVI) api.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000192
Fred Drake520b0092001-10-29 17:40:40 +0000193paper-$(PAPER)/api.pdf: $(ANNOAPIFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000194 cd paper-$(PAPER) && $(MKPDF) api.tex
Fred Drake15087431999-03-16 16:11:27 +0000195
Fred Drake57b38ed2002-10-04 19:23:06 +0000196paper-$(PAPER)/api.tex: api/api.tex
197 cp api/api.tex $@
Fred Draked69e2c41998-05-11 18:25:46 +0000198
Fred Drake520b0092001-10-29 17:40:40 +0000199paper-$(PAPER)/abstract.tex: api/abstract.tex $(ANNOAPI)
200 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/abstract.tex
201
202paper-$(PAPER)/concrete.tex: api/concrete.tex $(ANNOAPI)
203 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/concrete.tex
204
205paper-$(PAPER)/exceptions.tex: api/exceptions.tex $(ANNOAPI)
206 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/exceptions.tex
207
208paper-$(PAPER)/init.tex: api/init.tex $(ANNOAPI)
209 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/init.tex
210
Fred Drake57b38ed2002-10-04 19:23:06 +0000211paper-$(PAPER)/intro.tex: api/intro.tex
212 cp api/intro.tex $@
Fred Drake520b0092001-10-29 17:40:40 +0000213
214paper-$(PAPER)/memory.tex: api/memory.tex $(ANNOAPI)
215 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/memory.tex
216
217paper-$(PAPER)/newtypes.tex: api/newtypes.tex $(ANNOAPI)
218 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/newtypes.tex
219
220paper-$(PAPER)/refcounting.tex: api/refcounting.tex $(ANNOAPI)
221 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/refcounting.tex
222
223paper-$(PAPER)/utilities.tex: api/utilities.tex $(ANNOAPI)
224 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/utilities.tex
225
226paper-$(PAPER)/veryhigh.tex: api/veryhigh.tex $(ANNOAPI)
227 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/veryhigh.tex
228
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000229# Distributing Python Modules
230paper-$(PAPER)/dist.dvi: $(DISTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000231 cd paper-$(PAPER) && $(MKDVI) ../dist/dist.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000232
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000233paper-$(PAPER)/dist.pdf: $(DISTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000234 cd paper-$(PAPER) && $(MKPDF) ../dist/dist.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000235
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000236# Documenting Python
237paper-$(PAPER)/doc.dvi: $(DOCFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000238 cd paper-$(PAPER) && $(MKDVI) ../doc/doc.tex
Fred Drake3f8a59f1998-07-24 13:58:27 +0000239
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000240paper-$(PAPER)/doc.pdf: $(DOCFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000241 cd paper-$(PAPER) && $(MKPDF) ../doc/doc.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000242
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000243# Extending and Embedding the Python Interpreter
244paper-$(PAPER)/ext.dvi: $(EXTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000245 cd paper-$(PAPER) && $(MKDVI) ../ext/ext.tex
Greg Ward0862f802000-04-28 16:53:36 +0000246
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000247paper-$(PAPER)/ext.pdf: $(EXTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000248 cd paper-$(PAPER) && $(MKPDF) ../ext/ext.tex
Greg Ward0862f802000-04-28 16:53:36 +0000249
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000250# Installing Python Modules
251paper-$(PAPER)/inst.dvi: $(INSTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000252 cd paper-$(PAPER) && $(MKDVI) ../inst/inst.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000253
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000254paper-$(PAPER)/inst.pdf: $(INSTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000255 cd paper-$(PAPER) && $(MKPDF) ../inst/inst.tex
Fred Drakef2951131998-05-07 19:30:16 +0000256
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000257# Python Library Reference
258paper-$(PAPER)/lib.dvi: $(LIBFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000259 cd paper-$(PAPER) && $(MKDVI) ../lib/lib.tex
Fred Drake15087431999-03-16 16:11:27 +0000260
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000261paper-$(PAPER)/lib.pdf: $(LIBFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000262 cd paper-$(PAPER) && $(MKPDF) ../lib/lib.tex
Fred Drakef2951131998-05-07 19:30:16 +0000263
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000264# Macintosh Library Modules
265paper-$(PAPER)/mac.dvi: $(MACFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000266 cd paper-$(PAPER) && $(MKDVI) ../mac/mac.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000267
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000268paper-$(PAPER)/mac.pdf: $(MACFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000269 cd paper-$(PAPER) && $(MKPDF) ../mac/mac.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000270
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000271# Python Reference Manual
272paper-$(PAPER)/ref.dvi: $(REFFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000273 cd paper-$(PAPER) && $(MKDVI) ../ref/ref.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000274
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000275paper-$(PAPER)/ref.pdf: $(REFFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000276 cd paper-$(PAPER) && $(MKPDF) ../ref/ref.tex
Fred Drakeddae4141998-02-17 15:45:25 +0000277
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000278# Python Tutorial
279paper-$(PAPER)/tut.dvi: $(TUTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000280 cd paper-$(PAPER) && $(MKDVI) ../tut/tut.tex
Greg Ward0862f802000-04-28 16:53:36 +0000281
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000282paper-$(PAPER)/tut.pdf: $(TUTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000283 cd paper-$(PAPER) && $(MKPDF) ../tut/tut.tex
Guido van Rossume83e3801995-03-17 16:01:35 +0000284
Fred Drake9ac14de2002-03-26 19:18:18 +0000285# What's New in Python X.Y
Fred Drake4add68b2002-11-26 22:13:41 +0000286paper-$(PAPER)/$(WHATSNEW).dvi: whatsnew/$(WHATSNEW).tex
Fred Drake9ac14de2002-03-26 19:18:18 +0000287 cd paper-$(PAPER) && $(MKDVI) ../whatsnew/$(WHATSNEW).tex
288
Fred Drake4add68b2002-11-26 22:13:41 +0000289paper-$(PAPER)/$(WHATSNEW).pdf: whatsnew/$(WHATSNEW).tex
Fred Drake9ac14de2002-03-26 19:18:18 +0000290 cd paper-$(PAPER) && $(MKPDF) ../whatsnew/$(WHATSNEW).tex
291
Guido van Rossume83e3801995-03-17 16:01:35 +0000292# The remaining part of the Makefile is concerned with various
Guido van Rossum73827c61995-03-20 13:00:32 +0000293# conversions, as described above. See also the README file.
Guido van Rossume83e3801995-03-17 16:01:35 +0000294
Fred Drakeb9838d91998-05-08 15:43:08 +0000295info:
Fred Drakebfc18bd2002-05-03 04:50:51 +0000296 cd $(INFODIR) && $(MAKE) EMACS=$(EMACS)
Fred Drake5ad78f31998-02-22 19:47:13 +0000297
Guido van Rossum73827c61995-03-20 13:00:32 +0000298# Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to
299# HTML converter. For more info on this program, see
Guido van Rossume83e3801995-03-17 16:01:35 +0000300# <URL:http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html>.
Guido van Rossume83e3801995-03-17 16:01:35 +0000301
Guido van Rossum9cb64801997-12-29 20:01:55 +0000302# Note that LaTeX2HTML inserts references to an icons directory in
303# each page that it generates. I have placed a copy of this directory
304# in the distribution to simplify the process of creating a
305# self-contained HTML distribution; for this purpose I have also added
306# a (trivial) index.html. Change the definition of $ICONSERVER in
Fred Drake9fab3aa1998-04-28 19:20:43 +0000307# perl/l2hinit.perl to use a different location for the icons directory.
Guido van Rossume83e3801995-03-17 16:01:35 +0000308
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000309# If you have the standard LaTeX2HTML icons installed, the versions shipped
310# with this documentation should be stored in a separate directory and used
311# instead. The standard set does *not* include all the icons used in the
312# Python documentation.
Fred Drakebbe33c51998-05-07 01:39:06 +0000313
Fred Drake0099d8f2001-10-25 15:12:31 +0000314$(ALLCSSFILES): html/style.css
315 cp $< $@
316
Fred Drake5af41c52003-05-22 15:28:55 +0000317$(INDEXFILES): $(COMMONPERL) html/stdabout.dat tools/node2label.pl
Guido van Rossum6938f061994-08-01 12:22:53 +0000318
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000319html/acks.html: ACKS $(TOOLSDIR)/support.py $(TOOLSDIR)/mkackshtml
Fred Drake1385a572001-07-17 16:53:19 +0000320 $(PYTHON) $(TOOLSDIR)/mkackshtml --address $(PYTHONDOCS) \
Fred Drakeb1510d52002-10-30 17:07:02 +0000321 --favicon icons/pyfav.gif \
Fred Draked27ed852001-02-22 23:06:21 +0000322 --output html/acks.html <ACKS
Guido van Rossum6938f061994-08-01 12:22:53 +0000323
Fred Drake1385a572001-07-17 16:53:19 +0000324
325# html/index.html is dependent on $(INDEXFILES) since we want the date
326# on the front index to be updated whenever any of the child documents
327# are updated and boilerplate.tex uses \today as the date. The index
328# files are not used to actually generate content.
329
330BOILERPLATE=texinputs/boilerplate.tex
331html/index.html: $(INDEXFILES)
332html/index.html: html/index.html.in $(BOILERPLATE) tools/rewrite.py
Fred Drake4e526fe2002-03-26 20:29:11 +0000333 $(PYTHON) tools/rewrite.py $(BOILERPLATE) \
334 RELEASE=$(RELEASE) WHATSNEW=$(WHATSNEW) \
Fred Drake1385a572001-07-17 16:53:19 +0000335 <$< >$@
336
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000337html/modindex.html: $(TOOLSDIR)/support.py $(TOOLSDIR)/mkmodindex
338html/modindex.html: html/lib/lib.html html/mac/mac.html
Fred Drake1385a572001-07-17 16:53:19 +0000339 cd html && \
340 $(PYTHON) ../$(TOOLSDIR)/mkmodindex --columns 4 \
341 --output modindex.html --address $(PYTHONDOCS) \
Fred Drakeb1510d52002-10-30 17:07:02 +0000342 --favicon icons/pyfav.gif \
Fred Drake1385a572001-07-17 16:53:19 +0000343 lib/modindex.html mac/modindex.html
Fred Drake7d5f5dd1999-03-18 19:08:47 +0000344
Fred Drake0099d8f2001-10-25 15:12:31 +0000345html: $(ALLHTMLFILES) $(HTMLCSSFILES)
Guido van Rossum970871f1993-02-21 20:10:26 +0000346
Fred Drake0099d8f2001-10-25 15:12:31 +0000347api: html/api/api.html html/api/api.css
Fred Drakedb2e3e32002-05-23 19:41:25 +0000348html/api/api.html: $(APIFILES) api/refcounts.dat
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000349 $(MKHTML) --dir html/api api/api.tex
Fred Drakea6bb3961998-05-06 19:51:39 +0000350
Fred Drake0099d8f2001-10-25 15:12:31 +0000351doc: html/doc/doc.html html/doc/doc.css
352html/doc/doc.html: $(DOCFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000353 $(MKHTML) --dir html/doc doc/doc.tex
Fred Drakecdbd3911998-05-15 17:02:10 +0000354
Fred Drake0099d8f2001-10-25 15:12:31 +0000355ext: html/ext/ext.html html/ext/ext.css
356html/ext/ext.html: $(EXTFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000357 $(MKHTML) --dir html/ext ext/ext.tex
Guido van Rossume83e3801995-03-17 16:01:35 +0000358
Fred Drake0099d8f2001-10-25 15:12:31 +0000359lib: html/lib/lib.html html/lib/lib.css
360html/lib/lib.html: $(LIBFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000361 $(MKHTML) --dir html/lib lib/lib.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000362
Fred Drake0099d8f2001-10-25 15:12:31 +0000363mac: html/mac/mac.html html/mac/mac.css
364html/mac/mac.html: $(MACFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000365 $(MKHTML) --dir html/mac mac/mac.tex
Greg Ward0862f802000-04-28 16:53:36 +0000366
Fred Drake0099d8f2001-10-25 15:12:31 +0000367ref: html/ref/ref.html html/ref/ref.css
368html/ref/ref.html: $(REFFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000369 $(MKHTML) --dir html/ref ref/ref.tex
Greg Ward0862f802000-04-28 16:53:36 +0000370
Fred Drake0099d8f2001-10-25 15:12:31 +0000371tut: html/tut/tut.html html/tut/tut.css
372html/tut/tut.html: $(TUTFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000373 $(MKHTML) --dir html/tut --numeric --split 3 tut/tut.tex
374
Fred Drake0099d8f2001-10-25 15:12:31 +0000375inst: html/inst/inst.html html/inst/inst.css
376html/inst/inst.html: $(INSTFILES) perl/distutils.perl
Fred Drake8c011582001-03-01 18:38:56 +0000377 $(MKHTML) --dir html/inst --split 4 inst/inst.tex
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000378
Fred Drake0099d8f2001-10-25 15:12:31 +0000379dist: html/dist/dist.html html/dist/dist.css
380html/dist/dist.html: $(DISTFILES) perl/distutils.perl
Fred Drake8c011582001-03-01 18:38:56 +0000381 $(MKHTML) --dir html/dist --split 4 dist/dist.tex
Fred Drakee7a8c972000-04-07 16:27:15 +0000382
Fred Drake9ac14de2002-03-26 19:18:18 +0000383whatsnew: html/whatsnew/$(WHATSNEW).html
384html/whatsnew/$(WHATSNEW).html: whatsnew/$(WHATSNEW).tex
385 $(MKHTML) --dir html/whatsnew --split 4 whatsnew/$(WHATSNEW).tex
386
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000387
Fred Drake0c77cf12001-10-19 21:12:57 +0000388# The iSilo format is used by the iSilo document reader for PalmOS devices.
389
390ISILOINDEXFILES=isilo/api/api.html \
391 isilo/doc/doc.html \
392 isilo/ext/ext.html \
393 isilo/lib/lib.html \
394 isilo/mac/mac.html \
395 isilo/ref/ref.html \
396 isilo/tut/tut.html \
397 isilo/inst/inst.html \
Fred Drake30140862002-03-26 19:53:56 +0000398 isilo/dist/dist.html \
399 isilo/whatsnew/$(WHATSNEW).html
Fred Drake0c77cf12001-10-19 21:12:57 +0000400
Fred Drake5af41c52003-05-22 15:28:55 +0000401$(ISILOINDEXFILES): $(COMMONPERL) html/stdabout.dat perl/isilo.perl
Fred Drake0c77cf12001-10-19 21:12:57 +0000402
Fred Drake1a0199a2002-08-09 20:20:50 +0000403isilo: isilo/python-api.pdb \
404 isilo/python-doc.pdb \
405 isilo/python-ext.pdb \
406 isilo/python-lib.pdb \
407 isilo/python-mac.pdb \
408 isilo/python-ref.pdb \
409 isilo/python-tut.pdb \
410 isilo/python-dist.pdb \
411 isilo/python-inst.pdb \
412 isilo/python-whatsnew.pdb
Fred Drake0c77cf12001-10-19 21:12:57 +0000413
Fred Drake1a0199a2002-08-09 20:20:50 +0000414isilo/python-api.pdb: isilo/api/api.html isilo/api/api.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000415 $(MKISILO) "-iPython/C API Reference Manual" \
416 isilo/api/api.html $@
417
Fred Drake1a0199a2002-08-09 20:20:50 +0000418isilo/python-doc.pdb: isilo/doc/doc.html isilo/doc/doc.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000419 $(MKISILO) "-iDocumenting Python" \
420 isilo/doc/doc.html $@
421
Fred Drake1a0199a2002-08-09 20:20:50 +0000422isilo/python-ext.pdb: isilo/ext/ext.html isilo/ext/ext.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000423 $(MKISILO) "-iExtending & Embedding Python" \
424 isilo/ext/ext.html $@
425
Fred Drake1a0199a2002-08-09 20:20:50 +0000426isilo/python-lib.pdb: isilo/lib/lib.html isilo/lib/lib.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000427 $(MKISILO) "-iPython Library Reference" \
428 isilo/lib/lib.html $@
429
Fred Drake1a0199a2002-08-09 20:20:50 +0000430isilo/python-mac.pdb: isilo/mac/mac.html isilo/mac/mac.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000431 $(MKISILO) "-iPython/C API Reference Manual" \
432 isilo/mac/mac.html $@
433
Fred Drake1a0199a2002-08-09 20:20:50 +0000434isilo/python-ref.pdb: isilo/ref/ref.html isilo/ref/ref.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000435 $(MKISILO) "-iPython Reference Manual" \
436 isilo/ref/ref.html $@
437
Fred Drake1a0199a2002-08-09 20:20:50 +0000438isilo/python-tut.pdb: isilo/tut/tut.html isilo/tut/tut.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000439 $(MKISILO) "-iPython Tutorial" \
440 isilo/tut/tut.html $@
441
Fred Drake1a0199a2002-08-09 20:20:50 +0000442isilo/python-dist.pdb: isilo/dist/dist.html isilo/dist/dist.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000443 $(MKISILO) "-iDistributing Python Modules" \
444 isilo/dist/dist.html $@
445
Fred Drake1a0199a2002-08-09 20:20:50 +0000446isilo/python-inst.pdb: isilo/inst/inst.html isilo/inst/inst.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000447 $(MKISILO) "-iInstalling Python Modules" \
448 isilo/inst/inst.html $@
449
Fred Drake1a0199a2002-08-09 20:20:50 +0000450isilo/python-whatsnew.pdb: isilo/whatsnew/$(WHATSNEW).html isilo/whatsnew/$(WHATSNEW).css
Fred Drake30140862002-03-26 19:53:56 +0000451 $(MKISILO) "-iWhat's New in Python X.Y" \
452 isilo/whatsnew/$(WHATSNEW).html $@
453
Fred Drakedb2e3e32002-05-23 19:41:25 +0000454isilo/api/api.html: $(APIFILES) api/refcounts.dat
Fred Drake0c77cf12001-10-19 21:12:57 +0000455 $(MKISILOHTML) --dir isilo/api api/api.tex
456
457isilo/doc/doc.html: $(DOCFILES)
458 $(MKISILOHTML) --dir isilo/doc doc/doc.tex
459
460isilo/ext/ext.html: $(EXTFILES)
461 $(MKISILOHTML) --dir isilo/ext ext/ext.tex
462
463isilo/lib/lib.html: $(LIBFILES)
464 $(MKISILOHTML) --dir isilo/lib lib/lib.tex
465
466isilo/mac/mac.html: $(MACFILES)
467 $(MKISILOHTML) --dir isilo/mac mac/mac.tex
468
469isilo/ref/ref.html: $(REFFILES)
470 $(MKISILOHTML) --dir isilo/ref ref/ref.tex
471
472isilo/tut/tut.html: $(TUTFILES)
473 $(MKISILOHTML) --dir isilo/tut tut/tut.tex
474
475isilo/inst/inst.html: $(INSTFILES) perl/distutils.perl
476 $(MKISILOHTML) --dir isilo/inst inst/inst.tex
477
478isilo/dist/dist.html: $(DISTFILES) perl/distutils.perl
479 $(MKISILOHTML) --dir isilo/dist dist/dist.tex
480
Fred Drake9ac14de2002-03-26 19:18:18 +0000481isilo/whatsnew/$(WHATSNEW).html: whatsnew/$(WHATSNEW).tex
482 $(MKISILOHTML) --dir isilo/whatsnew whatsnew/$(WHATSNEW).tex
483
Fred Drake0c77cf12001-10-19 21:12:57 +0000484# These are useful if you need to transport the iSilo-ready HTML to
485# another machine to perform the conversion:
486
487isilozip: isilo-html-$(RELEASE).zip
488
489isilo-html-$(RELEASE).zip: $(ISILOINDEXFILES)
490 rm -f $@
491 cd isilo && \
492 zip -q -9 ../$@ */*.css */*.html */*.txt
493
494
Fred Drakee4837a11998-03-06 21:29:34 +0000495# webchecker needs an extra flag to process the huge index from the libref
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000496WEBCHECKER=$(PYTHON) ../Tools/webchecker/webchecker.py
497HTMLBASE= file:`pwd`/html
498
Fred Drake5afb5e52001-07-18 21:17:29 +0000499webcheck: $(ALLHTMLFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000500 $(WEBCHECKER) $(HTMLBASE)/api/
501 $(WEBCHECKER) $(HTMLBASE)/doc/
502 $(WEBCHECKER) $(HTMLBASE)/ext/
503 $(WEBCHECKER) -m290000 $(HTMLBASE)/lib/
504 $(WEBCHECKER) $(HTMLBASE)/mac/
505 $(WEBCHECKER) $(HTMLBASE)/ref/
506 $(WEBCHECKER) $(HTMLBASE)/tut/
507 $(WEBCHECKER) $(HTMLBASE)/dist/
508 $(WEBCHECKER) $(HTMLBASE)/inst/
Fred Drake30140862002-03-26 19:53:56 +0000509 $(WEBCHECKER) $(HTMLBASE)/whatsnew/
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000510
Fred Drake5afb5e52001-07-18 21:17:29 +0000511fastwebcheck: $(ALLHTMLFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000512 $(WEBCHECKER) -x $(HTMLBASE)/api/
513 $(WEBCHECKER) -x $(HTMLBASE)/doc/
514 $(WEBCHECKER) -x $(HTMLBASE)/ext/
515 $(WEBCHECKER) -x -m290000 $(HTMLBASE)/lib/
516 $(WEBCHECKER) -x $(HTMLBASE)/mac/
517 $(WEBCHECKER) -x $(HTMLBASE)/ref/
518 $(WEBCHECKER) -x $(HTMLBASE)/tut/
519 $(WEBCHECKER) -x $(HTMLBASE)/dist/
520 $(WEBCHECKER) -x $(HTMLBASE)/inst/
Fred Drake30140862002-03-26 19:53:56 +0000521 $(WEBCHECKER) -x $(HTMLBASE)/whatsnew/
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000522
523
524# Release packaging targets:
Fred Drakee4837a11998-03-06 21:29:34 +0000525
Fred Drake5afb5e52001-07-18 21:17:29 +0000526paper-$(PAPER)/README: $(PSFILES) $(TOOLSDIR)/getpagecounts
Fred Drake3d0b6972002-04-17 03:31:08 +0000527 cd paper-$(PAPER) && ../$(TOOLSDIR)/getpagecounts -r $(RELEASE) >../$@
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000528
Fred Drakeb6584ca1999-01-08 15:49:45 +0000529info-$(RELEASE).tgz: info
Fred Drake1385a572001-07-17 16:53:19 +0000530 cd $(INFODIR) && tar cf - README python.dir python-*.info* \
Fred Drake28e66d11999-01-29 22:23:25 +0000531 | gzip -9 >$@
Fred Drakea7998351998-02-19 16:01:04 +0000532
Fred Drake4ef3ea01999-07-27 16:30:59 +0000533info-$(RELEASE).tar.bz2: info
Fred Drake1385a572001-07-17 16:53:19 +0000534 cd $(INFODIR) && tar cf - README python.dir python-*.info* \
Fred Drake4ef3ea01999-07-27 16:30:59 +0000535 | bzip2 -9 >$@
536
Fred Drakee34ab301998-05-11 21:10:15 +0000537latex-$(RELEASE).tgz:
Fred Drake1385a572001-07-17 16:53:19 +0000538 $(PYTHON) $(TOOLSDIR)/mksourcepkg --gzip $(RELEASE)
Fred Drakee61d7af1998-03-05 16:37:34 +0000539
Fred Drake4ef3ea01999-07-27 16:30:59 +0000540latex-$(RELEASE).tar.bz2:
Fred Drake1385a572001-07-17 16:53:19 +0000541 $(PYTHON) $(TOOLSDIR)/mksourcepkg --bzip2 $(RELEASE)
Fred Drake4ef3ea01999-07-27 16:30:59 +0000542
Fred Drake7dcc69a1999-07-23 16:11:36 +0000543latex-$(RELEASE).zip:
Fred Drake02ba6212000-04-04 20:58:25 +0000544 rm -f $@
Fred Drake1385a572001-07-17 16:53:19 +0000545 $(PYTHON) $(TOOLSDIR)/mksourcepkg --zip $(RELEASE)
Fred Drake7dcc69a1999-07-23 16:11:36 +0000546
Fred Drake5afb5e52001-07-18 21:17:29 +0000547pdf-$(PAPER)-$(RELEASE).tar: $(PDFFILES)
Fred Drake1a0199a2002-08-09 20:20:50 +0000548 rm -f $@
549 mkdir Python-Docs-$(RELEASE)
550 cp paper-$(PAPER)/*.pdf Python-Docs-$(RELEASE)
551 tar cf $@ Python-Docs-$(RELEASE)
552 rm -r Python-Docs-$(RELEASE)
Fred Drake04cf4dc1998-02-12 22:33:50 +0000553
Fred Drake5afb5e52001-07-18 21:17:29 +0000554pdf-$(PAPER)-$(RELEASE).tgz: pdf-$(PAPER)-$(RELEASE).tar
555 gzip -9 <$? >$@
556
557pdf-$(PAPER)-$(RELEASE).tar.bz2: pdf-$(PAPER)-$(RELEASE).tar
558 bzip2 -9 <$? >$@
Fred Drake4ef3ea01999-07-27 16:30:59 +0000559
Fred Drake7dcc69a1999-07-23 16:11:36 +0000560pdf-$(PAPER)-$(RELEASE).zip: pdf
Fred Drake02ba6212000-04-04 20:58:25 +0000561 rm -f $@
Fred Drake1a0199a2002-08-09 20:20:50 +0000562 mkdir Python-Docs-$(RELEASE)
563 cp paper-$(PAPER)/*.pdf Python-Docs-$(RELEASE)
564 zip -q -r -9 $@ Python-Docs-$(RELEASE)
565 rm -r Python-Docs-$(RELEASE)
Fred Drake7dcc69a1999-07-23 16:11:36 +0000566
Fred Drake5afb5e52001-07-18 21:17:29 +0000567postscript-$(PAPER)-$(RELEASE).tar: $(PSFILES) paper-$(PAPER)/README
Fred Drake1a0199a2002-08-09 20:20:50 +0000568 rm -f $@
569 mkdir Python-Docs-$(RELEASE)
570 cp paper-$(PAPER)/*.ps Python-Docs-$(RELEASE)
571 cp paper-$(PAPER)/README Python-Docs-$(RELEASE)
572 tar cf $@ Python-Docs-$(RELEASE)
573 rm -r Python-Docs-$(RELEASE)
Fred Drake04cf4dc1998-02-12 22:33:50 +0000574
Fred Drake5afb5e52001-07-18 21:17:29 +0000575postscript-$(PAPER)-$(RELEASE).tar.bz2: postscript-$(PAPER)-$(RELEASE).tar
576 bzip2 -9 <$< >$@
Fred Drake4ef3ea01999-07-27 16:30:59 +0000577
Fred Drake5afb5e52001-07-18 21:17:29 +0000578postscript-$(PAPER)-$(RELEASE).tgz: postscript-$(PAPER)-$(RELEASE).tar
579 gzip -9 <$< >$@
580
581postscript-$(PAPER)-$(RELEASE).zip: $(PSFILES) paper-$(PAPER)/README
Fred Drake02ba6212000-04-04 20:58:25 +0000582 rm -f $@
Fred Drake1a0199a2002-08-09 20:20:50 +0000583 mkdir Python-Docs-$(RELEASE)
584 cp paper-$(PAPER)/*.ps Python-Docs-$(RELEASE)
585 cp paper-$(PAPER)/README Python-Docs-$(RELEASE)
586 zip -q -r -9 $@ Python-Docs-$(RELEASE)
587 rm -r Python-Docs-$(RELEASE)
588
589HTMLPKGFILES=*.html */*.css */*.html */*.gif */*.txt
Fred Drake7dcc69a1999-07-23 16:11:36 +0000590
Fred Drake0099d8f2001-10-25 15:12:31 +0000591html-$(RELEASE).tar: $(ALLHTMLFILES) $(HTMLCSSFILES)
Fred Drake1a0199a2002-08-09 20:20:50 +0000592 mkdir Python-Docs-$(RELEASE)
593 cd html && tar cf ../temp.tar $(HTMLPKGFILES)
594 cd Python-Docs-$(RELEASE) && tar xf ../temp.tar
595 rm temp.tar
596 tar cf html-$(RELEASE).tar Python-Docs-$(RELEASE)
597 rm -r Python-Docs-$(RELEASE)
Fred Drake33d05b91998-01-13 16:33:09 +0000598
Fred Drake8f65aef2001-07-17 23:35:46 +0000599html-$(RELEASE).tgz: html-$(RELEASE).tar
Fred Drake5afb5e52001-07-18 21:17:29 +0000600 gzip -9 <$? >$@
Fred Drake8f65aef2001-07-17 23:35:46 +0000601
602html-$(RELEASE).tar.bz2: html-$(RELEASE).tar
Fred Drake5afb5e52001-07-18 21:17:29 +0000603 bzip2 -9 <$? >$@
Fred Drake4ef3ea01999-07-27 16:30:59 +0000604
Fred Drake0099d8f2001-10-25 15:12:31 +0000605html-$(RELEASE).zip: $(ALLHTMLFILES) $(HTMLCSSFILES)
Fred Drake02ba6212000-04-04 20:58:25 +0000606 rm -f $@
Fred Drake1a0199a2002-08-09 20:20:50 +0000607 mkdir Python-Docs-$(RELEASE)
608 cd html && tar cf ../temp.tar $(HTMLPKGFILES)
609 cd Python-Docs-$(RELEASE) && tar xf ../temp.tar
610 rm temp.tar
611 zip -q -r -9 $@ Python-Docs-$(RELEASE)
612 rm -r Python-Docs-$(RELEASE)
Fred Drake7dcc69a1999-07-23 16:11:36 +0000613
Fred Drake0c77cf12001-10-19 21:12:57 +0000614isilo-$(RELEASE).zip: isilo
Fred Drake1a0199a2002-08-09 20:20:50 +0000615 rm -f $@
616 mkdir Python-Docs-$(RELEASE)
617 cp isilo/python-*.pdb Python-Docs-$(RELEASE)
618 zip -q -r -9 $@ Python-Docs-$(RELEASE)
619 rm -r Python-Docs-$(RELEASE)
Fred Drake0c77cf12001-10-19 21:12:57 +0000620
621
Fred Drakea7998351998-02-19 16:01:04 +0000622# convenience targets:
623
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000624tarhtml: html-$(RELEASE).tgz
Fred Drakeb6584ca1999-01-08 15:49:45 +0000625tarinfo: info-$(RELEASE).tgz
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000626tarps: postscript-$(PAPER)-$(RELEASE).tgz
627tarpdf: pdf-$(PAPER)-$(RELEASE).tgz
628tarlatex: latex-$(RELEASE).tgz
Fred Drakebbe33c51998-05-07 01:39:06 +0000629
Fred Drake83c09831999-08-02 20:20:14 +0000630tarballs: tarpdf tarps tarhtml
Guido van Rossum84cca441997-11-25 20:49:09 +0000631
Fred Drake7dcc69a1999-07-23 16:11:36 +0000632ziphtml: html-$(RELEASE).zip
633zipps: postscript-$(PAPER)-$(RELEASE).zip
634zippdf: pdf-$(PAPER)-$(RELEASE).zip
635ziplatex: latex-$(RELEASE).zip
Fred Drake0c77cf12001-10-19 21:12:57 +0000636zipisilo: isilo-$(RELEASE).zip
Fred Drake7dcc69a1999-07-23 16:11:36 +0000637
Fred Drakeb906d2e2000-07-01 02:37:37 +0000638zips: zippdf zipps ziphtml
Fred Drake7dcc69a1999-07-23 16:11:36 +0000639
Fred Drake4ef3ea01999-07-27 16:30:59 +0000640bziphtml: html-$(RELEASE).tar.bz2
641bzipinfo: info-$(RELEASE).tar.bz2
642bzipps: postscript-$(PAPER)-$(RELEASE).tar.bz2
643bzippdf: pdf-$(PAPER)-$(RELEASE).tar.bz2
644bziplatex: latex-$(RELEASE).tar.bz2
645
Fred Drake83c09831999-08-02 20:20:14 +0000646bzips: bzippdf bzipps bziphtml
Fred Drake4ef3ea01999-07-27 16:30:59 +0000647
Fred Drakefc4ee0a2001-04-13 18:00:23 +0000648disthtml: tarhtml bziphtml ziphtml
649distinfo: tarinfo bzipinfo
650distps: tarps bzipps zipps
651distpdf: tarpdf bzippdf zippdf
652distlatex: tarlatex bziplatex ziplatex
653
Fred Drake5afb5e52001-07-18 21:17:29 +0000654paperdist: distpdf distps
Fred Drake5f443cb2001-12-12 06:22:43 +0000655edist: disthtml zipisilo
Fred Drake5afb5e52001-07-18 21:17:29 +0000656
657distfiles: paperdist edist
Fred Drake88634602001-01-25 17:32:51 +0000658 $(TOOLSDIR)/mksourcepkg --all $(RELEASE)
Fred Drake444e4342003-04-23 15:04:52 +0000659 $(TOOLSDIR)/mkpkglist >pkglist.html
Fred Drake4ef3ea01999-07-27 16:30:59 +0000660
Guido van Rossume83e3801995-03-17 16:01:35 +0000661
662# Housekeeping targets
663
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000664# Remove temporary files; all except the following:
Fred Drake6659c301998-03-03 22:02:19 +0000665# - sources: .tex, .bib, .sty, *.cls
Fred Drake04cf4dc1998-02-12 22:33:50 +0000666# - useful results: .dvi, .pdf, .ps, .texi, .info
Fred Drakee4837a11998-03-06 21:29:34 +0000667clean:
Fred Drake8f65aef2001-07-17 23:35:46 +0000668 rm -f html-$(RELEASE).tar
Fred Drake1385a572001-07-17 16:53:19 +0000669 cd $(INFODIR) && $(MAKE) clean
Guido van Rossum5b343731992-07-07 09:06:34 +0000670
Guido van Rossume83e3801995-03-17 16:01:35 +0000671# Remove temporaries as well as final products
Fred Drakeb6584ca1999-01-08 15:49:45 +0000672clobber:
Fred Drake8f65aef2001-07-17 23:35:46 +0000673 rm -f html-$(RELEASE).tar
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000674 rm -f html-$(RELEASE).tgz info-$(RELEASE).tgz
675 rm -f pdf-$(RELEASE).tgz postscript-$(RELEASE).tgz
Fred Drake7dcc69a1999-07-23 16:11:36 +0000676 rm -f latex-$(RELEASE).tgz html-$(RELEASE).zip
677 rm -f pdf-$(RELEASE).zip postscript-$(RELEASE).zip
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000678 rm -f $(DVIFILES) $(PSFILES) $(PDFFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000679 cd $(INFODIR) && $(MAKE) clobber
Fred Drake210d3cc2002-02-04 19:49:29 +0000680 rm -f paper-$(PAPER)/*.tex paper-$(PAPER)/*.ind paper-$(PAPER)/*.idx
681 rm -f paper-$(PAPER)/*.l2h paper-$(PAPER)/*.how paper-$(PAPER)/README
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000682 rm -rf html/index.html html/modindex.html html/acks.html
683 rm -rf html/api/ html/doc/ html/ext/ html/lib/ html/mac/
684 rm -rf html/ref/ html/tut/ html/inst/ html/dist/
Fred Drake30140862002-03-26 19:53:56 +0000685 rm -rf html/whatsnew/
Fred Drake0c77cf12001-10-19 21:12:57 +0000686 rm -rf isilo/api/ isilo/doc/ isilo/ext/ isilo/lib/ isilo/mac/
687 rm -rf isilo/ref/ isilo/tut/ isilo/inst/ isilo/dist/
Fred Drake30140862002-03-26 19:53:56 +0000688 rm -rf isilo/whatsnew/
Fred Drake1a0199a2002-08-09 20:20:50 +0000689 rm -f isilo/python-*.pdb isilo-$(RELEASE).zip
Fred Drake5ad78f31998-02-22 19:47:13 +0000690
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000691realclean distclean: clobber