blob: 821ea8a6544ba3d4dfd4a3a28e9965e4c9e9073e [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
Fred Drake0d86ea72003-09-27 07:37:09 +000079# identifying mkhowto and the commontex/ directory using absolute paths.
Fred Drakee395e222003-09-27 05:52:16 +000080#
Fred Drake0d86ea72003-09-27 07:37:09 +000081PWD=$(shell pwd)
82
83# (The trailing colon in the value is needed; TeX places it's default
84# set of paths at the location of the empty string in the path list.)
85TEXINPUTS=$(PWD)/commontex:
86
87# The mkhowto script can be run from the checkout using the first
88# version of this variable definition, or from a preferred version
89# using the second version. The standard documentation is typically
90# built using the second flavor, where the preferred version is from
91# the Python CVS trunk.
92#MKHOWTO= TEXINPUTS=$(TEXINPUTS) $(PYTHON) $(PWD)/tools/mkhowto
93MKHOWTO= TEXINPUTS=$(TEXINPUTS) mkhowto
Fred Drakedf493242003-09-25 15:25:37 +000094
95MKDVI= $(MKHOWTO) --paper=$(PAPER) --dvi
96MKHTML= $(MKHOWTO) --html --about html/stdabout.dat \
Fred Drakeb1510d52002-10-30 17:07:02 +000097 --iconserver ../icons --favicon ../icons/pyfav.gif \
Fred Drakef6bfe8e2001-02-19 19:19:26 +000098 --address $(PYTHONDOCS) --up-link ../index.html \
99 --up-title "Python Documentation Index" \
Fred Drake345b8df2001-10-30 16:28:46 +0000100 --global-module-index "../modindex.html" --dvips-safe
Fred Drakedf493242003-09-25 15:25:37 +0000101MKISILOHTML=$(MKHOWTO) --html --about html/stdabout.dat \
Fred Drake15a159c2002-10-01 15:20:20 +0000102 --iconserver ../icons \
Fred Drake345b8df2001-10-30 16:28:46 +0000103 --l2h-init perl/isilo.perl --numeric --split 1 \
104 --dvips-safe
Fred Drake0c77cf12001-10-19 21:12:57 +0000105MKISILO= iSilo386 -U -y -rCR -d0
Fred Drakedf493242003-09-25 15:25:37 +0000106MKPDF= $(MKHOWTO) --paper=$(PAPER) --pdf
107MKPS= $(MKHOWTO) --paper=$(PAPER) --ps
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000108
109BUILDINDEX=$(TOOLSDIR)/buildindex.py
110
Fred Drake1385a572001-07-17 16:53:19 +0000111PYTHONDOCS="See <i><a href=\"about.html\">About this document...</a></i> for information on suggesting changes."
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000112HTMLBASE= file:`pwd`
113
Fred Drakebfc18bd2002-05-03 04:50:51 +0000114# The emacs binary used to build the info docs. GNU Emacs 21 is required.
115EMACS= emacs
116
Fred Drake30140862002-03-26 19:53:56 +0000117# The end of this should reflect the major/minor version numbers of
118# the release:
Fred Drake90b20492003-07-30 19:14:54 +0000119WHATSNEW=whatsnew24
Fred Drake9ac14de2002-03-26 19:18:18 +0000120
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000121# what's what
122MANDVIFILES= paper-$(PAPER)/api.dvi paper-$(PAPER)/ext.dvi \
123 paper-$(PAPER)/lib.dvi paper-$(PAPER)/mac.dvi \
124 paper-$(PAPER)/ref.dvi paper-$(PAPER)/tut.dvi
125HOWTODVIFILES= paper-$(PAPER)/doc.dvi paper-$(PAPER)/inst.dvi \
Fred Drake9ac14de2002-03-26 19:18:18 +0000126 paper-$(PAPER)/dist.dvi paper-$(PAPER)/$(WHATSNEW).dvi
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000127
128MANPDFFILES= paper-$(PAPER)/api.pdf paper-$(PAPER)/ext.pdf \
129 paper-$(PAPER)/lib.pdf paper-$(PAPER)/mac.pdf \
130 paper-$(PAPER)/ref.pdf paper-$(PAPER)/tut.pdf
131HOWTOPDFFILES= paper-$(PAPER)/doc.pdf paper-$(PAPER)/inst.pdf \
Fred Drake9ac14de2002-03-26 19:18:18 +0000132 paper-$(PAPER)/dist.pdf paper-$(PAPER)/$(WHATSNEW).pdf
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000133
134MANPSFILES= paper-$(PAPER)/api.ps paper-$(PAPER)/ext.ps \
135 paper-$(PAPER)/lib.ps paper-$(PAPER)/mac.ps \
136 paper-$(PAPER)/ref.ps paper-$(PAPER)/tut.ps
137HOWTOPSFILES= paper-$(PAPER)/doc.ps paper-$(PAPER)/inst.ps \
Fred Drake9ac14de2002-03-26 19:18:18 +0000138 paper-$(PAPER)/dist.ps paper-$(PAPER)/$(WHATSNEW).ps
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000139
140DVIFILES= $(MANDVIFILES) $(HOWTODVIFILES)
141PDFFILES= $(MANPDFFILES) $(HOWTOPDFFILES)
142PSFILES= $(MANPSFILES) $(HOWTOPSFILES)
143
Fred Drake0099d8f2001-10-25 15:12:31 +0000144HTMLCSSFILES=html/api/api.css \
145 html/doc/doc.css \
146 html/ext/ext.css \
147 html/lib/lib.css \
148 html/mac/mac.css \
149 html/ref/ref.css \
150 html/tut/tut.css \
151 html/inst/inst.css \
152 html/dist/dist.css
153
154ISILOCSSFILES=isilo/api/api.css \
155 isilo/doc/doc.css \
156 isilo/ext/ext.css \
157 isilo/lib/lib.css \
158 isilo/mac/mac.css \
159 isilo/ref/ref.css \
160 isilo/tut/tut.css \
161 isilo/inst/inst.css \
162 isilo/dist/dist.css
163
164ALLCSSFILES=$(HTMLCSSFILES) $(ISILOCSSFILES)
165
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000166INDEXFILES=html/api/api.html \
167 html/doc/doc.html \
168 html/ext/ext.html \
169 html/lib/lib.html \
170 html/mac/mac.html \
171 html/ref/ref.html \
172 html/tut/tut.html \
173 html/inst/inst.html \
Fred Drake9ac14de2002-03-26 19:18:18 +0000174 html/dist/dist.html \
175 html/whatsnew/$(WHATSNEW).html
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000176
Fred Drake5afb5e52001-07-18 21:17:29 +0000177ALLHTMLFILES=$(INDEXFILES) html/index.html html/modindex.html html/acks.html
178
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000179COMMONPERL= perl/manual.perl perl/python.perl perl/l2hinit.perl
180
Fred Drake520b0092001-10-29 17:40:40 +0000181ANNOAPI=api/refcounts.dat tools/anno-api.py
182
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000183include Makefile.deps
Fred Drake33d05b91998-01-13 16:33:09 +0000184
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000185# These must be declared phony since there
186# are directories with matching names:
Greg Ward0862f802000-04-28 16:53:36 +0000187.PHONY: api doc ext lib mac ref tut inst dist
Fred Drake0c77cf12001-10-19 21:12:57 +0000188.PHONY: html info isilo
Fred Drake3f8a59f1998-07-24 13:58:27 +0000189
Fred Drakebbe33c51998-05-07 01:39:06 +0000190
Guido van Rossume83e3801995-03-17 16:01:35 +0000191# Main target
Fred Drake38d53452002-05-25 20:28:46 +0000192default: html
193all: html dvi ps pdf isilo
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000194
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000195dvi: $(DVIFILES)
196pdf: $(PDFFILES)
197ps: $(PSFILES)
Fred Drakee4837a11998-03-06 21:29:34 +0000198
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000199world: ps pdf html distfiles
Guido van Rossum20aca5a1991-01-25 13:29:04 +0000200
Fred Drakef2951131998-05-07 19:30:16 +0000201
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000202# Rules to build PostScript and PDF formats
203.SUFFIXES: .dvi .ps
204
205.dvi.ps:
206 $(DVIPS) -o $@ $<
Fred Draked69e2c41998-05-11 18:25:46 +0000207
208
209# Targets for each document:
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000210# Python/C API Reference Manual
Fred Drake520b0092001-10-29 17:40:40 +0000211paper-$(PAPER)/api.dvi: $(ANNOAPIFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000212 cd paper-$(PAPER) && $(MKDVI) api.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000213
Fred Drake520b0092001-10-29 17:40:40 +0000214paper-$(PAPER)/api.pdf: $(ANNOAPIFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000215 cd paper-$(PAPER) && $(MKPDF) api.tex
Fred Drake15087431999-03-16 16:11:27 +0000216
Fred Drake57b38ed2002-10-04 19:23:06 +0000217paper-$(PAPER)/api.tex: api/api.tex
218 cp api/api.tex $@
Fred Draked69e2c41998-05-11 18:25:46 +0000219
Fred Drake520b0092001-10-29 17:40:40 +0000220paper-$(PAPER)/abstract.tex: api/abstract.tex $(ANNOAPI)
221 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/abstract.tex
222
223paper-$(PAPER)/concrete.tex: api/concrete.tex $(ANNOAPI)
224 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/concrete.tex
225
226paper-$(PAPER)/exceptions.tex: api/exceptions.tex $(ANNOAPI)
227 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/exceptions.tex
228
229paper-$(PAPER)/init.tex: api/init.tex $(ANNOAPI)
230 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/init.tex
231
Fred Drake57b38ed2002-10-04 19:23:06 +0000232paper-$(PAPER)/intro.tex: api/intro.tex
233 cp api/intro.tex $@
Fred Drake520b0092001-10-29 17:40:40 +0000234
235paper-$(PAPER)/memory.tex: api/memory.tex $(ANNOAPI)
236 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/memory.tex
237
238paper-$(PAPER)/newtypes.tex: api/newtypes.tex $(ANNOAPI)
239 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/newtypes.tex
240
241paper-$(PAPER)/refcounting.tex: api/refcounting.tex $(ANNOAPI)
242 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/refcounting.tex
243
244paper-$(PAPER)/utilities.tex: api/utilities.tex $(ANNOAPI)
245 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/utilities.tex
246
247paper-$(PAPER)/veryhigh.tex: api/veryhigh.tex $(ANNOAPI)
248 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/veryhigh.tex
249
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000250# Distributing Python Modules
251paper-$(PAPER)/dist.dvi: $(DISTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000252 cd paper-$(PAPER) && $(MKDVI) ../dist/dist.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000253
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000254paper-$(PAPER)/dist.pdf: $(DISTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000255 cd paper-$(PAPER) && $(MKPDF) ../dist/dist.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000256
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000257# Documenting Python
258paper-$(PAPER)/doc.dvi: $(DOCFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000259 cd paper-$(PAPER) && $(MKDVI) ../doc/doc.tex
Fred Drake3f8a59f1998-07-24 13:58:27 +0000260
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000261paper-$(PAPER)/doc.pdf: $(DOCFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000262 cd paper-$(PAPER) && $(MKPDF) ../doc/doc.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000263
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000264# Extending and Embedding the Python Interpreter
265paper-$(PAPER)/ext.dvi: $(EXTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000266 cd paper-$(PAPER) && $(MKDVI) ../ext/ext.tex
Greg Ward0862f802000-04-28 16:53:36 +0000267
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000268paper-$(PAPER)/ext.pdf: $(EXTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000269 cd paper-$(PAPER) && $(MKPDF) ../ext/ext.tex
Greg Ward0862f802000-04-28 16:53:36 +0000270
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000271# Installing Python Modules
272paper-$(PAPER)/inst.dvi: $(INSTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000273 cd paper-$(PAPER) && $(MKDVI) ../inst/inst.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000274
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000275paper-$(PAPER)/inst.pdf: $(INSTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000276 cd paper-$(PAPER) && $(MKPDF) ../inst/inst.tex
Fred Drakef2951131998-05-07 19:30:16 +0000277
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000278# Python Library Reference
279paper-$(PAPER)/lib.dvi: $(LIBFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000280 cd paper-$(PAPER) && $(MKDVI) ../lib/lib.tex
Fred Drake15087431999-03-16 16:11:27 +0000281
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000282paper-$(PAPER)/lib.pdf: $(LIBFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000283 cd paper-$(PAPER) && $(MKPDF) ../lib/lib.tex
Fred Drakef2951131998-05-07 19:30:16 +0000284
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000285# Macintosh Library Modules
286paper-$(PAPER)/mac.dvi: $(MACFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000287 cd paper-$(PAPER) && $(MKDVI) ../mac/mac.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000288
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000289paper-$(PAPER)/mac.pdf: $(MACFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000290 cd paper-$(PAPER) && $(MKPDF) ../mac/mac.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000291
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000292# Python Reference Manual
293paper-$(PAPER)/ref.dvi: $(REFFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000294 cd paper-$(PAPER) && $(MKDVI) ../ref/ref.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000295
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000296paper-$(PAPER)/ref.pdf: $(REFFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000297 cd paper-$(PAPER) && $(MKPDF) ../ref/ref.tex
Fred Drakeddae4141998-02-17 15:45:25 +0000298
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000299# Python Tutorial
300paper-$(PAPER)/tut.dvi: $(TUTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000301 cd paper-$(PAPER) && $(MKDVI) ../tut/tut.tex
Greg Ward0862f802000-04-28 16:53:36 +0000302
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000303paper-$(PAPER)/tut.pdf: $(TUTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000304 cd paper-$(PAPER) && $(MKPDF) ../tut/tut.tex
Guido van Rossume83e3801995-03-17 16:01:35 +0000305
Fred Drake9ac14de2002-03-26 19:18:18 +0000306# What's New in Python X.Y
Fred Drake4add68b2002-11-26 22:13:41 +0000307paper-$(PAPER)/$(WHATSNEW).dvi: whatsnew/$(WHATSNEW).tex
Fred Drake9ac14de2002-03-26 19:18:18 +0000308 cd paper-$(PAPER) && $(MKDVI) ../whatsnew/$(WHATSNEW).tex
309
Fred Drake4add68b2002-11-26 22:13:41 +0000310paper-$(PAPER)/$(WHATSNEW).pdf: whatsnew/$(WHATSNEW).tex
Fred Drake9ac14de2002-03-26 19:18:18 +0000311 cd paper-$(PAPER) && $(MKPDF) ../whatsnew/$(WHATSNEW).tex
312
Guido van Rossume83e3801995-03-17 16:01:35 +0000313# The remaining part of the Makefile is concerned with various
Guido van Rossum73827c61995-03-20 13:00:32 +0000314# conversions, as described above. See also the README file.
Guido van Rossume83e3801995-03-17 16:01:35 +0000315
Fred Drakeb9838d91998-05-08 15:43:08 +0000316info:
Fred Drakefa00f912003-07-16 04:01:04 +0000317 cd $(INFODIR) && $(MAKE) EMACS=$(EMACS) WHATSNEW=$(WHATSNEW)
Fred Drake5ad78f31998-02-22 19:47:13 +0000318
Guido van Rossum73827c61995-03-20 13:00:32 +0000319# Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to
320# HTML converter. For more info on this program, see
Guido van Rossume83e3801995-03-17 16:01:35 +0000321# <URL:http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html>.
Guido van Rossume83e3801995-03-17 16:01:35 +0000322
Guido van Rossum9cb64801997-12-29 20:01:55 +0000323# Note that LaTeX2HTML inserts references to an icons directory in
324# each page that it generates. I have placed a copy of this directory
325# in the distribution to simplify the process of creating a
326# self-contained HTML distribution; for this purpose I have also added
327# a (trivial) index.html. Change the definition of $ICONSERVER in
Fred Drake9fab3aa1998-04-28 19:20:43 +0000328# perl/l2hinit.perl to use a different location for the icons directory.
Guido van Rossume83e3801995-03-17 16:01:35 +0000329
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000330# If you have the standard LaTeX2HTML icons installed, the versions shipped
331# with this documentation should be stored in a separate directory and used
332# instead. The standard set does *not* include all the icons used in the
333# Python documentation.
Fred Drakebbe33c51998-05-07 01:39:06 +0000334
Fred Drake0099d8f2001-10-25 15:12:31 +0000335$(ALLCSSFILES): html/style.css
336 cp $< $@
337
Fred Drake5af41c52003-05-22 15:28:55 +0000338$(INDEXFILES): $(COMMONPERL) html/stdabout.dat tools/node2label.pl
Guido van Rossum6938f061994-08-01 12:22:53 +0000339
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000340html/acks.html: ACKS $(TOOLSDIR)/support.py $(TOOLSDIR)/mkackshtml
Fred Drake1385a572001-07-17 16:53:19 +0000341 $(PYTHON) $(TOOLSDIR)/mkackshtml --address $(PYTHONDOCS) \
Fred Drakeb1510d52002-10-30 17:07:02 +0000342 --favicon icons/pyfav.gif \
Fred Draked27ed852001-02-22 23:06:21 +0000343 --output html/acks.html <ACKS
Guido van Rossum6938f061994-08-01 12:22:53 +0000344
Fred Drake1385a572001-07-17 16:53:19 +0000345
346# html/index.html is dependent on $(INDEXFILES) since we want the date
347# on the front index to be updated whenever any of the child documents
348# are updated and boilerplate.tex uses \today as the date. The index
349# files are not used to actually generate content.
350
351BOILERPLATE=texinputs/boilerplate.tex
352html/index.html: $(INDEXFILES)
353html/index.html: html/index.html.in $(BOILERPLATE) tools/rewrite.py
Fred Drake4e526fe2002-03-26 20:29:11 +0000354 $(PYTHON) tools/rewrite.py $(BOILERPLATE) \
355 RELEASE=$(RELEASE) WHATSNEW=$(WHATSNEW) \
Fred Drake1385a572001-07-17 16:53:19 +0000356 <$< >$@
357
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000358html/modindex.html: $(TOOLSDIR)/support.py $(TOOLSDIR)/mkmodindex
359html/modindex.html: html/lib/lib.html html/mac/mac.html
Fred Drake1385a572001-07-17 16:53:19 +0000360 cd html && \
361 $(PYTHON) ../$(TOOLSDIR)/mkmodindex --columns 4 \
362 --output modindex.html --address $(PYTHONDOCS) \
Fred Drakeb1510d52002-10-30 17:07:02 +0000363 --favicon icons/pyfav.gif \
Fred Drake1385a572001-07-17 16:53:19 +0000364 lib/modindex.html mac/modindex.html
Fred Drake7d5f5dd1999-03-18 19:08:47 +0000365
Fred Drake0099d8f2001-10-25 15:12:31 +0000366html: $(ALLHTMLFILES) $(HTMLCSSFILES)
Guido van Rossum970871f1993-02-21 20:10:26 +0000367
Fred Drake0099d8f2001-10-25 15:12:31 +0000368api: html/api/api.html html/api/api.css
Fred Drakedb2e3e32002-05-23 19:41:25 +0000369html/api/api.html: $(APIFILES) api/refcounts.dat
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000370 $(MKHTML) --dir html/api api/api.tex
Fred Drakea6bb3961998-05-06 19:51:39 +0000371
Fred Drake0099d8f2001-10-25 15:12:31 +0000372doc: html/doc/doc.html html/doc/doc.css
373html/doc/doc.html: $(DOCFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000374 $(MKHTML) --dir html/doc doc/doc.tex
Fred Drakecdbd3911998-05-15 17:02:10 +0000375
Fred Drake0099d8f2001-10-25 15:12:31 +0000376ext: html/ext/ext.html html/ext/ext.css
377html/ext/ext.html: $(EXTFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000378 $(MKHTML) --dir html/ext ext/ext.tex
Guido van Rossume83e3801995-03-17 16:01:35 +0000379
Fred Drake0099d8f2001-10-25 15:12:31 +0000380lib: html/lib/lib.html html/lib/lib.css
381html/lib/lib.html: $(LIBFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000382 $(MKHTML) --dir html/lib lib/lib.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000383
Fred Drake0099d8f2001-10-25 15:12:31 +0000384mac: html/mac/mac.html html/mac/mac.css
385html/mac/mac.html: $(MACFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000386 $(MKHTML) --dir html/mac mac/mac.tex
Greg Ward0862f802000-04-28 16:53:36 +0000387
Fred Drake0099d8f2001-10-25 15:12:31 +0000388ref: html/ref/ref.html html/ref/ref.css
389html/ref/ref.html: $(REFFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000390 $(MKHTML) --dir html/ref ref/ref.tex
Greg Ward0862f802000-04-28 16:53:36 +0000391
Fred Drake0099d8f2001-10-25 15:12:31 +0000392tut: html/tut/tut.html html/tut/tut.css
393html/tut/tut.html: $(TUTFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000394 $(MKHTML) --dir html/tut --numeric --split 3 tut/tut.tex
395
Fred Drake0099d8f2001-10-25 15:12:31 +0000396inst: html/inst/inst.html html/inst/inst.css
397html/inst/inst.html: $(INSTFILES) perl/distutils.perl
Fred Drake8c011582001-03-01 18:38:56 +0000398 $(MKHTML) --dir html/inst --split 4 inst/inst.tex
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000399
Fred Drake0099d8f2001-10-25 15:12:31 +0000400dist: html/dist/dist.html html/dist/dist.css
401html/dist/dist.html: $(DISTFILES) perl/distutils.perl
Fred Drake8c011582001-03-01 18:38:56 +0000402 $(MKHTML) --dir html/dist --split 4 dist/dist.tex
Fred Drakee7a8c972000-04-07 16:27:15 +0000403
Fred Drake9ac14de2002-03-26 19:18:18 +0000404whatsnew: html/whatsnew/$(WHATSNEW).html
405html/whatsnew/$(WHATSNEW).html: whatsnew/$(WHATSNEW).tex
406 $(MKHTML) --dir html/whatsnew --split 4 whatsnew/$(WHATSNEW).tex
407
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000408
Fred Drake0c77cf12001-10-19 21:12:57 +0000409# The iSilo format is used by the iSilo document reader for PalmOS devices.
410
411ISILOINDEXFILES=isilo/api/api.html \
412 isilo/doc/doc.html \
413 isilo/ext/ext.html \
414 isilo/lib/lib.html \
415 isilo/mac/mac.html \
416 isilo/ref/ref.html \
417 isilo/tut/tut.html \
418 isilo/inst/inst.html \
Fred Drake30140862002-03-26 19:53:56 +0000419 isilo/dist/dist.html \
420 isilo/whatsnew/$(WHATSNEW).html
Fred Drake0c77cf12001-10-19 21:12:57 +0000421
Fred Drake5af41c52003-05-22 15:28:55 +0000422$(ISILOINDEXFILES): $(COMMONPERL) html/stdabout.dat perl/isilo.perl
Fred Drake0c77cf12001-10-19 21:12:57 +0000423
Fred Drake1a0199a2002-08-09 20:20:50 +0000424isilo: isilo/python-api.pdb \
425 isilo/python-doc.pdb \
426 isilo/python-ext.pdb \
427 isilo/python-lib.pdb \
428 isilo/python-mac.pdb \
429 isilo/python-ref.pdb \
430 isilo/python-tut.pdb \
431 isilo/python-dist.pdb \
432 isilo/python-inst.pdb \
433 isilo/python-whatsnew.pdb
Fred Drake0c77cf12001-10-19 21:12:57 +0000434
Fred Drake1a0199a2002-08-09 20:20:50 +0000435isilo/python-api.pdb: isilo/api/api.html isilo/api/api.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000436 $(MKISILO) "-iPython/C API Reference Manual" \
437 isilo/api/api.html $@
438
Fred Drake1a0199a2002-08-09 20:20:50 +0000439isilo/python-doc.pdb: isilo/doc/doc.html isilo/doc/doc.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000440 $(MKISILO) "-iDocumenting Python" \
441 isilo/doc/doc.html $@
442
Fred Drake1a0199a2002-08-09 20:20:50 +0000443isilo/python-ext.pdb: isilo/ext/ext.html isilo/ext/ext.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000444 $(MKISILO) "-iExtending & Embedding Python" \
445 isilo/ext/ext.html $@
446
Fred Drake1a0199a2002-08-09 20:20:50 +0000447isilo/python-lib.pdb: isilo/lib/lib.html isilo/lib/lib.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000448 $(MKISILO) "-iPython Library Reference" \
449 isilo/lib/lib.html $@
450
Fred Drake1a0199a2002-08-09 20:20:50 +0000451isilo/python-mac.pdb: isilo/mac/mac.html isilo/mac/mac.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000452 $(MKISILO) "-iPython/C API Reference Manual" \
453 isilo/mac/mac.html $@
454
Fred Drake1a0199a2002-08-09 20:20:50 +0000455isilo/python-ref.pdb: isilo/ref/ref.html isilo/ref/ref.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000456 $(MKISILO) "-iPython Reference Manual" \
457 isilo/ref/ref.html $@
458
Fred Drake1a0199a2002-08-09 20:20:50 +0000459isilo/python-tut.pdb: isilo/tut/tut.html isilo/tut/tut.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000460 $(MKISILO) "-iPython Tutorial" \
461 isilo/tut/tut.html $@
462
Fred Drake1a0199a2002-08-09 20:20:50 +0000463isilo/python-dist.pdb: isilo/dist/dist.html isilo/dist/dist.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000464 $(MKISILO) "-iDistributing Python Modules" \
465 isilo/dist/dist.html $@
466
Fred Drake1a0199a2002-08-09 20:20:50 +0000467isilo/python-inst.pdb: isilo/inst/inst.html isilo/inst/inst.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000468 $(MKISILO) "-iInstalling Python Modules" \
469 isilo/inst/inst.html $@
470
Fred Drake1a0199a2002-08-09 20:20:50 +0000471isilo/python-whatsnew.pdb: isilo/whatsnew/$(WHATSNEW).html isilo/whatsnew/$(WHATSNEW).css
Fred Drake30140862002-03-26 19:53:56 +0000472 $(MKISILO) "-iWhat's New in Python X.Y" \
473 isilo/whatsnew/$(WHATSNEW).html $@
474
Fred Drakedb2e3e32002-05-23 19:41:25 +0000475isilo/api/api.html: $(APIFILES) api/refcounts.dat
Fred Drake0c77cf12001-10-19 21:12:57 +0000476 $(MKISILOHTML) --dir isilo/api api/api.tex
477
478isilo/doc/doc.html: $(DOCFILES)
479 $(MKISILOHTML) --dir isilo/doc doc/doc.tex
480
481isilo/ext/ext.html: $(EXTFILES)
482 $(MKISILOHTML) --dir isilo/ext ext/ext.tex
483
484isilo/lib/lib.html: $(LIBFILES)
485 $(MKISILOHTML) --dir isilo/lib lib/lib.tex
486
487isilo/mac/mac.html: $(MACFILES)
488 $(MKISILOHTML) --dir isilo/mac mac/mac.tex
489
490isilo/ref/ref.html: $(REFFILES)
491 $(MKISILOHTML) --dir isilo/ref ref/ref.tex
492
493isilo/tut/tut.html: $(TUTFILES)
494 $(MKISILOHTML) --dir isilo/tut tut/tut.tex
495
496isilo/inst/inst.html: $(INSTFILES) perl/distutils.perl
497 $(MKISILOHTML) --dir isilo/inst inst/inst.tex
498
499isilo/dist/dist.html: $(DISTFILES) perl/distutils.perl
500 $(MKISILOHTML) --dir isilo/dist dist/dist.tex
501
Fred Drake9ac14de2002-03-26 19:18:18 +0000502isilo/whatsnew/$(WHATSNEW).html: whatsnew/$(WHATSNEW).tex
503 $(MKISILOHTML) --dir isilo/whatsnew whatsnew/$(WHATSNEW).tex
504
Fred Drake0c77cf12001-10-19 21:12:57 +0000505# These are useful if you need to transport the iSilo-ready HTML to
506# another machine to perform the conversion:
507
508isilozip: isilo-html-$(RELEASE).zip
509
510isilo-html-$(RELEASE).zip: $(ISILOINDEXFILES)
511 rm -f $@
512 cd isilo && \
513 zip -q -9 ../$@ */*.css */*.html */*.txt
514
515
Fred Drakee4837a11998-03-06 21:29:34 +0000516# webchecker needs an extra flag to process the huge index from the libref
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000517WEBCHECKER=$(PYTHON) ../Tools/webchecker/webchecker.py
518HTMLBASE= file:`pwd`/html
519
Fred Drake5afb5e52001-07-18 21:17:29 +0000520webcheck: $(ALLHTMLFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000521 $(WEBCHECKER) $(HTMLBASE)/api/
522 $(WEBCHECKER) $(HTMLBASE)/doc/
523 $(WEBCHECKER) $(HTMLBASE)/ext/
524 $(WEBCHECKER) -m290000 $(HTMLBASE)/lib/
525 $(WEBCHECKER) $(HTMLBASE)/mac/
526 $(WEBCHECKER) $(HTMLBASE)/ref/
527 $(WEBCHECKER) $(HTMLBASE)/tut/
528 $(WEBCHECKER) $(HTMLBASE)/dist/
529 $(WEBCHECKER) $(HTMLBASE)/inst/
Fred Drake30140862002-03-26 19:53:56 +0000530 $(WEBCHECKER) $(HTMLBASE)/whatsnew/
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000531
Fred Drake5afb5e52001-07-18 21:17:29 +0000532fastwebcheck: $(ALLHTMLFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000533 $(WEBCHECKER) -x $(HTMLBASE)/api/
534 $(WEBCHECKER) -x $(HTMLBASE)/doc/
535 $(WEBCHECKER) -x $(HTMLBASE)/ext/
536 $(WEBCHECKER) -x -m290000 $(HTMLBASE)/lib/
537 $(WEBCHECKER) -x $(HTMLBASE)/mac/
538 $(WEBCHECKER) -x $(HTMLBASE)/ref/
539 $(WEBCHECKER) -x $(HTMLBASE)/tut/
540 $(WEBCHECKER) -x $(HTMLBASE)/dist/
541 $(WEBCHECKER) -x $(HTMLBASE)/inst/
Fred Drake30140862002-03-26 19:53:56 +0000542 $(WEBCHECKER) -x $(HTMLBASE)/whatsnew/
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000543
544
545# Release packaging targets:
Fred Drakee4837a11998-03-06 21:29:34 +0000546
Fred Drake5afb5e52001-07-18 21:17:29 +0000547paper-$(PAPER)/README: $(PSFILES) $(TOOLSDIR)/getpagecounts
Fred Drake3d0b6972002-04-17 03:31:08 +0000548 cd paper-$(PAPER) && ../$(TOOLSDIR)/getpagecounts -r $(RELEASE) >../$@
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000549
Fred Drakeb6584ca1999-01-08 15:49:45 +0000550info-$(RELEASE).tgz: info
Fred Drake1385a572001-07-17 16:53:19 +0000551 cd $(INFODIR) && tar cf - README python.dir python-*.info* \
Fred Drakede7cdb22003-07-17 11:55:18 +0000552 | gzip -9 >../$@
Fred Drakea7998351998-02-19 16:01:04 +0000553
Fred Drake4ef3ea01999-07-27 16:30:59 +0000554info-$(RELEASE).tar.bz2: info
Fred Drake1385a572001-07-17 16:53:19 +0000555 cd $(INFODIR) && tar cf - README python.dir python-*.info* \
Fred Drakede7cdb22003-07-17 11:55:18 +0000556 | bzip2 -9 >../$@
Fred Drake4ef3ea01999-07-27 16:30:59 +0000557
Fred Drakee34ab301998-05-11 21:10:15 +0000558latex-$(RELEASE).tgz:
Fred Drake1385a572001-07-17 16:53:19 +0000559 $(PYTHON) $(TOOLSDIR)/mksourcepkg --gzip $(RELEASE)
Fred Drakee61d7af1998-03-05 16:37:34 +0000560
Fred Drake4ef3ea01999-07-27 16:30:59 +0000561latex-$(RELEASE).tar.bz2:
Fred Drake1385a572001-07-17 16:53:19 +0000562 $(PYTHON) $(TOOLSDIR)/mksourcepkg --bzip2 $(RELEASE)
Fred Drake4ef3ea01999-07-27 16:30:59 +0000563
Fred Drake7dcc69a1999-07-23 16:11:36 +0000564latex-$(RELEASE).zip:
Fred Drake02ba6212000-04-04 20:58:25 +0000565 rm -f $@
Fred Drake1385a572001-07-17 16:53:19 +0000566 $(PYTHON) $(TOOLSDIR)/mksourcepkg --zip $(RELEASE)
Fred Drake7dcc69a1999-07-23 16:11:36 +0000567
Fred Drake5afb5e52001-07-18 21:17:29 +0000568pdf-$(PAPER)-$(RELEASE).tar: $(PDFFILES)
Fred Drake1a0199a2002-08-09 20:20:50 +0000569 rm -f $@
570 mkdir Python-Docs-$(RELEASE)
571 cp paper-$(PAPER)/*.pdf 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 +0000575pdf-$(PAPER)-$(RELEASE).tgz: pdf-$(PAPER)-$(RELEASE).tar
576 gzip -9 <$? >$@
577
578pdf-$(PAPER)-$(RELEASE).tar.bz2: pdf-$(PAPER)-$(RELEASE).tar
579 bzip2 -9 <$? >$@
Fred Drake4ef3ea01999-07-27 16:30:59 +0000580
Fred Drake7dcc69a1999-07-23 16:11:36 +0000581pdf-$(PAPER)-$(RELEASE).zip: pdf
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)/*.pdf Python-Docs-$(RELEASE)
585 zip -q -r -9 $@ Python-Docs-$(RELEASE)
586 rm -r Python-Docs-$(RELEASE)
Fred Drake7dcc69a1999-07-23 16:11:36 +0000587
Fred Drake5afb5e52001-07-18 21:17:29 +0000588postscript-$(PAPER)-$(RELEASE).tar: $(PSFILES) paper-$(PAPER)/README
Fred Drake1a0199a2002-08-09 20:20:50 +0000589 rm -f $@
590 mkdir Python-Docs-$(RELEASE)
591 cp paper-$(PAPER)/*.ps Python-Docs-$(RELEASE)
592 cp paper-$(PAPER)/README Python-Docs-$(RELEASE)
593 tar cf $@ Python-Docs-$(RELEASE)
594 rm -r Python-Docs-$(RELEASE)
Fred Drake04cf4dc1998-02-12 22:33:50 +0000595
Fred Drake5afb5e52001-07-18 21:17:29 +0000596postscript-$(PAPER)-$(RELEASE).tar.bz2: postscript-$(PAPER)-$(RELEASE).tar
597 bzip2 -9 <$< >$@
Fred Drake4ef3ea01999-07-27 16:30:59 +0000598
Fred Drake5afb5e52001-07-18 21:17:29 +0000599postscript-$(PAPER)-$(RELEASE).tgz: postscript-$(PAPER)-$(RELEASE).tar
600 gzip -9 <$< >$@
601
602postscript-$(PAPER)-$(RELEASE).zip: $(PSFILES) paper-$(PAPER)/README
Fred Drake02ba6212000-04-04 20:58:25 +0000603 rm -f $@
Fred Drake1a0199a2002-08-09 20:20:50 +0000604 mkdir Python-Docs-$(RELEASE)
605 cp paper-$(PAPER)/*.ps Python-Docs-$(RELEASE)
606 cp paper-$(PAPER)/README Python-Docs-$(RELEASE)
607 zip -q -r -9 $@ Python-Docs-$(RELEASE)
608 rm -r Python-Docs-$(RELEASE)
609
610HTMLPKGFILES=*.html */*.css */*.html */*.gif */*.txt
Fred Drake7dcc69a1999-07-23 16:11:36 +0000611
Fred Drake0099d8f2001-10-25 15:12:31 +0000612html-$(RELEASE).tar: $(ALLHTMLFILES) $(HTMLCSSFILES)
Fred Drake1a0199a2002-08-09 20:20:50 +0000613 mkdir Python-Docs-$(RELEASE)
614 cd html && tar cf ../temp.tar $(HTMLPKGFILES)
615 cd Python-Docs-$(RELEASE) && tar xf ../temp.tar
616 rm temp.tar
617 tar cf html-$(RELEASE).tar Python-Docs-$(RELEASE)
618 rm -r Python-Docs-$(RELEASE)
Fred Drake33d05b91998-01-13 16:33:09 +0000619
Fred Drake8f65aef2001-07-17 23:35:46 +0000620html-$(RELEASE).tgz: html-$(RELEASE).tar
Fred Drake5afb5e52001-07-18 21:17:29 +0000621 gzip -9 <$? >$@
Fred Drake8f65aef2001-07-17 23:35:46 +0000622
623html-$(RELEASE).tar.bz2: html-$(RELEASE).tar
Fred Drake5afb5e52001-07-18 21:17:29 +0000624 bzip2 -9 <$? >$@
Fred Drake4ef3ea01999-07-27 16:30:59 +0000625
Fred Drake0099d8f2001-10-25 15:12:31 +0000626html-$(RELEASE).zip: $(ALLHTMLFILES) $(HTMLCSSFILES)
Fred Drake02ba6212000-04-04 20:58:25 +0000627 rm -f $@
Fred Drake1a0199a2002-08-09 20:20:50 +0000628 mkdir Python-Docs-$(RELEASE)
629 cd html && tar cf ../temp.tar $(HTMLPKGFILES)
630 cd Python-Docs-$(RELEASE) && tar xf ../temp.tar
631 rm temp.tar
632 zip -q -r -9 $@ Python-Docs-$(RELEASE)
633 rm -r Python-Docs-$(RELEASE)
Fred Drake7dcc69a1999-07-23 16:11:36 +0000634
Fred Drake0c77cf12001-10-19 21:12:57 +0000635isilo-$(RELEASE).zip: isilo
Fred Drake1a0199a2002-08-09 20:20:50 +0000636 rm -f $@
637 mkdir Python-Docs-$(RELEASE)
638 cp isilo/python-*.pdb Python-Docs-$(RELEASE)
639 zip -q -r -9 $@ Python-Docs-$(RELEASE)
640 rm -r Python-Docs-$(RELEASE)
Fred Drake0c77cf12001-10-19 21:12:57 +0000641
642
Fred Drakea7998351998-02-19 16:01:04 +0000643# convenience targets:
644
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000645tarhtml: html-$(RELEASE).tgz
Fred Drakeb6584ca1999-01-08 15:49:45 +0000646tarinfo: info-$(RELEASE).tgz
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000647tarps: postscript-$(PAPER)-$(RELEASE).tgz
648tarpdf: pdf-$(PAPER)-$(RELEASE).tgz
649tarlatex: latex-$(RELEASE).tgz
Fred Drakebbe33c51998-05-07 01:39:06 +0000650
Fred Drake83c09831999-08-02 20:20:14 +0000651tarballs: tarpdf tarps tarhtml
Guido van Rossum84cca441997-11-25 20:49:09 +0000652
Fred Drake7dcc69a1999-07-23 16:11:36 +0000653ziphtml: html-$(RELEASE).zip
654zipps: postscript-$(PAPER)-$(RELEASE).zip
655zippdf: pdf-$(PAPER)-$(RELEASE).zip
656ziplatex: latex-$(RELEASE).zip
Fred Drake0c77cf12001-10-19 21:12:57 +0000657zipisilo: isilo-$(RELEASE).zip
Fred Drake7dcc69a1999-07-23 16:11:36 +0000658
Fred Drakeb906d2e2000-07-01 02:37:37 +0000659zips: zippdf zipps ziphtml
Fred Drake7dcc69a1999-07-23 16:11:36 +0000660
Fred Drake4ef3ea01999-07-27 16:30:59 +0000661bziphtml: html-$(RELEASE).tar.bz2
662bzipinfo: info-$(RELEASE).tar.bz2
663bzipps: postscript-$(PAPER)-$(RELEASE).tar.bz2
664bzippdf: pdf-$(PAPER)-$(RELEASE).tar.bz2
665bziplatex: latex-$(RELEASE).tar.bz2
666
Fred Drake83c09831999-08-02 20:20:14 +0000667bzips: bzippdf bzipps bziphtml
Fred Drake4ef3ea01999-07-27 16:30:59 +0000668
Fred Drakefc4ee0a2001-04-13 18:00:23 +0000669disthtml: tarhtml bziphtml ziphtml
670distinfo: tarinfo bzipinfo
671distps: tarps bzipps zipps
672distpdf: tarpdf bzippdf zippdf
673distlatex: tarlatex bziplatex ziplatex
674
Fred Drake5afb5e52001-07-18 21:17:29 +0000675paperdist: distpdf distps
Fred Drake0106e1d2003-07-17 15:29:16 +0000676edist: disthtml distinfo zipisilo
Fred Drake5afb5e52001-07-18 21:17:29 +0000677
Fred Drakede7cdb22003-07-17 11:55:18 +0000678pkglist:
679 $(TOOLSDIR)/mkpkglist >pkglist.html
680
Fred Drake5afb5e52001-07-18 21:17:29 +0000681distfiles: paperdist edist
Fred Drake88634602001-01-25 17:32:51 +0000682 $(TOOLSDIR)/mksourcepkg --all $(RELEASE)
Fred Drake444e4342003-04-23 15:04:52 +0000683 $(TOOLSDIR)/mkpkglist >pkglist.html
Fred Drake4ef3ea01999-07-27 16:30:59 +0000684
Guido van Rossume83e3801995-03-17 16:01:35 +0000685
686# Housekeeping targets
687
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000688# Remove temporary files; all except the following:
Fred Drake6659c301998-03-03 22:02:19 +0000689# - sources: .tex, .bib, .sty, *.cls
Fred Drake04cf4dc1998-02-12 22:33:50 +0000690# - useful results: .dvi, .pdf, .ps, .texi, .info
Fred Drakee4837a11998-03-06 21:29:34 +0000691clean:
Fred Drake8f65aef2001-07-17 23:35:46 +0000692 rm -f html-$(RELEASE).tar
Fred Drake1385a572001-07-17 16:53:19 +0000693 cd $(INFODIR) && $(MAKE) clean
Guido van Rossum5b343731992-07-07 09:06:34 +0000694
Guido van Rossume83e3801995-03-17 16:01:35 +0000695# Remove temporaries as well as final products
Fred Drakeb6584ca1999-01-08 15:49:45 +0000696clobber:
Fred Drake8f65aef2001-07-17 23:35:46 +0000697 rm -f html-$(RELEASE).tar
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000698 rm -f html-$(RELEASE).tgz info-$(RELEASE).tgz
699 rm -f pdf-$(RELEASE).tgz postscript-$(RELEASE).tgz
Fred Drake7dcc69a1999-07-23 16:11:36 +0000700 rm -f latex-$(RELEASE).tgz html-$(RELEASE).zip
701 rm -f pdf-$(RELEASE).zip postscript-$(RELEASE).zip
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000702 rm -f $(DVIFILES) $(PSFILES) $(PDFFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000703 cd $(INFODIR) && $(MAKE) clobber
Fred Drake210d3cc2002-02-04 19:49:29 +0000704 rm -f paper-$(PAPER)/*.tex paper-$(PAPER)/*.ind paper-$(PAPER)/*.idx
705 rm -f paper-$(PAPER)/*.l2h paper-$(PAPER)/*.how paper-$(PAPER)/README
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000706 rm -rf html/index.html html/modindex.html html/acks.html
707 rm -rf html/api/ html/doc/ html/ext/ html/lib/ html/mac/
708 rm -rf html/ref/ html/tut/ html/inst/ html/dist/
Fred Drake30140862002-03-26 19:53:56 +0000709 rm -rf html/whatsnew/
Fred Drake0c77cf12001-10-19 21:12:57 +0000710 rm -rf isilo/api/ isilo/doc/ isilo/ext/ isilo/lib/ isilo/mac/
711 rm -rf isilo/ref/ isilo/tut/ isilo/inst/ isilo/dist/
Fred Drake30140862002-03-26 19:53:56 +0000712 rm -rf isilo/whatsnew/
Fred Drake1a0199a2002-08-09 20:20:50 +0000713 rm -f isilo/python-*.pdb isilo-$(RELEASE).zip
Fred Drake5ad78f31998-02-22 19:47:13 +0000714
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000715realclean distclean: clobber