| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 1 | # Makefile for Python documentation | 
 | 2 | # --------------------------------- | 
 | 3 | # | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 4 | # See also the README file. | 
 | 5 | # | 
| Fred Drake | 6532b9b | 1999-04-22 14:16:14 +0000 | [diff] [blame] | 6 | # This is a bit of a mess.  The documents are identified by short names: | 
| Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 7 | #   api -- Python/C API Reference Manual | 
| Fred Drake | 6532b9b | 1999-04-22 14:16:14 +0000 | [diff] [blame] | 8 | #   doc -- Documenting Python | 
| Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 9 | #   ext -- Extending and Embedding the Python Interpreter | 
 | 10 | #   lib -- Library Reference Manual | 
| Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 11 | #   mac -- Macintosh Library Modules | 
| Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 12 | #   ref -- Python Reference Manual | 
| Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 13 | #   tut -- Python Tutorial | 
| Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 14 | #   inst -- Installing Python Modules | 
 | 15 | #   dist -- Distributing Python Modules | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 16 | # | 
| Fred Drake | 3a045e8 | 2001-01-22 20:47:26 +0000 | [diff] [blame] | 17 | # The LaTeX sources for each of these documents are in subdirectories | 
| Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 18 | # with the three-letter designations above as the directory names. | 
| Guido van Rossum | 1f17543 | 1996-10-22 20:00:02 +0000 | [diff] [blame] | 19 | # | 
| Fred Drake | 3a045e8 | 2001-01-22 20:47:26 +0000 | [diff] [blame] | 20 | # 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 Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 23 | # | 
| Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 24 | # 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 Drake | efc17bd | 1998-07-28 21:05:16 +0000 | [diff] [blame] | 27 | # number of environments for formatting function and data definitions. | 
| Fred Drake | 3a045e8 | 2001-01-22 20:47:26 +0000 | [diff] [blame] | 28 | # 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 Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 31 | # | 
| Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 32 | # Everything is processed by LaTeX.  See the file `README' for more | 
 | 33 | # information on the tools needed for processing. | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 34 | # | 
 | 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 Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 39 | # 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 Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 42 | # | 
| Fred Drake | 3a045e8 | 2001-01-22 20:47:26 +0000 | [diff] [blame] | 43 | #   ps  -- convert all documents from LaTeX to PostScript | 
 | 44 | #   pdf -- convert all documents from LaTeX to the | 
| Fred Drake | efc17bd | 1998-07-28 21:05:16 +0000 | [diff] [blame] | 45 | #		Portable Document Format | 
| Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 46 | # | 
| Fred Drake | efc17bd | 1998-07-28 21:05:16 +0000 | [diff] [blame] | 47 | # See the README file for more information on these targets. | 
| Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 48 | # | 
 | 49 | # The formatted output is located in subdirectories.  For PDF and | 
 | 50 | # PostScript, look in the paper-$(PAPER)/ directory.  For HTML, look in | 
| Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 51 | # the html/ directory.  If you want to fix the GNU info process, look | 
| Fred Drake | 9d84308 | 2003-07-30 02:55:28 +0000 | [diff] [blame] | 52 | # in the info/ directory; please send patches to docs@python.org. | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 53 |  | 
| Fred Drake | 78430b6 | 2000-08-29 16:30:21 +0000 | [diff] [blame] | 54 | # This Makefile only includes information on how to perform builds; for | 
 | 55 | # dependency information, see Makefile.deps. | 
 | 56 |  | 
| Fred Drake | 3a045e8 | 2001-01-22 20:47:26 +0000 | [diff] [blame] | 57 | # Customization -- you *may* have to edit this | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 58 |  | 
| Fred Drake | 3a045e8 | 2001-01-22 20:47:26 +0000 | [diff] [blame] | 59 | # You could set this to a4: | 
| Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 60 | PAPER=letter | 
 | 61 |  | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 62 | # Ideally, you shouldn't need to edit beyond this point | 
| Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 63 |  | 
| Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 64 | INFODIR=	info | 
 | 65 | TOOLSDIR=	tools | 
 | 66 |  | 
| Fred Drake | c8083cf | 2003-09-27 22:07:05 +0000 | [diff] [blame] | 67 | # This is the *documentation* release, and is used to construct the | 
 | 68 | # file names of the downloadable tarballs.  It is initialized by the | 
 | 69 | # getversioninfo script to ensure that the right version number is | 
 | 70 | # used; the script will also write commontex/patchlevel.tex if that | 
 | 71 | # doesn't exist or needs to be changed.  Documents which depend on the | 
 | 72 | # version number should use \input{patchlevel} and include | 
 | 73 | # commontex/patchlevel.tex in their dependencies. | 
 | 74 | RELEASE=$(shell $(PYTHON) tools/getversioninfo) | 
| Fred Drake | 860e256 | 1999-07-12 16:52:50 +0000 | [diff] [blame] | 75 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 76 | PYTHON=	   python | 
 | 77 | DVIPS=	   dvips -N0 -t $(PAPER) | 
 | 78 |  | 
| Fred Drake | e395e22 | 2003-09-27 05:52:16 +0000 | [diff] [blame] | 79 | # This is ugly!  The issue here is that there are two different levels | 
 | 80 | # in the directory tree at which we execute mkhowto, so we can't | 
 | 81 | # define it just once using a relative path (at least not with the | 
 | 82 | # current implementation and Makefile structure).  We use the GNUish | 
 | 83 | # $(shell) function here to work around that restriction by | 
| Fred Drake | 0d86ea7 | 2003-09-27 07:37:09 +0000 | [diff] [blame] | 84 | # identifying mkhowto and the commontex/ directory using absolute paths. | 
| Fred Drake | e395e22 | 2003-09-27 05:52:16 +0000 | [diff] [blame] | 85 | # | 
| Kurt B. Kaiser | ad5206f | 2004-07-11 04:10:14 +0000 | [diff] [blame] | 86 | # If your doc build fails immediately, you may need to switch to GNU make. | 
 | 87 | # (e.g. OpenBSD needs package gmake installed; use gmake instead of make) | 
| Fred Drake | 0d86ea7 | 2003-09-27 07:37:09 +0000 | [diff] [blame] | 88 | PWD=$(shell pwd) | 
 | 89 |  | 
| Georg Brandl | 7eb4b7d | 2005-07-22 21:49:32 +0000 | [diff] [blame] | 90 | # (The trailing colon in the value is needed; TeX places its default | 
| Fred Drake | 0d86ea7 | 2003-09-27 07:37:09 +0000 | [diff] [blame] | 91 | # set of paths at the location of the empty string in the path list.) | 
 | 92 | TEXINPUTS=$(PWD)/commontex: | 
 | 93 |  | 
 | 94 | # The mkhowto script can be run from the checkout using the first | 
 | 95 | # version of this variable definition, or from a preferred version | 
 | 96 | # using the second version.  The standard documentation is typically | 
 | 97 | # built using the second flavor, where the preferred version is from | 
 | 98 | # the Python CVS trunk. | 
| Fred Drake | a6008d0 | 2003-10-01 18:49:55 +0000 | [diff] [blame] | 99 | MKHOWTO=   TEXINPUTS=$(TEXINPUTS) $(PYTHON) $(PWD)/tools/mkhowto | 
| Fred Drake | df49324 | 2003-09-25 15:25:37 +0000 | [diff] [blame] | 100 |  | 
 | 101 | MKDVI=	   $(MKHOWTO) --paper=$(PAPER) --dvi | 
 | 102 | MKHTML=	   $(MKHOWTO) --html --about html/stdabout.dat \ | 
| Fred Drake | 6e2e90d | 2004-11-05 04:51:05 +0000 | [diff] [blame] | 103 | 		--iconserver ../icons --favicon ../icons/pyfav.png \ | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 104 | 		--address $(PYTHONDOCS) --up-link ../index.html \ | 
 | 105 | 		--up-title "Python Documentation Index" \ | 
| Fred Drake | 345b8df | 2001-10-30 16:28:46 +0000 | [diff] [blame] | 106 | 		--global-module-index "../modindex.html" --dvips-safe | 
| Fred Drake | df49324 | 2003-09-25 15:25:37 +0000 | [diff] [blame] | 107 | MKISILOHTML=$(MKHOWTO) --html --about html/stdabout.dat \ | 
| Fred Drake | 15a159c | 2002-10-01 15:20:20 +0000 | [diff] [blame] | 108 | 		--iconserver ../icons \ | 
| Fred Drake | 345b8df | 2001-10-30 16:28:46 +0000 | [diff] [blame] | 109 | 		--l2h-init perl/isilo.perl --numeric --split 1 \ | 
 | 110 | 		--dvips-safe | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 111 | MKISILO=   iSilo386 -U -y -rCR -d0 | 
| Fred Drake | df49324 | 2003-09-25 15:25:37 +0000 | [diff] [blame] | 112 | MKPDF=	   $(MKHOWTO) --paper=$(PAPER) --pdf | 
 | 113 | MKPS=	   $(MKHOWTO) --paper=$(PAPER) --ps | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 114 |  | 
 | 115 | BUILDINDEX=$(TOOLSDIR)/buildindex.py | 
 | 116 |  | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 117 | PYTHONDOCS="See <i><a href=\"about.html\">About this document...</a></i> for information on suggesting changes." | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 118 | HTMLBASE=  file:`pwd` | 
 | 119 |  | 
| Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 120 | # The emacs binary used to build the info docs. GNU Emacs 21 is required. | 
 | 121 | EMACS=     emacs | 
 | 122 |  | 
| Fred Drake | 3014086 | 2002-03-26 19:53:56 +0000 | [diff] [blame] | 123 | # The end of this should reflect the major/minor version numbers of | 
 | 124 | # the release: | 
| Fred Drake | cf05f47 | 2004-12-01 05:55:47 +0000 | [diff] [blame] | 125 | WHATSNEW=whatsnew25 | 
| Fred Drake | 9ac14de | 2002-03-26 19:18:18 +0000 | [diff] [blame] | 126 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 127 | # what's what | 
 | 128 | MANDVIFILES=	paper-$(PAPER)/api.dvi paper-$(PAPER)/ext.dvi \ | 
 | 129 | 		paper-$(PAPER)/lib.dvi paper-$(PAPER)/mac.dvi \ | 
 | 130 | 		paper-$(PAPER)/ref.dvi paper-$(PAPER)/tut.dvi | 
 | 131 | HOWTODVIFILES=	paper-$(PAPER)/doc.dvi paper-$(PAPER)/inst.dvi \ | 
| Fred Drake | 9ac14de | 2002-03-26 19:18:18 +0000 | [diff] [blame] | 132 | 		paper-$(PAPER)/dist.dvi paper-$(PAPER)/$(WHATSNEW).dvi | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 133 |  | 
 | 134 | MANPDFFILES=	paper-$(PAPER)/api.pdf paper-$(PAPER)/ext.pdf \ | 
 | 135 | 		paper-$(PAPER)/lib.pdf paper-$(PAPER)/mac.pdf \ | 
 | 136 | 		paper-$(PAPER)/ref.pdf paper-$(PAPER)/tut.pdf | 
 | 137 | HOWTOPDFFILES=	paper-$(PAPER)/doc.pdf paper-$(PAPER)/inst.pdf \ | 
| Fred Drake | 9ac14de | 2002-03-26 19:18:18 +0000 | [diff] [blame] | 138 | 		paper-$(PAPER)/dist.pdf paper-$(PAPER)/$(WHATSNEW).pdf | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 139 |  | 
 | 140 | MANPSFILES=	paper-$(PAPER)/api.ps paper-$(PAPER)/ext.ps \ | 
 | 141 | 		paper-$(PAPER)/lib.ps paper-$(PAPER)/mac.ps \ | 
 | 142 | 		paper-$(PAPER)/ref.ps paper-$(PAPER)/tut.ps | 
 | 143 | HOWTOPSFILES=	paper-$(PAPER)/doc.ps paper-$(PAPER)/inst.ps \ | 
| Fred Drake | 9ac14de | 2002-03-26 19:18:18 +0000 | [diff] [blame] | 144 | 		paper-$(PAPER)/dist.ps paper-$(PAPER)/$(WHATSNEW).ps | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 145 |  | 
 | 146 | DVIFILES=	$(MANDVIFILES) $(HOWTODVIFILES) | 
 | 147 | PDFFILES=	$(MANPDFFILES) $(HOWTOPDFFILES) | 
 | 148 | PSFILES=	$(MANPSFILES) $(HOWTOPSFILES) | 
 | 149 |  | 
| Fred Drake | 0099d8f | 2001-10-25 15:12:31 +0000 | [diff] [blame] | 150 | HTMLCSSFILES=html/api/api.css \ | 
 | 151 | 	html/doc/doc.css \ | 
 | 152 | 	html/ext/ext.css \ | 
 | 153 | 	html/lib/lib.css \ | 
 | 154 | 	html/mac/mac.css \ | 
 | 155 | 	html/ref/ref.css \ | 
 | 156 | 	html/tut/tut.css \ | 
 | 157 | 	html/inst/inst.css \ | 
 | 158 | 	html/dist/dist.css | 
 | 159 |  | 
 | 160 | ISILOCSSFILES=isilo/api/api.css \ | 
 | 161 | 	isilo/doc/doc.css \ | 
 | 162 | 	isilo/ext/ext.css \ | 
 | 163 | 	isilo/lib/lib.css \ | 
 | 164 | 	isilo/mac/mac.css \ | 
 | 165 | 	isilo/ref/ref.css \ | 
 | 166 | 	isilo/tut/tut.css \ | 
 | 167 | 	isilo/inst/inst.css \ | 
 | 168 | 	isilo/dist/dist.css | 
 | 169 |  | 
 | 170 | ALLCSSFILES=$(HTMLCSSFILES) $(ISILOCSSFILES) | 
 | 171 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 172 | INDEXFILES=html/api/api.html \ | 
 | 173 | 	html/doc/doc.html \ | 
 | 174 | 	html/ext/ext.html \ | 
 | 175 | 	html/lib/lib.html \ | 
 | 176 | 	html/mac/mac.html \ | 
 | 177 | 	html/ref/ref.html \ | 
 | 178 | 	html/tut/tut.html \ | 
 | 179 | 	html/inst/inst.html \ | 
| Fred Drake | 9ac14de | 2002-03-26 19:18:18 +0000 | [diff] [blame] | 180 | 	html/dist/dist.html \ | 
 | 181 | 	html/whatsnew/$(WHATSNEW).html | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 182 |  | 
| Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 183 | ALLHTMLFILES=$(INDEXFILES) html/index.html html/modindex.html html/acks.html | 
 | 184 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 185 | COMMONPERL= perl/manual.perl perl/python.perl perl/l2hinit.perl | 
 | 186 |  | 
| Fred Drake | 520b009 | 2001-10-29 17:40:40 +0000 | [diff] [blame] | 187 | ANNOAPI=api/refcounts.dat tools/anno-api.py | 
 | 188 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 189 | include Makefile.deps | 
| Fred Drake | 33d05b9 | 1998-01-13 16:33:09 +0000 | [diff] [blame] | 190 |  | 
| Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 191 | # These must be declared phony since there | 
 | 192 | # are directories with matching names: | 
| Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 193 | .PHONY: api doc ext lib mac ref tut inst dist | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 194 | .PHONY: html info isilo | 
| Fred Drake | 3f8a59f | 1998-07-24 13:58:27 +0000 | [diff] [blame] | 195 |  | 
| Fred Drake | bbe33c5 | 1998-05-07 01:39:06 +0000 | [diff] [blame] | 196 |  | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 197 | # Main target | 
| Fred Drake | 38d5345 | 2002-05-25 20:28:46 +0000 | [diff] [blame] | 198 | default:	html | 
 | 199 | all:		html dvi ps pdf isilo | 
| Guido van Rossum | eb8d503 | 1996-08-09 21:46:05 +0000 | [diff] [blame] | 200 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 201 | dvi:	$(DVIFILES) | 
 | 202 | pdf:	$(PDFFILES) | 
 | 203 | ps:	$(PSFILES) | 
| Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 204 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 205 | world:	ps pdf html distfiles | 
| Guido van Rossum | 20aca5a | 1991-01-25 13:29:04 +0000 | [diff] [blame] | 206 |  | 
| Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 207 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 208 | # Rules to build PostScript and PDF formats | 
 | 209 | .SUFFIXES: .dvi .ps | 
 | 210 |  | 
 | 211 | .dvi.ps: | 
 | 212 | 	$(DVIPS) -o $@ $< | 
| Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 213 |  | 
 | 214 |  | 
 | 215 | # Targets for each document: | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 216 | # Python/C API Reference Manual | 
| Fred Drake | 520b009 | 2001-10-29 17:40:40 +0000 | [diff] [blame] | 217 | paper-$(PAPER)/api.dvi: $(ANNOAPIFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 218 | 	cd paper-$(PAPER) && $(MKDVI) api.tex | 
| Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 219 |  | 
| Fred Drake | 520b009 | 2001-10-29 17:40:40 +0000 | [diff] [blame] | 220 | paper-$(PAPER)/api.pdf: $(ANNOAPIFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 221 | 	cd paper-$(PAPER) && $(MKPDF) api.tex | 
| Fred Drake | 1508743 | 1999-03-16 16:11:27 +0000 | [diff] [blame] | 222 |  | 
| Fred Drake | 57b38ed | 2002-10-04 19:23:06 +0000 | [diff] [blame] | 223 | paper-$(PAPER)/api.tex: api/api.tex | 
 | 224 | 	cp api/api.tex $@ | 
| Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 225 |  | 
| Fred Drake | 520b009 | 2001-10-29 17:40:40 +0000 | [diff] [blame] | 226 | paper-$(PAPER)/abstract.tex: api/abstract.tex $(ANNOAPI) | 
 | 227 | 	$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/abstract.tex | 
 | 228 |  | 
 | 229 | paper-$(PAPER)/concrete.tex: api/concrete.tex $(ANNOAPI) | 
 | 230 | 	$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/concrete.tex | 
 | 231 |  | 
 | 232 | paper-$(PAPER)/exceptions.tex: api/exceptions.tex $(ANNOAPI) | 
 | 233 | 	$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/exceptions.tex | 
 | 234 |  | 
 | 235 | paper-$(PAPER)/init.tex: api/init.tex $(ANNOAPI) | 
 | 236 | 	$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/init.tex | 
 | 237 |  | 
| Fred Drake | 57b38ed | 2002-10-04 19:23:06 +0000 | [diff] [blame] | 238 | paper-$(PAPER)/intro.tex: api/intro.tex | 
 | 239 | 	cp api/intro.tex $@ | 
| Fred Drake | 520b009 | 2001-10-29 17:40:40 +0000 | [diff] [blame] | 240 |  | 
 | 241 | paper-$(PAPER)/memory.tex: api/memory.tex $(ANNOAPI) | 
 | 242 | 	$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/memory.tex | 
 | 243 |  | 
 | 244 | paper-$(PAPER)/newtypes.tex: api/newtypes.tex $(ANNOAPI) | 
 | 245 | 	$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/newtypes.tex | 
 | 246 |  | 
 | 247 | paper-$(PAPER)/refcounting.tex: api/refcounting.tex $(ANNOAPI) | 
 | 248 | 	$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/refcounting.tex | 
 | 249 |  | 
 | 250 | paper-$(PAPER)/utilities.tex: api/utilities.tex $(ANNOAPI) | 
 | 251 | 	$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/utilities.tex | 
 | 252 |  | 
 | 253 | paper-$(PAPER)/veryhigh.tex: api/veryhigh.tex $(ANNOAPI) | 
 | 254 | 	$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/veryhigh.tex | 
 | 255 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 256 | # Distributing Python Modules | 
 | 257 | paper-$(PAPER)/dist.dvi: $(DISTFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 258 | 	cd paper-$(PAPER) && $(MKDVI) ../dist/dist.tex | 
| Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 259 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 260 | paper-$(PAPER)/dist.pdf: $(DISTFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 261 | 	cd paper-$(PAPER) && $(MKPDF) ../dist/dist.tex | 
| Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 262 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 263 | # Documenting Python | 
 | 264 | paper-$(PAPER)/doc.dvi: $(DOCFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 265 | 	cd paper-$(PAPER) && $(MKDVI) ../doc/doc.tex | 
| Fred Drake | 3f8a59f | 1998-07-24 13:58:27 +0000 | [diff] [blame] | 266 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 267 | paper-$(PAPER)/doc.pdf: $(DOCFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 268 | 	cd paper-$(PAPER) && $(MKPDF) ../doc/doc.tex | 
| Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 269 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 270 | # Extending and Embedding the Python Interpreter | 
 | 271 | paper-$(PAPER)/ext.dvi: $(EXTFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 272 | 	cd paper-$(PAPER) && $(MKDVI) ../ext/ext.tex | 
| Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 273 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 274 | paper-$(PAPER)/ext.pdf: $(EXTFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 275 | 	cd paper-$(PAPER) && $(MKPDF) ../ext/ext.tex | 
| Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 276 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 277 | # Installing Python Modules | 
 | 278 | paper-$(PAPER)/inst.dvi: $(INSTFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 279 | 	cd paper-$(PAPER) && $(MKDVI) ../inst/inst.tex | 
| Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 280 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 281 | paper-$(PAPER)/inst.pdf: $(INSTFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 282 | 	cd paper-$(PAPER) && $(MKPDF) ../inst/inst.tex | 
| Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 283 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 284 | # Python Library Reference | 
 | 285 | paper-$(PAPER)/lib.dvi: $(LIBFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 286 | 	cd paper-$(PAPER) && $(MKDVI) ../lib/lib.tex | 
| Fred Drake | 1508743 | 1999-03-16 16:11:27 +0000 | [diff] [blame] | 287 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 288 | paper-$(PAPER)/lib.pdf: $(LIBFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 289 | 	cd paper-$(PAPER) && $(MKPDF) ../lib/lib.tex | 
| Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 290 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 291 | # Macintosh Library Modules | 
 | 292 | paper-$(PAPER)/mac.dvi: $(MACFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 293 | 	cd paper-$(PAPER) && $(MKDVI) ../mac/mac.tex | 
| Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 294 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 295 | paper-$(PAPER)/mac.pdf: $(MACFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 296 | 	cd paper-$(PAPER) && $(MKPDF) ../mac/mac.tex | 
| Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 297 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 298 | # Python Reference Manual | 
 | 299 | paper-$(PAPER)/ref.dvi: $(REFFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 300 | 	cd paper-$(PAPER) && $(MKDVI) ../ref/ref.tex | 
| Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 301 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 302 | paper-$(PAPER)/ref.pdf: $(REFFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 303 | 	cd paper-$(PAPER) && $(MKPDF) ../ref/ref.tex | 
| Fred Drake | ddae414 | 1998-02-17 15:45:25 +0000 | [diff] [blame] | 304 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 305 | # Python Tutorial | 
 | 306 | paper-$(PAPER)/tut.dvi: $(TUTFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 307 | 	cd paper-$(PAPER) && $(MKDVI) ../tut/tut.tex | 
| Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 308 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 309 | paper-$(PAPER)/tut.pdf: $(TUTFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 310 | 	cd paper-$(PAPER) && $(MKPDF) ../tut/tut.tex | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 311 |  | 
| Fred Drake | 9ac14de | 2002-03-26 19:18:18 +0000 | [diff] [blame] | 312 | # What's New in Python X.Y | 
| Fred Drake | 4add68b | 2002-11-26 22:13:41 +0000 | [diff] [blame] | 313 | paper-$(PAPER)/$(WHATSNEW).dvi: whatsnew/$(WHATSNEW).tex | 
| Fred Drake | 9ac14de | 2002-03-26 19:18:18 +0000 | [diff] [blame] | 314 | 	cd paper-$(PAPER) && $(MKDVI) ../whatsnew/$(WHATSNEW).tex | 
 | 315 |  | 
| Fred Drake | 4add68b | 2002-11-26 22:13:41 +0000 | [diff] [blame] | 316 | paper-$(PAPER)/$(WHATSNEW).pdf: whatsnew/$(WHATSNEW).tex | 
| Fred Drake | 9ac14de | 2002-03-26 19:18:18 +0000 | [diff] [blame] | 317 | 	cd paper-$(PAPER) && $(MKPDF) ../whatsnew/$(WHATSNEW).tex | 
 | 318 |  | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 319 | # The remaining part of the Makefile is concerned with various | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 320 | # conversions, as described above.  See also the README file. | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 321 |  | 
| Fred Drake | b9838d9 | 1998-05-08 15:43:08 +0000 | [diff] [blame] | 322 | info: | 
| Fred Drake | fa00f91 | 2003-07-16 04:01:04 +0000 | [diff] [blame] | 323 | 	cd $(INFODIR) && $(MAKE) EMACS=$(EMACS) WHATSNEW=$(WHATSNEW) | 
| Fred Drake | 5ad78f3 | 1998-02-22 19:47:13 +0000 | [diff] [blame] | 324 |  | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 325 | # Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to | 
 | 326 | # HTML converter.  For more info on this program, see | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 327 | # <URL:http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html>. | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 328 |  | 
| Guido van Rossum | 9cb6480 | 1997-12-29 20:01:55 +0000 | [diff] [blame] | 329 | # Note that LaTeX2HTML inserts references to an icons directory in | 
 | 330 | # each page that it generates.  I have placed a copy of this directory | 
 | 331 | # in the distribution to simplify the process of creating a | 
 | 332 | # self-contained HTML distribution; for this purpose I have also added | 
 | 333 | # a (trivial) index.html.  Change the definition of $ICONSERVER in | 
| Fred Drake | 9fab3aa | 1998-04-28 19:20:43 +0000 | [diff] [blame] | 334 | # perl/l2hinit.perl to use a different location for the icons directory. | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 335 |  | 
| Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 336 | # If you have the standard LaTeX2HTML icons installed, the versions shipped | 
 | 337 | # with this documentation should be stored in a separate directory and used | 
 | 338 | # instead.  The standard set does *not* include all the icons used in the | 
 | 339 | # Python documentation. | 
| Fred Drake | bbe33c5 | 1998-05-07 01:39:06 +0000 | [diff] [blame] | 340 |  | 
| Fred Drake | 0099d8f | 2001-10-25 15:12:31 +0000 | [diff] [blame] | 341 | $(ALLCSSFILES): html/style.css | 
 | 342 | 	cp $< $@ | 
 | 343 |  | 
| Fred Drake | 5af41c5 | 2003-05-22 15:28:55 +0000 | [diff] [blame] | 344 | $(INDEXFILES): $(COMMONPERL) html/stdabout.dat tools/node2label.pl | 
| Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 345 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 346 | html/acks.html: ACKS $(TOOLSDIR)/support.py $(TOOLSDIR)/mkackshtml | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 347 | 	$(PYTHON) $(TOOLSDIR)/mkackshtml --address $(PYTHONDOCS) \ | 
| Fred Drake | 6e2e90d | 2004-11-05 04:51:05 +0000 | [diff] [blame] | 348 | 		--favicon icons/pyfav.png \ | 
| Fred Drake | d27ed85 | 2001-02-22 23:06:21 +0000 | [diff] [blame] | 349 | 		--output html/acks.html <ACKS | 
| Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 350 |  | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 351 |  | 
 | 352 | # html/index.html is dependent on $(INDEXFILES) since we want the date | 
 | 353 | # on the front index to be updated whenever any of the child documents | 
 | 354 | # are updated and boilerplate.tex uses \today as the date.  The index | 
 | 355 | # files are not used to actually generate content. | 
 | 356 |  | 
| Fred Drake | e1b38c4 | 2003-09-27 07:48:25 +0000 | [diff] [blame] | 357 | BOILERPLATE=commontex/boilerplate.tex | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 358 | html/index.html: $(INDEXFILES) | 
 | 359 | html/index.html: html/index.html.in $(BOILERPLATE) tools/rewrite.py | 
| Fred Drake | 4e526fe | 2002-03-26 20:29:11 +0000 | [diff] [blame] | 360 | 	$(PYTHON) tools/rewrite.py $(BOILERPLATE) \ | 
 | 361 | 		RELEASE=$(RELEASE) WHATSNEW=$(WHATSNEW) \ | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 362 | 		<$< >$@ | 
 | 363 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 364 | html/modindex.html: $(TOOLSDIR)/support.py $(TOOLSDIR)/mkmodindex | 
| Fred Drake | 4ac6c6a | 2004-03-23 19:26:54 +0000 | [diff] [blame] | 365 | html/modindex.html: html/dist/dist.html | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 366 | html/modindex.html: html/lib/lib.html html/mac/mac.html | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 367 | 	cd html && \ | 
| Fred Drake | 4ac6c6a | 2004-03-23 19:26:54 +0000 | [diff] [blame] | 368 | 	 $(PYTHON) ../$(TOOLSDIR)/mkmodindex --columns 3 \ | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 369 | 		--output modindex.html --address $(PYTHONDOCS) \ | 
| Fred Drake | 6e2e90d | 2004-11-05 04:51:05 +0000 | [diff] [blame] | 370 | 		--favicon icons/pyfav.png \ | 
| Fred Drake | 4ac6c6a | 2004-03-23 19:26:54 +0000 | [diff] [blame] | 371 | 		dist/modindex.html \ | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 372 | 		lib/modindex.html mac/modindex.html | 
| Fred Drake | 7d5f5dd | 1999-03-18 19:08:47 +0000 | [diff] [blame] | 373 |  | 
| Fred Drake | 0099d8f | 2001-10-25 15:12:31 +0000 | [diff] [blame] | 374 | html:	$(ALLHTMLFILES) $(HTMLCSSFILES) | 
| Guido van Rossum | 970871f | 1993-02-21 20:10:26 +0000 | [diff] [blame] | 375 |  | 
| Fred Drake | 0099d8f | 2001-10-25 15:12:31 +0000 | [diff] [blame] | 376 | api: html/api/api.html html/api/api.css | 
| Fred Drake | db2e3e3 | 2002-05-23 19:41:25 +0000 | [diff] [blame] | 377 | html/api/api.html: $(APIFILES) api/refcounts.dat | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 378 | 	$(MKHTML) --dir html/api api/api.tex | 
| Fred Drake | a6bb396 | 1998-05-06 19:51:39 +0000 | [diff] [blame] | 379 |  | 
| Fred Drake | 0099d8f | 2001-10-25 15:12:31 +0000 | [diff] [blame] | 380 | doc: html/doc/doc.html html/doc/doc.css | 
 | 381 | html/doc/doc.html: $(DOCFILES) | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 382 | 	$(MKHTML) --dir html/doc doc/doc.tex | 
| Fred Drake | cdbd391 | 1998-05-15 17:02:10 +0000 | [diff] [blame] | 383 |  | 
| Fred Drake | 0099d8f | 2001-10-25 15:12:31 +0000 | [diff] [blame] | 384 | ext: html/ext/ext.html html/ext/ext.css | 
 | 385 | html/ext/ext.html: $(EXTFILES) | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 386 | 	$(MKHTML) --dir html/ext ext/ext.tex | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 387 |  | 
| Fred Drake | 0099d8f | 2001-10-25 15:12:31 +0000 | [diff] [blame] | 388 | lib: html/lib/lib.html html/lib/lib.css | 
 | 389 | html/lib/lib.html: $(LIBFILES) | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 390 | 	$(MKHTML) --dir html/lib lib/lib.tex | 
| Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 391 |  | 
| Fred Drake | 0099d8f | 2001-10-25 15:12:31 +0000 | [diff] [blame] | 392 | mac: html/mac/mac.html html/mac/mac.css | 
 | 393 | html/mac/mac.html: $(MACFILES) | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 394 | 	$(MKHTML) --dir html/mac mac/mac.tex | 
| Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 395 |  | 
| Fred Drake | 0099d8f | 2001-10-25 15:12:31 +0000 | [diff] [blame] | 396 | ref: html/ref/ref.html html/ref/ref.css | 
 | 397 | html/ref/ref.html: $(REFFILES) | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 398 | 	$(MKHTML) --dir html/ref ref/ref.tex | 
| Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 399 |  | 
| Fred Drake | 0099d8f | 2001-10-25 15:12:31 +0000 | [diff] [blame] | 400 | tut: html/tut/tut.html html/tut/tut.css | 
 | 401 | html/tut/tut.html: $(TUTFILES) | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 402 | 	$(MKHTML) --dir html/tut --numeric --split 3 tut/tut.tex | 
 | 403 |  | 
| Fred Drake | 0099d8f | 2001-10-25 15:12:31 +0000 | [diff] [blame] | 404 | inst: html/inst/inst.html html/inst/inst.css | 
 | 405 | html/inst/inst.html: $(INSTFILES) perl/distutils.perl | 
| Fred Drake | 8c01158 | 2001-03-01 18:38:56 +0000 | [diff] [blame] | 406 | 	$(MKHTML) --dir html/inst --split 4 inst/inst.tex | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 407 |  | 
| Fred Drake | 0099d8f | 2001-10-25 15:12:31 +0000 | [diff] [blame] | 408 | dist: html/dist/dist.html html/dist/dist.css | 
 | 409 | html/dist/dist.html: $(DISTFILES) perl/distutils.perl | 
| Fred Drake | 8c01158 | 2001-03-01 18:38:56 +0000 | [diff] [blame] | 410 | 	$(MKHTML) --dir html/dist --split 4 dist/dist.tex | 
| Fred Drake | e7a8c97 | 2000-04-07 16:27:15 +0000 | [diff] [blame] | 411 |  | 
| Fred Drake | 9ac14de | 2002-03-26 19:18:18 +0000 | [diff] [blame] | 412 | whatsnew: html/whatsnew/$(WHATSNEW).html | 
 | 413 | html/whatsnew/$(WHATSNEW).html: whatsnew/$(WHATSNEW).tex | 
 | 414 | 	$(MKHTML) --dir html/whatsnew --split 4 whatsnew/$(WHATSNEW).tex | 
 | 415 |  | 
| Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 416 |  | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 417 | # The iSilo format is used by the iSilo document reader for PalmOS devices. | 
 | 418 |  | 
 | 419 | ISILOINDEXFILES=isilo/api/api.html \ | 
 | 420 | 	isilo/doc/doc.html \ | 
 | 421 | 	isilo/ext/ext.html \ | 
 | 422 | 	isilo/lib/lib.html \ | 
 | 423 | 	isilo/mac/mac.html \ | 
 | 424 | 	isilo/ref/ref.html \ | 
 | 425 | 	isilo/tut/tut.html \ | 
 | 426 | 	isilo/inst/inst.html \ | 
| Fred Drake | 3014086 | 2002-03-26 19:53:56 +0000 | [diff] [blame] | 427 | 	isilo/dist/dist.html \ | 
 | 428 | 	isilo/whatsnew/$(WHATSNEW).html | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 429 |  | 
| Fred Drake | 5af41c5 | 2003-05-22 15:28:55 +0000 | [diff] [blame] | 430 | $(ISILOINDEXFILES): $(COMMONPERL) html/stdabout.dat perl/isilo.perl | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 431 |  | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 432 | isilo:	isilo/python-api.pdb \ | 
 | 433 | 	isilo/python-doc.pdb \ | 
 | 434 | 	isilo/python-ext.pdb \ | 
 | 435 | 	isilo/python-lib.pdb \ | 
 | 436 | 	isilo/python-mac.pdb \ | 
 | 437 | 	isilo/python-ref.pdb \ | 
 | 438 | 	isilo/python-tut.pdb \ | 
 | 439 | 	isilo/python-dist.pdb \ | 
 | 440 | 	isilo/python-inst.pdb \ | 
 | 441 | 	isilo/python-whatsnew.pdb | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 442 |  | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 443 | isilo/python-api.pdb: isilo/api/api.html isilo/api/api.css | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 444 | 	$(MKISILO) "-iPython/C API Reference Manual" \ | 
 | 445 | 		isilo/api/api.html $@ | 
 | 446 |  | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 447 | isilo/python-doc.pdb: isilo/doc/doc.html isilo/doc/doc.css | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 448 | 	$(MKISILO) "-iDocumenting Python" \ | 
 | 449 | 		isilo/doc/doc.html $@ | 
 | 450 |  | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 451 | isilo/python-ext.pdb: isilo/ext/ext.html isilo/ext/ext.css | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 452 | 	$(MKISILO) "-iExtending & Embedding Python" \ | 
 | 453 | 		isilo/ext/ext.html $@ | 
 | 454 |  | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 455 | isilo/python-lib.pdb: isilo/lib/lib.html isilo/lib/lib.css | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 456 | 	$(MKISILO) "-iPython Library Reference" \ | 
 | 457 | 		isilo/lib/lib.html $@ | 
 | 458 |  | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 459 | isilo/python-mac.pdb: isilo/mac/mac.html isilo/mac/mac.css | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 460 | 	$(MKISILO) "-iPython/C API Reference Manual" \ | 
 | 461 | 		isilo/mac/mac.html $@ | 
 | 462 |  | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 463 | isilo/python-ref.pdb: isilo/ref/ref.html isilo/ref/ref.css | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 464 | 	$(MKISILO) "-iPython Reference Manual" \ | 
 | 465 | 		isilo/ref/ref.html $@ | 
 | 466 |  | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 467 | isilo/python-tut.pdb: isilo/tut/tut.html isilo/tut/tut.css | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 468 | 	$(MKISILO) "-iPython Tutorial" \ | 
 | 469 | 		isilo/tut/tut.html $@ | 
 | 470 |  | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 471 | isilo/python-dist.pdb: isilo/dist/dist.html isilo/dist/dist.css | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 472 | 	$(MKISILO) "-iDistributing Python Modules" \ | 
 | 473 | 		isilo/dist/dist.html $@ | 
 | 474 |  | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 475 | isilo/python-inst.pdb: isilo/inst/inst.html isilo/inst/inst.css | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 476 | 	$(MKISILO) "-iInstalling Python Modules" \ | 
 | 477 | 		isilo/inst/inst.html $@ | 
 | 478 |  | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 479 | isilo/python-whatsnew.pdb: isilo/whatsnew/$(WHATSNEW).html isilo/whatsnew/$(WHATSNEW).css | 
| Fred Drake | 3014086 | 2002-03-26 19:53:56 +0000 | [diff] [blame] | 480 | 	$(MKISILO) "-iWhat's New in Python X.Y" \ | 
 | 481 | 		isilo/whatsnew/$(WHATSNEW).html $@ | 
 | 482 |  | 
| Fred Drake | db2e3e3 | 2002-05-23 19:41:25 +0000 | [diff] [blame] | 483 | isilo/api/api.html: $(APIFILES) api/refcounts.dat | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 484 | 	$(MKISILOHTML) --dir isilo/api api/api.tex | 
 | 485 |  | 
 | 486 | isilo/doc/doc.html: $(DOCFILES) | 
 | 487 | 	$(MKISILOHTML) --dir isilo/doc doc/doc.tex | 
 | 488 |  | 
 | 489 | isilo/ext/ext.html: $(EXTFILES) | 
 | 490 | 	$(MKISILOHTML) --dir isilo/ext ext/ext.tex | 
 | 491 |  | 
 | 492 | isilo/lib/lib.html: $(LIBFILES) | 
 | 493 | 	$(MKISILOHTML) --dir isilo/lib lib/lib.tex | 
 | 494 |  | 
 | 495 | isilo/mac/mac.html: $(MACFILES) | 
 | 496 | 	$(MKISILOHTML) --dir isilo/mac mac/mac.tex | 
 | 497 |  | 
 | 498 | isilo/ref/ref.html: $(REFFILES) | 
 | 499 | 	$(MKISILOHTML) --dir isilo/ref ref/ref.tex | 
 | 500 |  | 
 | 501 | isilo/tut/tut.html: $(TUTFILES) | 
 | 502 | 	$(MKISILOHTML) --dir isilo/tut tut/tut.tex | 
 | 503 |  | 
 | 504 | isilo/inst/inst.html: $(INSTFILES) perl/distutils.perl | 
 | 505 | 	$(MKISILOHTML) --dir isilo/inst inst/inst.tex | 
 | 506 |  | 
 | 507 | isilo/dist/dist.html: $(DISTFILES) perl/distutils.perl | 
 | 508 | 	$(MKISILOHTML) --dir isilo/dist dist/dist.tex | 
 | 509 |  | 
| Fred Drake | 9ac14de | 2002-03-26 19:18:18 +0000 | [diff] [blame] | 510 | isilo/whatsnew/$(WHATSNEW).html: whatsnew/$(WHATSNEW).tex | 
 | 511 | 	$(MKISILOHTML) --dir isilo/whatsnew whatsnew/$(WHATSNEW).tex | 
 | 512 |  | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 513 | # These are useful if you need to transport the iSilo-ready HTML to | 
 | 514 | # another machine to perform the conversion: | 
 | 515 |  | 
 | 516 | isilozip:  isilo-html-$(RELEASE).zip | 
 | 517 |  | 
 | 518 | isilo-html-$(RELEASE).zip:	$(ISILOINDEXFILES) | 
 | 519 | 	rm -f $@ | 
 | 520 | 	cd isilo && \ | 
 | 521 | 		zip -q -9 ../$@ */*.css */*.html */*.txt | 
 | 522 |  | 
 | 523 |  | 
| Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 524 | # webchecker needs an extra flag to process the huge index from the libref | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 525 | WEBCHECKER=$(PYTHON) ../Tools/webchecker/webchecker.py | 
 | 526 | HTMLBASE=  file:`pwd`/html | 
 | 527 |  | 
| Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 528 | webcheck: $(ALLHTMLFILES) | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 529 | 	$(WEBCHECKER) $(HTMLBASE)/api/ | 
 | 530 | 	$(WEBCHECKER) $(HTMLBASE)/doc/ | 
 | 531 | 	$(WEBCHECKER) $(HTMLBASE)/ext/ | 
 | 532 | 	$(WEBCHECKER) -m290000 $(HTMLBASE)/lib/ | 
 | 533 | 	$(WEBCHECKER) $(HTMLBASE)/mac/ | 
 | 534 | 	$(WEBCHECKER) $(HTMLBASE)/ref/ | 
 | 535 | 	$(WEBCHECKER) $(HTMLBASE)/tut/ | 
 | 536 | 	$(WEBCHECKER) $(HTMLBASE)/dist/ | 
 | 537 | 	$(WEBCHECKER) $(HTMLBASE)/inst/ | 
| Fred Drake | 3014086 | 2002-03-26 19:53:56 +0000 | [diff] [blame] | 538 | 	$(WEBCHECKER) $(HTMLBASE)/whatsnew/ | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 539 |  | 
| Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 540 | fastwebcheck: $(ALLHTMLFILES) | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 541 | 	$(WEBCHECKER) -x $(HTMLBASE)/api/ | 
 | 542 | 	$(WEBCHECKER) -x $(HTMLBASE)/doc/ | 
 | 543 | 	$(WEBCHECKER) -x $(HTMLBASE)/ext/ | 
 | 544 | 	$(WEBCHECKER) -x -m290000 $(HTMLBASE)/lib/ | 
 | 545 | 	$(WEBCHECKER) -x $(HTMLBASE)/mac/ | 
 | 546 | 	$(WEBCHECKER) -x $(HTMLBASE)/ref/ | 
 | 547 | 	$(WEBCHECKER) -x $(HTMLBASE)/tut/ | 
 | 548 | 	$(WEBCHECKER) -x $(HTMLBASE)/dist/ | 
 | 549 | 	$(WEBCHECKER) -x $(HTMLBASE)/inst/ | 
| Fred Drake | 3014086 | 2002-03-26 19:53:56 +0000 | [diff] [blame] | 550 | 	$(WEBCHECKER) -x $(HTMLBASE)/whatsnew/ | 
| Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 551 |  | 
 | 552 |  | 
 | 553 | # Release packaging targets: | 
| Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 554 |  | 
| Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 555 | paper-$(PAPER)/README: $(PSFILES) $(TOOLSDIR)/getpagecounts | 
| Fred Drake | 3d0b697 | 2002-04-17 03:31:08 +0000 | [diff] [blame] | 556 | 	cd paper-$(PAPER) && ../$(TOOLSDIR)/getpagecounts -r $(RELEASE) >../$@ | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 557 |  | 
| Fred Drake | b6584ca | 1999-01-08 15:49:45 +0000 | [diff] [blame] | 558 | info-$(RELEASE).tgz: info | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 559 | 	cd $(INFODIR) && tar cf - README python.dir python-*.info* \ | 
| Fred Drake | de7cdb2 | 2003-07-17 11:55:18 +0000 | [diff] [blame] | 560 | 		| gzip -9 >../$@ | 
| Fred Drake | a799835 | 1998-02-19 16:01:04 +0000 | [diff] [blame] | 561 |  | 
| Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 562 | info-$(RELEASE).tar.bz2: info | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 563 | 	cd $(INFODIR) && tar cf - README python.dir python-*.info* \ | 
| Fred Drake | de7cdb2 | 2003-07-17 11:55:18 +0000 | [diff] [blame] | 564 | 		| bzip2 -9 >../$@ | 
| Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 565 |  | 
| Fred Drake | e34ab30 | 1998-05-11 21:10:15 +0000 | [diff] [blame] | 566 | latex-$(RELEASE).tgz: | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 567 | 	$(PYTHON) $(TOOLSDIR)/mksourcepkg --gzip $(RELEASE) | 
| Fred Drake | e61d7af | 1998-03-05 16:37:34 +0000 | [diff] [blame] | 568 |  | 
| Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 569 | latex-$(RELEASE).tar.bz2: | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 570 | 	$(PYTHON) $(TOOLSDIR)/mksourcepkg --bzip2 $(RELEASE) | 
| Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 571 |  | 
| Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 572 | latex-$(RELEASE).zip: | 
| Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 573 | 	rm -f $@ | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 574 | 	$(PYTHON) $(TOOLSDIR)/mksourcepkg --zip $(RELEASE) | 
| Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 575 |  | 
| Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 576 | pdf-$(PAPER)-$(RELEASE).tar: $(PDFFILES) | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 577 | 	rm -f $@ | 
 | 578 | 	mkdir Python-Docs-$(RELEASE) | 
 | 579 | 	cp paper-$(PAPER)/*.pdf Python-Docs-$(RELEASE) | 
 | 580 | 	tar cf $@ Python-Docs-$(RELEASE) | 
 | 581 | 	rm -r Python-Docs-$(RELEASE) | 
| Fred Drake | 04cf4dc | 1998-02-12 22:33:50 +0000 | [diff] [blame] | 582 |  | 
| Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 583 | pdf-$(PAPER)-$(RELEASE).tgz: pdf-$(PAPER)-$(RELEASE).tar | 
 | 584 | 	gzip -9 <$? >$@ | 
 | 585 |  | 
 | 586 | pdf-$(PAPER)-$(RELEASE).tar.bz2: pdf-$(PAPER)-$(RELEASE).tar | 
 | 587 | 	bzip2 -9 <$? >$@ | 
| Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 588 |  | 
| Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 589 | pdf-$(PAPER)-$(RELEASE).zip: pdf | 
| Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 590 | 	rm -f $@ | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 591 | 	mkdir Python-Docs-$(RELEASE) | 
 | 592 | 	cp paper-$(PAPER)/*.pdf Python-Docs-$(RELEASE) | 
 | 593 | 	zip -q -r -9 $@ Python-Docs-$(RELEASE) | 
 | 594 | 	rm -r Python-Docs-$(RELEASE) | 
| Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 595 |  | 
| Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 596 | postscript-$(PAPER)-$(RELEASE).tar: $(PSFILES) paper-$(PAPER)/README | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 597 | 	rm -f $@ | 
 | 598 | 	mkdir Python-Docs-$(RELEASE) | 
 | 599 | 	cp paper-$(PAPER)/*.ps Python-Docs-$(RELEASE) | 
 | 600 | 	cp paper-$(PAPER)/README Python-Docs-$(RELEASE) | 
 | 601 | 	tar cf $@ Python-Docs-$(RELEASE) | 
 | 602 | 	rm -r Python-Docs-$(RELEASE) | 
| Fred Drake | 04cf4dc | 1998-02-12 22:33:50 +0000 | [diff] [blame] | 603 |  | 
| Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 604 | postscript-$(PAPER)-$(RELEASE).tar.bz2: postscript-$(PAPER)-$(RELEASE).tar | 
 | 605 | 	bzip2 -9 <$< >$@ | 
| Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 606 |  | 
| Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 607 | postscript-$(PAPER)-$(RELEASE).tgz: postscript-$(PAPER)-$(RELEASE).tar | 
 | 608 | 	gzip -9 <$< >$@ | 
 | 609 |  | 
 | 610 | postscript-$(PAPER)-$(RELEASE).zip: $(PSFILES) paper-$(PAPER)/README | 
| Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 611 | 	rm -f $@ | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 612 | 	mkdir Python-Docs-$(RELEASE) | 
 | 613 | 	cp paper-$(PAPER)/*.ps Python-Docs-$(RELEASE) | 
 | 614 | 	cp paper-$(PAPER)/README Python-Docs-$(RELEASE) | 
 | 615 | 	zip -q -r -9 $@ Python-Docs-$(RELEASE) | 
 | 616 | 	rm -r Python-Docs-$(RELEASE) | 
 | 617 |  | 
| Fred Drake | 4f580e8 | 2004-04-08 18:50:51 +0000 | [diff] [blame] | 618 | HTMLPKGFILES=*.html */*.css */*.html */*.gif */*.png */*.txt | 
| Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 619 |  | 
| Fred Drake | 0099d8f | 2001-10-25 15:12:31 +0000 | [diff] [blame] | 620 | html-$(RELEASE).tar:	$(ALLHTMLFILES) $(HTMLCSSFILES) | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 621 | 	mkdir Python-Docs-$(RELEASE) | 
| Matthias Klose | 5b75f7d | 2004-08-18 22:17:44 +0000 | [diff] [blame] | 622 | 	-find html -name '*.gif' -size 0 | xargs rm -f | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 623 | 	cd html && tar cf ../temp.tar $(HTMLPKGFILES) | 
 | 624 | 	cd Python-Docs-$(RELEASE) && tar xf ../temp.tar | 
 | 625 | 	rm temp.tar | 
 | 626 | 	tar cf html-$(RELEASE).tar Python-Docs-$(RELEASE) | 
 | 627 | 	rm -r Python-Docs-$(RELEASE) | 
| Fred Drake | 33d05b9 | 1998-01-13 16:33:09 +0000 | [diff] [blame] | 628 |  | 
| Fred Drake | 8f65aef | 2001-07-17 23:35:46 +0000 | [diff] [blame] | 629 | html-$(RELEASE).tgz:	html-$(RELEASE).tar | 
| Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 630 | 	gzip -9 <$? >$@ | 
| Fred Drake | 8f65aef | 2001-07-17 23:35:46 +0000 | [diff] [blame] | 631 |  | 
 | 632 | html-$(RELEASE).tar.bz2: html-$(RELEASE).tar | 
| Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 633 | 	bzip2 -9 <$? >$@ | 
| Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 634 |  | 
| Fred Drake | 0099d8f | 2001-10-25 15:12:31 +0000 | [diff] [blame] | 635 | html-$(RELEASE).zip:	$(ALLHTMLFILES) $(HTMLCSSFILES) | 
| Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 636 | 	rm -f $@ | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 637 | 	mkdir Python-Docs-$(RELEASE) | 
 | 638 | 	cd html && tar cf ../temp.tar $(HTMLPKGFILES) | 
 | 639 | 	cd Python-Docs-$(RELEASE) && tar xf ../temp.tar | 
 | 640 | 	rm temp.tar | 
 | 641 | 	zip -q -r -9 $@ Python-Docs-$(RELEASE) | 
 | 642 | 	rm -r Python-Docs-$(RELEASE) | 
| Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 643 |  | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 644 | isilo-$(RELEASE).zip:	isilo | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 645 | 	rm -f $@ | 
 | 646 | 	mkdir Python-Docs-$(RELEASE) | 
 | 647 | 	cp isilo/python-*.pdb Python-Docs-$(RELEASE) | 
 | 648 | 	zip -q -r -9 $@ Python-Docs-$(RELEASE) | 
 | 649 | 	rm -r Python-Docs-$(RELEASE) | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 650 |  | 
 | 651 |  | 
| Fred Drake | a799835 | 1998-02-19 16:01:04 +0000 | [diff] [blame] | 652 | # convenience targets: | 
 | 653 |  | 
| Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 654 | tarhtml:	html-$(RELEASE).tgz | 
| Fred Drake | b6584ca | 1999-01-08 15:49:45 +0000 | [diff] [blame] | 655 | tarinfo:	info-$(RELEASE).tgz | 
| Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 656 | tarps:		postscript-$(PAPER)-$(RELEASE).tgz | 
 | 657 | tarpdf:		pdf-$(PAPER)-$(RELEASE).tgz | 
 | 658 | tarlatex:	latex-$(RELEASE).tgz | 
| Fred Drake | bbe33c5 | 1998-05-07 01:39:06 +0000 | [diff] [blame] | 659 |  | 
| Fred Drake | 83c0983 | 1999-08-02 20:20:14 +0000 | [diff] [blame] | 660 | tarballs:	tarpdf tarps tarhtml | 
| Guido van Rossum | 84cca44 | 1997-11-25 20:49:09 +0000 | [diff] [blame] | 661 |  | 
| Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 662 | ziphtml:	html-$(RELEASE).zip | 
 | 663 | zipps:		postscript-$(PAPER)-$(RELEASE).zip | 
 | 664 | zippdf:		pdf-$(PAPER)-$(RELEASE).zip | 
 | 665 | ziplatex:	latex-$(RELEASE).zip | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 666 | zipisilo:	isilo-$(RELEASE).zip | 
| Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 667 |  | 
| Fred Drake | b906d2e | 2000-07-01 02:37:37 +0000 | [diff] [blame] | 668 | zips:		zippdf zipps ziphtml | 
| Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 669 |  | 
| Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 670 | bziphtml:	html-$(RELEASE).tar.bz2 | 
 | 671 | bzipinfo:	info-$(RELEASE).tar.bz2 | 
 | 672 | bzipps:		postscript-$(PAPER)-$(RELEASE).tar.bz2 | 
 | 673 | bzippdf:	pdf-$(PAPER)-$(RELEASE).tar.bz2 | 
 | 674 | bziplatex:	latex-$(RELEASE).tar.bz2 | 
 | 675 |  | 
| Fred Drake | 83c0983 | 1999-08-02 20:20:14 +0000 | [diff] [blame] | 676 | bzips:		bzippdf bzipps bziphtml | 
| Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 677 |  | 
| Fred Drake | 2e6fb46 | 2004-09-17 20:23:47 +0000 | [diff] [blame] | 678 | disthtml:	bziphtml ziphtml | 
 | 679 | distinfo:	bzipinfo | 
 | 680 | distps:		bzipps zipps | 
 | 681 | distpdf:	bzippdf zippdf | 
 | 682 | distlatex:	bziplatex ziplatex | 
| Fred Drake | fc4ee0a | 2001-04-13 18:00:23 +0000 | [diff] [blame] | 683 |  | 
| Fred Drake | b36615d | 2003-09-28 16:25:43 +0000 | [diff] [blame] | 684 | # We use the "pkglist" target at the end of these to ensure the | 
 | 685 | # package list is updated after building either of these; this seems a | 
 | 686 | # reasonable compromise between only building it for distfiles or | 
 | 687 | # having to build it manually.  Doing it here allows the packages for | 
 | 688 | # distribution to be built using either of | 
 | 689 | #     make distfiles && make PAPER=a4 paperdist | 
 | 690 | #     make paperdist && make PAPER=a4 distfiles | 
 | 691 | # The small amount of additional work is a small price to pay for not | 
 | 692 | # having to remember which order to do it in. ;) | 
 | 693 | paperdist:	distpdf distps pkglist | 
 | 694 | edist:		disthtml distinfo zipisilo pkglist | 
| Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 695 |  | 
| Fred Drake | b36615d | 2003-09-28 16:25:43 +0000 | [diff] [blame] | 696 | # The pkglist.html file is used as part of the download.html page on | 
 | 697 | # python.org; it is not used as intermediate input here or as part of | 
 | 698 | # the packages created. | 
| Fred Drake | de7cdb2 | 2003-07-17 11:55:18 +0000 | [diff] [blame] | 699 | pkglist: | 
 | 700 | 	$(TOOLSDIR)/mkpkglist >pkglist.html | 
 | 701 |  | 
| Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 702 | distfiles:	paperdist edist | 
| Fred Drake | cf05f47 | 2004-12-01 05:55:47 +0000 | [diff] [blame] | 703 | 	$(TOOLSDIR)/mksourcepkg --bzip2 --zip $(RELEASE) | 
| Fred Drake | 444e434 | 2003-04-23 15:04:52 +0000 | [diff] [blame] | 704 | 	$(TOOLSDIR)/mkpkglist >pkglist.html | 
| Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 705 |  | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 706 |  | 
 | 707 | # Housekeeping targets | 
 | 708 |  | 
| Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 709 | # Remove temporary files; all except the following: | 
| Fred Drake | 6659c30 | 1998-03-03 22:02:19 +0000 | [diff] [blame] | 710 | # - sources: .tex, .bib, .sty, *.cls | 
| Fred Drake | 04cf4dc | 1998-02-12 22:33:50 +0000 | [diff] [blame] | 711 | # - useful results: .dvi, .pdf, .ps, .texi, .info | 
| Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 712 | clean: | 
| Fred Drake | 8f65aef | 2001-07-17 23:35:46 +0000 | [diff] [blame] | 713 | 	rm -f html-$(RELEASE).tar | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 714 | 	cd $(INFODIR) && $(MAKE) clean | 
| Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 715 |  | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 716 | # Remove temporaries as well as final products | 
| Fred Drake | b6584ca | 1999-01-08 15:49:45 +0000 | [diff] [blame] | 717 | clobber: | 
| Fred Drake | 8f65aef | 2001-07-17 23:35:46 +0000 | [diff] [blame] | 718 | 	rm -f html-$(RELEASE).tar | 
| Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 719 | 	rm -f html-$(RELEASE).tgz info-$(RELEASE).tgz | 
 | 720 | 	rm -f pdf-$(RELEASE).tgz postscript-$(RELEASE).tgz | 
| Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 721 | 	rm -f latex-$(RELEASE).tgz html-$(RELEASE).zip | 
 | 722 | 	rm -f pdf-$(RELEASE).zip postscript-$(RELEASE).zip | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 723 | 	rm -f $(DVIFILES) $(PSFILES) $(PDFFILES) | 
| Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 724 | 	cd $(INFODIR) && $(MAKE) clobber | 
| Fred Drake | 210d3cc | 2002-02-04 19:49:29 +0000 | [diff] [blame] | 725 | 	rm -f paper-$(PAPER)/*.tex paper-$(PAPER)/*.ind paper-$(PAPER)/*.idx | 
 | 726 | 	rm -f paper-$(PAPER)/*.l2h paper-$(PAPER)/*.how paper-$(PAPER)/README | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 727 | 	rm -rf html/index.html html/modindex.html html/acks.html | 
 | 728 | 	rm -rf html/api/ html/doc/ html/ext/ html/lib/ html/mac/ | 
 | 729 | 	rm -rf html/ref/ html/tut/ html/inst/ html/dist/ | 
| Fred Drake | 3014086 | 2002-03-26 19:53:56 +0000 | [diff] [blame] | 730 | 	rm -rf html/whatsnew/ | 
| Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 731 | 	rm -rf isilo/api/ isilo/doc/ isilo/ext/ isilo/lib/ isilo/mac/ | 
 | 732 | 	rm -rf isilo/ref/ isilo/tut/ isilo/inst/ isilo/dist/ | 
| Fred Drake | 3014086 | 2002-03-26 19:53:56 +0000 | [diff] [blame] | 733 | 	rm -rf isilo/whatsnew/ | 
| Fred Drake | 1a0199a | 2002-08-09 20:20:50 +0000 | [diff] [blame] | 734 | 	rm -f isilo/python-*.pdb isilo-$(RELEASE).zip | 
| Fred Drake | 5ad78f3 | 1998-02-22 19:47:13 +0000 | [diff] [blame] | 735 |  | 
| Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 736 | realclean distclean:  clobber |