blob: 2bde5f10419ac7fe518960b9259ab52013e8978e [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 Drake210d3cc2002-02-04 19:49:29 +000069RELEASE=2.3a0
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 Drakef6bfe8e2001-02-19 19:19:26 +000076 --address $(PYTHONDOCS) --up-link ../index.html \
77 --up-title "Python Documentation Index" \
Fred Drake345b8df2001-10-30 16:28:46 +000078 --global-module-index "../modindex.html" --dvips-safe
Fred Drake0c77cf12001-10-19 21:12:57 +000079MKISILOHTML=$(PYTHON) tools/mkhowto --html --about html/stdabout.dat \
Fred Drake345b8df2001-10-30 16:28:46 +000080 --l2h-init perl/isilo.perl --numeric --split 1 \
81 --dvips-safe
Fred Drake0c77cf12001-10-19 21:12:57 +000082MKISILO= iSilo386 -U -y -rCR -d0
Fred Drake1385a572001-07-17 16:53:19 +000083MKPDF= $(PYTHON) ../tools/mkhowto --paper=$(PAPER) --pdf
84MKPS= $(PYTHON) ../tools/mkhowto --paper=$(PAPER) --ps
Fred Drakef6bfe8e2001-02-19 19:19:26 +000085
86BUILDINDEX=$(TOOLSDIR)/buildindex.py
87
Fred Drake1385a572001-07-17 16:53:19 +000088PYTHONDOCS="See <i><a href=\"about.html\">About this document...</a></i> for information on suggesting changes."
Fred Drakef6bfe8e2001-02-19 19:19:26 +000089HTMLBASE= file:`pwd`
90
Fred Drake30140862002-03-26 19:53:56 +000091# The end of this should reflect the major/minor version numbers of
92# the release:
Fred Drake9ac14de2002-03-26 19:18:18 +000093WHATSNEW=whatsnew23
94
Fred Drakef6bfe8e2001-02-19 19:19:26 +000095# what's what
96MANDVIFILES= paper-$(PAPER)/api.dvi paper-$(PAPER)/ext.dvi \
97 paper-$(PAPER)/lib.dvi paper-$(PAPER)/mac.dvi \
98 paper-$(PAPER)/ref.dvi paper-$(PAPER)/tut.dvi
99HOWTODVIFILES= paper-$(PAPER)/doc.dvi paper-$(PAPER)/inst.dvi \
Fred Drake9ac14de2002-03-26 19:18:18 +0000100 paper-$(PAPER)/dist.dvi paper-$(PAPER)/$(WHATSNEW).dvi
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000101
102MANPDFFILES= paper-$(PAPER)/api.pdf paper-$(PAPER)/ext.pdf \
103 paper-$(PAPER)/lib.pdf paper-$(PAPER)/mac.pdf \
104 paper-$(PAPER)/ref.pdf paper-$(PAPER)/tut.pdf
105HOWTOPDFFILES= paper-$(PAPER)/doc.pdf paper-$(PAPER)/inst.pdf \
Fred Drake9ac14de2002-03-26 19:18:18 +0000106 paper-$(PAPER)/dist.pdf paper-$(PAPER)/$(WHATSNEW).pdf
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000107
108MANPSFILES= paper-$(PAPER)/api.ps paper-$(PAPER)/ext.ps \
109 paper-$(PAPER)/lib.ps paper-$(PAPER)/mac.ps \
110 paper-$(PAPER)/ref.ps paper-$(PAPER)/tut.ps
111HOWTOPSFILES= paper-$(PAPER)/doc.ps paper-$(PAPER)/inst.ps \
Fred Drake9ac14de2002-03-26 19:18:18 +0000112 paper-$(PAPER)/dist.ps paper-$(PAPER)/$(WHATSNEW).ps
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000113
114DVIFILES= $(MANDVIFILES) $(HOWTODVIFILES)
115PDFFILES= $(MANPDFFILES) $(HOWTOPDFFILES)
116PSFILES= $(MANPSFILES) $(HOWTOPSFILES)
117
Fred Drake0099d8f2001-10-25 15:12:31 +0000118HTMLCSSFILES=html/api/api.css \
119 html/doc/doc.css \
120 html/ext/ext.css \
121 html/lib/lib.css \
122 html/mac/mac.css \
123 html/ref/ref.css \
124 html/tut/tut.css \
125 html/inst/inst.css \
126 html/dist/dist.css
127
128ISILOCSSFILES=isilo/api/api.css \
129 isilo/doc/doc.css \
130 isilo/ext/ext.css \
131 isilo/lib/lib.css \
132 isilo/mac/mac.css \
133 isilo/ref/ref.css \
134 isilo/tut/tut.css \
135 isilo/inst/inst.css \
136 isilo/dist/dist.css
137
138ALLCSSFILES=$(HTMLCSSFILES) $(ISILOCSSFILES)
139
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000140INDEXFILES=html/api/api.html \
141 html/doc/doc.html \
142 html/ext/ext.html \
143 html/lib/lib.html \
144 html/mac/mac.html \
145 html/ref/ref.html \
146 html/tut/tut.html \
147 html/inst/inst.html \
Fred Drake9ac14de2002-03-26 19:18:18 +0000148 html/dist/dist.html \
149 html/whatsnew/$(WHATSNEW).html
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000150
Fred Drake5afb5e52001-07-18 21:17:29 +0000151ALLHTMLFILES=$(INDEXFILES) html/index.html html/modindex.html html/acks.html
152
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000153COMMONPERL= perl/manual.perl perl/python.perl perl/l2hinit.perl
154
Fred Drake520b0092001-10-29 17:40:40 +0000155ANNOAPI=api/refcounts.dat tools/anno-api.py
156
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000157include Makefile.deps
Fred Drake33d05b91998-01-13 16:33:09 +0000158
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000159# These must be declared phony since there
160# are directories with matching names:
Greg Ward0862f802000-04-28 16:53:36 +0000161.PHONY: api doc ext lib mac ref tut inst dist
Fred Drake0c77cf12001-10-19 21:12:57 +0000162.PHONY: html info isilo
Fred Drake3f8a59f1998-07-24 13:58:27 +0000163
Fred Drakebbe33c51998-05-07 01:39:06 +0000164
Guido van Rossume83e3801995-03-17 16:01:35 +0000165# Main target
Fred Drake3a045e82001-01-22 20:47:26 +0000166all: html
Guido van Rossumeb8d5031996-08-09 21:46:05 +0000167
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000168dvi: $(DVIFILES)
169pdf: $(PDFFILES)
170ps: $(PSFILES)
Fred Drakee4837a11998-03-06 21:29:34 +0000171
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000172world: ps pdf html distfiles
Guido van Rossum20aca5a1991-01-25 13:29:04 +0000173
Fred Drakef2951131998-05-07 19:30:16 +0000174
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000175# Rules to build PostScript and PDF formats
176.SUFFIXES: .dvi .ps
177
178.dvi.ps:
179 $(DVIPS) -o $@ $<
Fred Draked69e2c41998-05-11 18:25:46 +0000180
181
182# Targets for each document:
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000183# Python/C API Reference Manual
Fred Drake520b0092001-10-29 17:40:40 +0000184paper-$(PAPER)/api.dvi: $(ANNOAPIFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000185 cd paper-$(PAPER) && $(MKDVI) api.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000186
Fred Drake520b0092001-10-29 17:40:40 +0000187paper-$(PAPER)/api.pdf: $(ANNOAPIFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000188 cd paper-$(PAPER) && $(MKPDF) api.tex
Fred Drake15087431999-03-16 16:11:27 +0000189
Fred Drake520b0092001-10-29 17:40:40 +0000190paper-$(PAPER)/api.tex: api/api.tex $(ANNOAPI)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000191 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/api.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000192
Fred Drake520b0092001-10-29 17:40:40 +0000193paper-$(PAPER)/abstract.tex: api/abstract.tex $(ANNOAPI)
194 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/abstract.tex
195
196paper-$(PAPER)/concrete.tex: api/concrete.tex $(ANNOAPI)
197 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/concrete.tex
198
199paper-$(PAPER)/exceptions.tex: api/exceptions.tex $(ANNOAPI)
200 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/exceptions.tex
201
202paper-$(PAPER)/init.tex: api/init.tex $(ANNOAPI)
203 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/init.tex
204
205paper-$(PAPER)/intro.tex: api/intro.tex $(ANNOAPI)
206 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/intro.tex
207
208paper-$(PAPER)/memory.tex: api/memory.tex $(ANNOAPI)
209 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/memory.tex
210
211paper-$(PAPER)/newtypes.tex: api/newtypes.tex $(ANNOAPI)
212 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/newtypes.tex
213
214paper-$(PAPER)/refcounting.tex: api/refcounting.tex $(ANNOAPI)
215 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/refcounting.tex
216
217paper-$(PAPER)/utilities.tex: api/utilities.tex $(ANNOAPI)
218 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/utilities.tex
219
220paper-$(PAPER)/veryhigh.tex: api/veryhigh.tex $(ANNOAPI)
221 $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/veryhigh.tex
222
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000223# Distributing Python Modules
224paper-$(PAPER)/dist.dvi: $(DISTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000225 cd paper-$(PAPER) && $(MKDVI) ../dist/dist.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000226
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000227paper-$(PAPER)/dist.pdf: $(DISTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000228 cd paper-$(PAPER) && $(MKPDF) ../dist/dist.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000229
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000230# Documenting Python
231paper-$(PAPER)/doc.dvi: $(DOCFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000232 cd paper-$(PAPER) && $(MKDVI) ../doc/doc.tex
Fred Drake3f8a59f1998-07-24 13:58:27 +0000233
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000234paper-$(PAPER)/doc.pdf: $(DOCFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000235 cd paper-$(PAPER) && $(MKPDF) ../doc/doc.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000236
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000237# Extending and Embedding the Python Interpreter
238paper-$(PAPER)/ext.dvi: $(EXTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000239 cd paper-$(PAPER) && $(MKDVI) ../ext/ext.tex
Greg Ward0862f802000-04-28 16:53:36 +0000240
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000241paper-$(PAPER)/ext.pdf: $(EXTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000242 cd paper-$(PAPER) && $(MKPDF) ../ext/ext.tex
Greg Ward0862f802000-04-28 16:53:36 +0000243
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000244# Installing Python Modules
245paper-$(PAPER)/inst.dvi: $(INSTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000246 cd paper-$(PAPER) && $(MKDVI) ../inst/inst.tex
Fred Draked69e2c41998-05-11 18:25:46 +0000247
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000248paper-$(PAPER)/inst.pdf: $(INSTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000249 cd paper-$(PAPER) && $(MKPDF) ../inst/inst.tex
Fred Drakef2951131998-05-07 19:30:16 +0000250
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000251# Python Library Reference
252paper-$(PAPER)/lib.dvi: $(LIBFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000253 cd paper-$(PAPER) && $(MKDVI) ../lib/lib.tex
Fred Drake15087431999-03-16 16:11:27 +0000254
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000255paper-$(PAPER)/lib.pdf: $(LIBFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000256 cd paper-$(PAPER) && $(MKPDF) ../lib/lib.tex
Fred Drakef2951131998-05-07 19:30:16 +0000257
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000258# Macintosh Library Modules
259paper-$(PAPER)/mac.dvi: $(MACFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000260 cd paper-$(PAPER) && $(MKDVI) ../mac/mac.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000261
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000262paper-$(PAPER)/mac.pdf: $(MACFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000263 cd paper-$(PAPER) && $(MKPDF) ../mac/mac.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000264
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000265# Python Reference Manual
266paper-$(PAPER)/ref.dvi: $(REFFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000267 cd paper-$(PAPER) && $(MKDVI) ../ref/ref.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000268
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000269paper-$(PAPER)/ref.pdf: $(REFFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000270 cd paper-$(PAPER) && $(MKPDF) ../ref/ref.tex
Fred Drakeddae4141998-02-17 15:45:25 +0000271
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000272# Python Tutorial
273paper-$(PAPER)/tut.dvi: $(TUTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000274 cd paper-$(PAPER) && $(MKDVI) ../tut/tut.tex
Greg Ward0862f802000-04-28 16:53:36 +0000275
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000276paper-$(PAPER)/tut.pdf: $(TUTFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000277 cd paper-$(PAPER) && $(MKPDF) ../tut/tut.tex
Guido van Rossume83e3801995-03-17 16:01:35 +0000278
Fred Drake9ac14de2002-03-26 19:18:18 +0000279# What's New in Python X.Y
280paper-$(PAPER)/$(WHATSNEW).dvi:
281 cd paper-$(PAPER) && $(MKDVI) ../whatsnew/$(WHATSNEW).tex
282
283paper-$(PAPER)/$(WHATSNEW).pdf:
284 cd paper-$(PAPER) && $(MKPDF) ../whatsnew/$(WHATSNEW).tex
285
Guido van Rossume83e3801995-03-17 16:01:35 +0000286# The remaining part of the Makefile is concerned with various
Guido van Rossum73827c61995-03-20 13:00:32 +0000287# conversions, as described above. See also the README file.
Guido van Rossume83e3801995-03-17 16:01:35 +0000288
Fred Drakeb9838d91998-05-08 15:43:08 +0000289info:
Fred Drake1385a572001-07-17 16:53:19 +0000290 cd $(INFODIR) && $(MAKE)
Fred Drake5ad78f31998-02-22 19:47:13 +0000291
Guido van Rossum73827c61995-03-20 13:00:32 +0000292# Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to
293# HTML converter. For more info on this program, see
Guido van Rossume83e3801995-03-17 16:01:35 +0000294# <URL:http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html>.
Guido van Rossume83e3801995-03-17 16:01:35 +0000295
Guido van Rossum9cb64801997-12-29 20:01:55 +0000296# Note that LaTeX2HTML inserts references to an icons directory in
297# each page that it generates. I have placed a copy of this directory
298# in the distribution to simplify the process of creating a
299# self-contained HTML distribution; for this purpose I have also added
300# a (trivial) index.html. Change the definition of $ICONSERVER in
Fred Drake9fab3aa1998-04-28 19:20:43 +0000301# perl/l2hinit.perl to use a different location for the icons directory.
Guido van Rossume83e3801995-03-17 16:01:35 +0000302
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000303# If you have the standard LaTeX2HTML icons installed, the versions shipped
304# with this documentation should be stored in a separate directory and used
305# instead. The standard set does *not* include all the icons used in the
306# Python documentation.
Fred Drakebbe33c51998-05-07 01:39:06 +0000307
Fred Drake0099d8f2001-10-25 15:12:31 +0000308$(ALLCSSFILES): html/style.css
309 cp $< $@
310
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000311$(INDEXFILES): $(COMMONPERL) html/about.dat tools/node2label.pl
Guido van Rossum6938f061994-08-01 12:22:53 +0000312
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000313html/acks.html: ACKS $(TOOLSDIR)/support.py $(TOOLSDIR)/mkackshtml
Fred Drake1385a572001-07-17 16:53:19 +0000314 $(PYTHON) $(TOOLSDIR)/mkackshtml --address $(PYTHONDOCS) \
Fred Draked27ed852001-02-22 23:06:21 +0000315 --output html/acks.html <ACKS
Guido van Rossum6938f061994-08-01 12:22:53 +0000316
Fred Drake1385a572001-07-17 16:53:19 +0000317
318# html/index.html is dependent on $(INDEXFILES) since we want the date
319# on the front index to be updated whenever any of the child documents
320# are updated and boilerplate.tex uses \today as the date. The index
321# files are not used to actually generate content.
322
323BOILERPLATE=texinputs/boilerplate.tex
324html/index.html: $(INDEXFILES)
325html/index.html: html/index.html.in $(BOILERPLATE) tools/rewrite.py
326 $(PYTHON) tools/rewrite.py $(BOILERPLATE) RELEASE=$(RELEASE) \
327 <$< >$@
328
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000329html/modindex.html: $(TOOLSDIR)/support.py $(TOOLSDIR)/mkmodindex
330html/modindex.html: html/lib/lib.html html/mac/mac.html
Fred Drake1385a572001-07-17 16:53:19 +0000331 cd html && \
332 $(PYTHON) ../$(TOOLSDIR)/mkmodindex --columns 4 \
333 --output modindex.html --address $(PYTHONDOCS) \
334 lib/modindex.html mac/modindex.html
Fred Drake7d5f5dd1999-03-18 19:08:47 +0000335
Fred Drake0099d8f2001-10-25 15:12:31 +0000336html: $(ALLHTMLFILES) $(HTMLCSSFILES)
Guido van Rossum970871f1993-02-21 20:10:26 +0000337
Fred Drake0099d8f2001-10-25 15:12:31 +0000338api: html/api/api.html html/api/api.css
339html/api/api.html: $(APIFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000340 $(MKHTML) --dir html/api api/api.tex
Fred Drakea6bb3961998-05-06 19:51:39 +0000341
Fred Drake0099d8f2001-10-25 15:12:31 +0000342doc: html/doc/doc.html html/doc/doc.css
343html/doc/doc.html: $(DOCFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000344 $(MKHTML) --dir html/doc doc/doc.tex
Fred Drakecdbd3911998-05-15 17:02:10 +0000345
Fred Drake0099d8f2001-10-25 15:12:31 +0000346ext: html/ext/ext.html html/ext/ext.css
347html/ext/ext.html: $(EXTFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000348 $(MKHTML) --dir html/ext ext/ext.tex
Guido van Rossume83e3801995-03-17 16:01:35 +0000349
Fred Drake0099d8f2001-10-25 15:12:31 +0000350lib: html/lib/lib.html html/lib/lib.css
351html/lib/lib.html: $(LIBFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000352 $(MKHTML) --dir html/lib lib/lib.tex
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000353
Fred Drake0099d8f2001-10-25 15:12:31 +0000354mac: html/mac/mac.html html/mac/mac.css
355html/mac/mac.html: $(MACFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000356 $(MKHTML) --dir html/mac mac/mac.tex
Greg Ward0862f802000-04-28 16:53:36 +0000357
Fred Drake0099d8f2001-10-25 15:12:31 +0000358ref: html/ref/ref.html html/ref/ref.css
359html/ref/ref.html: $(REFFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000360 $(MKHTML) --dir html/ref ref/ref.tex
Greg Ward0862f802000-04-28 16:53:36 +0000361
Fred Drake0099d8f2001-10-25 15:12:31 +0000362tut: html/tut/tut.html html/tut/tut.css
363html/tut/tut.html: $(TUTFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000364 $(MKHTML) --dir html/tut --numeric --split 3 tut/tut.tex
365
Fred Drake0099d8f2001-10-25 15:12:31 +0000366inst: html/inst/inst.html html/inst/inst.css
367html/inst/inst.html: $(INSTFILES) perl/distutils.perl
Fred Drake8c011582001-03-01 18:38:56 +0000368 $(MKHTML) --dir html/inst --split 4 inst/inst.tex
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000369
Fred Drake0099d8f2001-10-25 15:12:31 +0000370dist: html/dist/dist.html html/dist/dist.css
371html/dist/dist.html: $(DISTFILES) perl/distutils.perl
Fred Drake8c011582001-03-01 18:38:56 +0000372 $(MKHTML) --dir html/dist --split 4 dist/dist.tex
Fred Drakee7a8c972000-04-07 16:27:15 +0000373
Fred Drake9ac14de2002-03-26 19:18:18 +0000374whatsnew: html/whatsnew/$(WHATSNEW).html
375html/whatsnew/$(WHATSNEW).html: whatsnew/$(WHATSNEW).tex
376 $(MKHTML) --dir html/whatsnew --split 4 whatsnew/$(WHATSNEW).tex
377
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000378
Fred Drake0c77cf12001-10-19 21:12:57 +0000379# The iSilo format is used by the iSilo document reader for PalmOS devices.
380
381ISILOINDEXFILES=isilo/api/api.html \
382 isilo/doc/doc.html \
383 isilo/ext/ext.html \
384 isilo/lib/lib.html \
385 isilo/mac/mac.html \
386 isilo/ref/ref.html \
387 isilo/tut/tut.html \
388 isilo/inst/inst.html \
Fred Drake30140862002-03-26 19:53:56 +0000389 isilo/dist/dist.html \
390 isilo/whatsnew/$(WHATSNEW).html
Fred Drake0c77cf12001-10-19 21:12:57 +0000391
392$(ISILOINDEXFILES): $(COMMONPERL) html/about.dat perl/isilo.perl
393
394isilo: isilo/python-api-$(RELEASE).pdb \
395 isilo/python-doc-$(RELEASE).pdb \
396 isilo/python-ext-$(RELEASE).pdb \
397 isilo/python-lib-$(RELEASE).pdb \
398 isilo/python-mac-$(RELEASE).pdb \
399 isilo/python-ref-$(RELEASE).pdb \
400 isilo/python-tut-$(RELEASE).pdb \
401 isilo/python-dist-$(RELEASE).pdb \
Fred Drake30140862002-03-26 19:53:56 +0000402 isilo/python-inst-$(RELEASE).pdb \
403 isilo/python-whatsnew-$(RELEASE).pdb
Fred Drake0c77cf12001-10-19 21:12:57 +0000404
Fred Drake0099d8f2001-10-25 15:12:31 +0000405isilo/python-api-$(RELEASE).pdb: isilo/api/api.html isilo/api/api.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000406 $(MKISILO) "-iPython/C API Reference Manual" \
407 isilo/api/api.html $@
408
Fred Drake0099d8f2001-10-25 15:12:31 +0000409isilo/python-doc-$(RELEASE).pdb: isilo/doc/doc.html isilo/doc/doc.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000410 $(MKISILO) "-iDocumenting Python" \
411 isilo/doc/doc.html $@
412
Fred Drake0099d8f2001-10-25 15:12:31 +0000413isilo/python-ext-$(RELEASE).pdb: isilo/ext/ext.html isilo/ext/ext.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000414 $(MKISILO) "-iExtending & Embedding Python" \
415 isilo/ext/ext.html $@
416
Fred Drake0099d8f2001-10-25 15:12:31 +0000417isilo/python-lib-$(RELEASE).pdb: isilo/lib/lib.html isilo/lib/lib.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000418 $(MKISILO) "-iPython Library Reference" \
419 isilo/lib/lib.html $@
420
Fred Drake0099d8f2001-10-25 15:12:31 +0000421isilo/python-mac-$(RELEASE).pdb: isilo/mac/mac.html isilo/mac/mac.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000422 $(MKISILO) "-iPython/C API Reference Manual" \
423 isilo/mac/mac.html $@
424
Fred Drake0099d8f2001-10-25 15:12:31 +0000425isilo/python-ref-$(RELEASE).pdb: isilo/ref/ref.html isilo/ref/ref.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000426 $(MKISILO) "-iPython Reference Manual" \
427 isilo/ref/ref.html $@
428
Fred Drake0099d8f2001-10-25 15:12:31 +0000429isilo/python-tut-$(RELEASE).pdb: isilo/tut/tut.html isilo/tut/tut.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000430 $(MKISILO) "-iPython Tutorial" \
431 isilo/tut/tut.html $@
432
Fred Drake0099d8f2001-10-25 15:12:31 +0000433isilo/python-dist-$(RELEASE).pdb: isilo/dist/dist.html isilo/dist/dist.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000434 $(MKISILO) "-iDistributing Python Modules" \
435 isilo/dist/dist.html $@
436
Fred Drake0099d8f2001-10-25 15:12:31 +0000437isilo/python-inst-$(RELEASE).pdb: isilo/inst/inst.html isilo/inst/inst.css
Fred Drake0c77cf12001-10-19 21:12:57 +0000438 $(MKISILO) "-iInstalling Python Modules" \
439 isilo/inst/inst.html $@
440
Fred Drake30140862002-03-26 19:53:56 +0000441isilo/python-whatsnew-$(RELEASE).pdb: isilo/whatsnew/$(WHATSNEW).html isilo/whatsnew/$(WHATSNEW).css
442 $(MKISILO) "-iWhat's New in Python X.Y" \
443 isilo/whatsnew/$(WHATSNEW).html $@
444
Fred Drake0c77cf12001-10-19 21:12:57 +0000445isilo/api/api.html: $(APIFILES)
446 $(MKISILOHTML) --dir isilo/api api/api.tex
447
448isilo/doc/doc.html: $(DOCFILES)
449 $(MKISILOHTML) --dir isilo/doc doc/doc.tex
450
451isilo/ext/ext.html: $(EXTFILES)
452 $(MKISILOHTML) --dir isilo/ext ext/ext.tex
453
454isilo/lib/lib.html: $(LIBFILES)
455 $(MKISILOHTML) --dir isilo/lib lib/lib.tex
456
457isilo/mac/mac.html: $(MACFILES)
458 $(MKISILOHTML) --dir isilo/mac mac/mac.tex
459
460isilo/ref/ref.html: $(REFFILES)
461 $(MKISILOHTML) --dir isilo/ref ref/ref.tex
462
463isilo/tut/tut.html: $(TUTFILES)
464 $(MKISILOHTML) --dir isilo/tut tut/tut.tex
465
466isilo/inst/inst.html: $(INSTFILES) perl/distutils.perl
467 $(MKISILOHTML) --dir isilo/inst inst/inst.tex
468
469isilo/dist/dist.html: $(DISTFILES) perl/distutils.perl
470 $(MKISILOHTML) --dir isilo/dist dist/dist.tex
471
Fred Drake9ac14de2002-03-26 19:18:18 +0000472isilo/whatsnew/$(WHATSNEW).html: whatsnew/$(WHATSNEW).tex
473 $(MKISILOHTML) --dir isilo/whatsnew whatsnew/$(WHATSNEW).tex
474
Fred Drake0c77cf12001-10-19 21:12:57 +0000475# These are useful if you need to transport the iSilo-ready HTML to
476# another machine to perform the conversion:
477
478isilozip: isilo-html-$(RELEASE).zip
479
480isilo-html-$(RELEASE).zip: $(ISILOINDEXFILES)
481 rm -f $@
482 cd isilo && \
483 zip -q -9 ../$@ */*.css */*.html */*.txt
484
485
Fred Drakee4837a11998-03-06 21:29:34 +0000486# webchecker needs an extra flag to process the huge index from the libref
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000487WEBCHECKER=$(PYTHON) ../Tools/webchecker/webchecker.py
488HTMLBASE= file:`pwd`/html
489
Fred Drake5afb5e52001-07-18 21:17:29 +0000490webcheck: $(ALLHTMLFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000491 $(WEBCHECKER) $(HTMLBASE)/api/
492 $(WEBCHECKER) $(HTMLBASE)/doc/
493 $(WEBCHECKER) $(HTMLBASE)/ext/
494 $(WEBCHECKER) -m290000 $(HTMLBASE)/lib/
495 $(WEBCHECKER) $(HTMLBASE)/mac/
496 $(WEBCHECKER) $(HTMLBASE)/ref/
497 $(WEBCHECKER) $(HTMLBASE)/tut/
498 $(WEBCHECKER) $(HTMLBASE)/dist/
499 $(WEBCHECKER) $(HTMLBASE)/inst/
Fred Drake30140862002-03-26 19:53:56 +0000500 $(WEBCHECKER) $(HTMLBASE)/whatsnew/
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000501
Fred Drake5afb5e52001-07-18 21:17:29 +0000502fastwebcheck: $(ALLHTMLFILES)
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000503 $(WEBCHECKER) -x $(HTMLBASE)/api/
504 $(WEBCHECKER) -x $(HTMLBASE)/doc/
505 $(WEBCHECKER) -x $(HTMLBASE)/ext/
506 $(WEBCHECKER) -x -m290000 $(HTMLBASE)/lib/
507 $(WEBCHECKER) -x $(HTMLBASE)/mac/
508 $(WEBCHECKER) -x $(HTMLBASE)/ref/
509 $(WEBCHECKER) -x $(HTMLBASE)/tut/
510 $(WEBCHECKER) -x $(HTMLBASE)/dist/
511 $(WEBCHECKER) -x $(HTMLBASE)/inst/
Fred Drake30140862002-03-26 19:53:56 +0000512 $(WEBCHECKER) -x $(HTMLBASE)/whatsnew/
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000513
514
515# Release packaging targets:
Fred Drakee4837a11998-03-06 21:29:34 +0000516
Fred Drake5afb5e52001-07-18 21:17:29 +0000517paper-$(PAPER)/README: $(PSFILES) $(TOOLSDIR)/getpagecounts
Fred Drake1385a572001-07-17 16:53:19 +0000518 cd paper-$(PAPER) && ../$(TOOLSDIR)/getpagecounts >../$@
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000519
Fred Drakeb6584ca1999-01-08 15:49:45 +0000520info-$(RELEASE).tgz: info
Fred Drake1385a572001-07-17 16:53:19 +0000521 cd $(INFODIR) && tar cf - README python.dir python-*.info* \
Fred Drake28e66d11999-01-29 22:23:25 +0000522 | gzip -9 >$@
Fred Drakea7998351998-02-19 16:01:04 +0000523
Fred Drake4ef3ea01999-07-27 16:30:59 +0000524info-$(RELEASE).tar.bz2: info
Fred Drake1385a572001-07-17 16:53:19 +0000525 cd $(INFODIR) && tar cf - README python.dir python-*.info* \
Fred Drake4ef3ea01999-07-27 16:30:59 +0000526 | bzip2 -9 >$@
527
Fred Drakee34ab301998-05-11 21:10:15 +0000528latex-$(RELEASE).tgz:
Fred Drake1385a572001-07-17 16:53:19 +0000529 $(PYTHON) $(TOOLSDIR)/mksourcepkg --gzip $(RELEASE)
Fred Drakee61d7af1998-03-05 16:37:34 +0000530
Fred Drake4ef3ea01999-07-27 16:30:59 +0000531latex-$(RELEASE).tar.bz2:
Fred Drake1385a572001-07-17 16:53:19 +0000532 $(PYTHON) $(TOOLSDIR)/mksourcepkg --bzip2 $(RELEASE)
Fred Drake4ef3ea01999-07-27 16:30:59 +0000533
Fred Drake7dcc69a1999-07-23 16:11:36 +0000534latex-$(RELEASE).zip:
Fred Drake02ba6212000-04-04 20:58:25 +0000535 rm -f $@
Fred Drake1385a572001-07-17 16:53:19 +0000536 $(PYTHON) $(TOOLSDIR)/mksourcepkg --zip $(RELEASE)
Fred Drake7dcc69a1999-07-23 16:11:36 +0000537
Fred Drake5afb5e52001-07-18 21:17:29 +0000538pdf-$(PAPER)-$(RELEASE).tar: $(PDFFILES)
539 cd paper-$(PAPER) && tar cf ../$@ *.pdf
Fred Drake04cf4dc1998-02-12 22:33:50 +0000540
Fred Drake5afb5e52001-07-18 21:17:29 +0000541pdf-$(PAPER)-$(RELEASE).tgz: pdf-$(PAPER)-$(RELEASE).tar
542 gzip -9 <$? >$@
543
544pdf-$(PAPER)-$(RELEASE).tar.bz2: pdf-$(PAPER)-$(RELEASE).tar
545 bzip2 -9 <$? >$@
Fred Drake4ef3ea01999-07-27 16:30:59 +0000546
Fred Drake7dcc69a1999-07-23 16:11:36 +0000547pdf-$(PAPER)-$(RELEASE).zip: pdf
Fred Drake02ba6212000-04-04 20:58:25 +0000548 rm -f $@
Fred Drake1385a572001-07-17 16:53:19 +0000549 cd paper-$(PAPER) && zip -q -9 ../$@ *.pdf
Fred Drake7dcc69a1999-07-23 16:11:36 +0000550
Fred Drake5afb5e52001-07-18 21:17:29 +0000551postscript-$(PAPER)-$(RELEASE).tar: $(PSFILES) paper-$(PAPER)/README
552 cd paper-$(PAPER) && tar cf ../$@ *.ps README
Fred Drake04cf4dc1998-02-12 22:33:50 +0000553
Fred Drake5afb5e52001-07-18 21:17:29 +0000554postscript-$(PAPER)-$(RELEASE).tar.bz2: postscript-$(PAPER)-$(RELEASE).tar
555 bzip2 -9 <$< >$@
Fred Drake4ef3ea01999-07-27 16:30:59 +0000556
Fred Drake5afb5e52001-07-18 21:17:29 +0000557postscript-$(PAPER)-$(RELEASE).tgz: postscript-$(PAPER)-$(RELEASE).tar
558 gzip -9 <$< >$@
559
560postscript-$(PAPER)-$(RELEASE).zip: $(PSFILES) paper-$(PAPER)/README
Fred Drake02ba6212000-04-04 20:58:25 +0000561 rm -f $@
Fred Drake1385a572001-07-17 16:53:19 +0000562 cd paper-$(PAPER) && zip -q -9 ../$@ *.ps README
Fred Drake7dcc69a1999-07-23 16:11:36 +0000563
Fred Drake0099d8f2001-10-25 15:12:31 +0000564html-$(RELEASE).tar: $(ALLHTMLFILES) $(HTMLCSSFILES)
Fred Drake9ae09942001-10-18 18:46:22 +0000565 cd html && \
Fred Drake8f65aef2001-07-17 23:35:46 +0000566 tar cf ../html-$(RELEASE).tar *.html */*.css */*.html \
567 */*.gif */*.txt
Fred Drake33d05b91998-01-13 16:33:09 +0000568
Fred Drake8f65aef2001-07-17 23:35:46 +0000569html-$(RELEASE).tgz: html-$(RELEASE).tar
Fred Drake5afb5e52001-07-18 21:17:29 +0000570 gzip -9 <$? >$@
Fred Drake8f65aef2001-07-17 23:35:46 +0000571
572html-$(RELEASE).tar.bz2: html-$(RELEASE).tar
Fred Drake5afb5e52001-07-18 21:17:29 +0000573 bzip2 -9 <$? >$@
Fred Drake4ef3ea01999-07-27 16:30:59 +0000574
Fred Drake0099d8f2001-10-25 15:12:31 +0000575html-$(RELEASE).zip: $(ALLHTMLFILES) $(HTMLCSSFILES)
Fred Drake02ba6212000-04-04 20:58:25 +0000576 rm -f $@
Fred Drake9ae09942001-10-18 18:46:22 +0000577 cd html && \
Fred Drake1385a572001-07-17 16:53:19 +0000578 zip -q -9 ../$@ *.html */*.css */*.html */*.gif */*.txt
Fred Drake7dcc69a1999-07-23 16:11:36 +0000579
Fred Drake0c77cf12001-10-19 21:12:57 +0000580isilo-$(RELEASE).zip: isilo
581 cd isilo && zip -q -9 ../$@ python-*-$(RELEASE).pdb
582
583
Fred Drakea7998351998-02-19 16:01:04 +0000584# convenience targets:
585
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000586tarhtml: html-$(RELEASE).tgz
Fred Drakeb6584ca1999-01-08 15:49:45 +0000587tarinfo: info-$(RELEASE).tgz
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000588tarps: postscript-$(PAPER)-$(RELEASE).tgz
589tarpdf: pdf-$(PAPER)-$(RELEASE).tgz
590tarlatex: latex-$(RELEASE).tgz
Fred Drakebbe33c51998-05-07 01:39:06 +0000591
Fred Drake83c09831999-08-02 20:20:14 +0000592tarballs: tarpdf tarps tarhtml
Guido van Rossum84cca441997-11-25 20:49:09 +0000593
Fred Drake7dcc69a1999-07-23 16:11:36 +0000594ziphtml: html-$(RELEASE).zip
595zipps: postscript-$(PAPER)-$(RELEASE).zip
596zippdf: pdf-$(PAPER)-$(RELEASE).zip
597ziplatex: latex-$(RELEASE).zip
Fred Drake0c77cf12001-10-19 21:12:57 +0000598zipisilo: isilo-$(RELEASE).zip
Fred Drake7dcc69a1999-07-23 16:11:36 +0000599
Fred Drakeb906d2e2000-07-01 02:37:37 +0000600zips: zippdf zipps ziphtml
Fred Drake7dcc69a1999-07-23 16:11:36 +0000601
Fred Drake4ef3ea01999-07-27 16:30:59 +0000602bziphtml: html-$(RELEASE).tar.bz2
603bzipinfo: info-$(RELEASE).tar.bz2
604bzipps: postscript-$(PAPER)-$(RELEASE).tar.bz2
605bzippdf: pdf-$(PAPER)-$(RELEASE).tar.bz2
606bziplatex: latex-$(RELEASE).tar.bz2
607
Fred Drake83c09831999-08-02 20:20:14 +0000608bzips: bzippdf bzipps bziphtml
Fred Drake4ef3ea01999-07-27 16:30:59 +0000609
Fred Drakefc4ee0a2001-04-13 18:00:23 +0000610disthtml: tarhtml bziphtml ziphtml
611distinfo: tarinfo bzipinfo
612distps: tarps bzipps zipps
613distpdf: tarpdf bzippdf zippdf
614distlatex: tarlatex bziplatex ziplatex
615
Fred Drake5afb5e52001-07-18 21:17:29 +0000616paperdist: distpdf distps
Fred Drake5f443cb2001-12-12 06:22:43 +0000617edist: disthtml zipisilo
Fred Drake5afb5e52001-07-18 21:17:29 +0000618
619distfiles: paperdist edist
Fred Drake88634602001-01-25 17:32:51 +0000620 $(TOOLSDIR)/mksourcepkg --all $(RELEASE)
Fred Drake4ef3ea01999-07-27 16:30:59 +0000621
Guido van Rossume83e3801995-03-17 16:01:35 +0000622
623# Housekeeping targets
624
Guido van Rossum9231c8f1997-05-15 21:43:21 +0000625# Remove temporary files; all except the following:
Fred Drake6659c301998-03-03 22:02:19 +0000626# - sources: .tex, .bib, .sty, *.cls
Fred Drake04cf4dc1998-02-12 22:33:50 +0000627# - useful results: .dvi, .pdf, .ps, .texi, .info
Fred Drakee4837a11998-03-06 21:29:34 +0000628clean:
Fred Drake8f65aef2001-07-17 23:35:46 +0000629 rm -f html-$(RELEASE).tar
Fred Drake1385a572001-07-17 16:53:19 +0000630 cd $(INFODIR) && $(MAKE) clean
Guido van Rossum5b343731992-07-07 09:06:34 +0000631
Guido van Rossume83e3801995-03-17 16:01:35 +0000632# Remove temporaries as well as final products
Fred Drakeb6584ca1999-01-08 15:49:45 +0000633clobber:
Fred Drake8f65aef2001-07-17 23:35:46 +0000634 rm -f html-$(RELEASE).tar
Fred Drakeeb7fe4f1998-08-12 17:08:37 +0000635 rm -f html-$(RELEASE).tgz info-$(RELEASE).tgz
636 rm -f pdf-$(RELEASE).tgz postscript-$(RELEASE).tgz
Fred Drake7dcc69a1999-07-23 16:11:36 +0000637 rm -f latex-$(RELEASE).tgz html-$(RELEASE).zip
638 rm -f pdf-$(RELEASE).zip postscript-$(RELEASE).zip
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000639 rm -f $(DVIFILES) $(PSFILES) $(PDFFILES)
Fred Drake1385a572001-07-17 16:53:19 +0000640 cd $(INFODIR) && $(MAKE) clobber
Fred Drake210d3cc2002-02-04 19:49:29 +0000641 rm -f paper-$(PAPER)/*.tex paper-$(PAPER)/*.ind paper-$(PAPER)/*.idx
642 rm -f paper-$(PAPER)/*.l2h paper-$(PAPER)/*.how paper-$(PAPER)/README
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000643 rm -rf html/index.html html/modindex.html html/acks.html
644 rm -rf html/api/ html/doc/ html/ext/ html/lib/ html/mac/
645 rm -rf html/ref/ html/tut/ html/inst/ html/dist/
Fred Drake30140862002-03-26 19:53:56 +0000646 rm -rf html/whatsnew/
Fred Drake0c77cf12001-10-19 21:12:57 +0000647 rm -rf isilo/api/ isilo/doc/ isilo/ext/ isilo/lib/ isilo/mac/
648 rm -rf isilo/ref/ isilo/tut/ isilo/inst/ isilo/dist/
Fred Drake30140862002-03-26 19:53:56 +0000649 rm -rf isilo/whatsnew/
Fred Drake0c77cf12001-10-19 21:12:57 +0000650 rm -f isilo/python-*-$(RELEASE).pdb isilo-$(RELEASE).zip
Fred Drake5ad78f31998-02-22 19:47:13 +0000651
Fred Drakef6bfe8e2001-02-19 19:19:26 +0000652realclean distclean: clobber