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 | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 17 | # The latex sources for each of these documents are in subdirectories |
| 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 | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 20 | # The main target creates DVI and PostScript for the main each of the |
Fred Drake | efc17bd | 1998-07-28 21:05:16 +0000 | [diff] [blame] | 21 | # documents. You can also do "make lib" (etc.) to create the DVI and |
| 22 | # PostScript versions of individual 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. |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 28 | # |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 29 | # Everything is processed by LaTeX. See the file `README' for more |
| 30 | # information on the tools needed for processing. |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 31 | # |
| 32 | # There's a problem with generating the index which has been solved by |
| 33 | # a sed command applied to the index file. The shell script fix_hack |
| 34 | # does this (the Makefile takes care of calling it). |
| 35 | # |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 36 | # Additional targets attempt to convert selected LaTeX sources to |
| 37 | # various other formats. These are generally site specific because |
| 38 | # the tools used are all but universal. These targets are: |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 39 | # |
| 40 | # html -- convert all documents from LaTeX to HTML |
Fred Drake | efc17bd | 1998-07-28 21:05:16 +0000 | [diff] [blame] | 41 | # pdf -- convert all documents from LaTeX to the |
| 42 | # Portable Document Format |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 43 | # |
Fred Drake | efc17bd | 1998-07-28 21:05:16 +0000 | [diff] [blame] | 44 | # See the README file for more information on these targets. |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 45 | # |
| 46 | # The formatted output is located in subdirectories. For PDF and |
| 47 | # PostScript, look in the paper-$(PAPER)/ directory. For HTML, look in |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 48 | # the html/ directory. If you want to fix the GNU info process, look |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 49 | # in the info/ directory; please send patches to python-docs@python.org. |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 50 | |
Fred Drake | 78430b6 | 2000-08-29 16:30:21 +0000 | [diff] [blame] | 51 | # This Makefile only includes information on how to perform builds; for |
| 52 | # dependency information, see Makefile.deps. |
| 53 | |
Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 54 | # Customizations -- you *may* have to edit these |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 55 | |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 56 | # you could set this to a4 |
| 57 | PAPER=letter |
| 58 | |
Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 59 | # Ideally, you shouldn't need to edit beyond this point |
Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 60 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 61 | HTMLDIR= html |
| 62 | INFODIR= info |
| 63 | TOOLSDIR= tools |
| 64 | |
Fred Drake | 860e256 | 1999-07-12 16:52:50 +0000 | [diff] [blame] | 65 | # This is the *documentation* release, and is used to construct the file |
| 66 | # names of the downloadable tarballs. |
Fred Drake | 91eb3e8 | 2000-10-13 15:35:27 +0000 | [diff] [blame] | 67 | RELEASE=2.0 |
Fred Drake | 860e256 | 1999-07-12 16:52:50 +0000 | [diff] [blame] | 68 | |
Fred Drake | 33d05b9 | 1998-01-13 16:33:09 +0000 | [diff] [blame] | 69 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 70 | # These must be declared phony since there |
| 71 | # are directories with matching names: |
Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 72 | .PHONY: api doc ext lib mac ref tut inst dist |
Fred Drake | e7a8c97 | 2000-04-07 16:27:15 +0000 | [diff] [blame] | 73 | .PHONY: html info longhtml |
Fred Drake | 3f8a59f | 1998-07-24 13:58:27 +0000 | [diff] [blame] | 74 | |
Fred Drake | bbe33c5 | 1998-05-07 01:39:06 +0000 | [diff] [blame] | 75 | |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 76 | # Main target |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 77 | all: ps |
Guido van Rossum | eb8d503 | 1996-08-09 21:46:05 +0000 | [diff] [blame] | 78 | |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 79 | dvi: |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 80 | (cd paper-$(PAPER); $(MAKE) dvi) |
Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 81 | |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 82 | pdf: |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 83 | (cd paper-$(PAPER); $(MAKE) pdf) |
Guido van Rossum | 20aca5a | 1991-01-25 13:29:04 +0000 | [diff] [blame] | 84 | |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 85 | ps: |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 86 | (cd paper-$(PAPER); $(MAKE) ps) |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 87 | |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 88 | world: ps pdf html tarballs |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 89 | |
| 90 | |
| 91 | # Targets for each document: |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 92 | api api.ps: |
| 93 | (cd paper-$(PAPER); $(MAKE) api.ps) |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 94 | |
Fred Drake | 1508743 | 1999-03-16 16:11:27 +0000 | [diff] [blame] | 95 | doc doc.ps: |
| 96 | (cd paper-$(PAPER); $(MAKE) doc.ps) |
| 97 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 98 | ext ext.ps: |
| 99 | (cd paper-$(PAPER); $(MAKE) ext.ps) |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 100 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 101 | lib lib.ps: |
| 102 | (cd paper-$(PAPER); $(MAKE) lib.ps) |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 103 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 104 | mac mac.ps: |
| 105 | (cd paper-$(PAPER); $(MAKE) mac.ps) |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 106 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 107 | ref ref.ps: |
| 108 | (cd paper-$(PAPER); $(MAKE) ref.ps) |
Fred Drake | 3f8a59f | 1998-07-24 13:58:27 +0000 | [diff] [blame] | 109 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 110 | tut tut.ps: |
| 111 | (cd paper-$(PAPER); $(MAKE) tut.ps) |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 112 | |
Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 113 | inst inst.ps: |
| 114 | (cd paper-$(PAPER); $(MAKE) inst.ps) |
| 115 | |
| 116 | dist dist.ps: |
| 117 | (cd paper-$(PAPER); $(MAKE) dist.ps) |
| 118 | |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 119 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 120 | api.dvi: |
| 121 | (cd paper-$(PAPER); $(MAKE) api.dvi) |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 122 | |
Fred Drake | 1508743 | 1999-03-16 16:11:27 +0000 | [diff] [blame] | 123 | doc.dvi: |
| 124 | (cd paper-$(PAPER); $(MAKE) doc.dvi) |
| 125 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 126 | ext.dvi: |
| 127 | (cd paper-$(PAPER); $(MAKE) ext.dvi) |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 128 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 129 | lib.dvi: |
| 130 | (cd paper-$(PAPER); $(MAKE) lib.dvi) |
| 131 | |
| 132 | mac.dvi: |
| 133 | (cd paper-$(PAPER); $(MAKE) mac.dvi) |
| 134 | |
| 135 | ref.dvi: |
| 136 | (cd paper-$(PAPER); $(MAKE) ref.dvi) |
| 137 | |
| 138 | tut.dvi: |
| 139 | (cd paper-$(PAPER); $(MAKE) tut.dvi) |
Fred Drake | ddae414 | 1998-02-17 15:45:25 +0000 | [diff] [blame] | 140 | |
Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 141 | inst.dvi: |
| 142 | (cd paper-$(PAPER); $(MAKE) inst.dvi) |
| 143 | |
| 144 | dist.dvi: |
| 145 | (cd paper-$(PAPER); $(MAKE) dist.dvi) |
| 146 | |
Fred Drake | dd94676 | 1998-02-18 16:02:14 +0000 | [diff] [blame] | 147 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 148 | api.pdf: |
| 149 | (cd paper-$(PAPER); $(MAKE) api.pdf) |
Fred Drake | 126d840 | 1998-02-04 19:54:40 +0000 | [diff] [blame] | 150 | |
Fred Drake | 1508743 | 1999-03-16 16:11:27 +0000 | [diff] [blame] | 151 | doc.pdf: |
| 152 | (cd paper-$(PAPER); $(MAKE) doc.pdf) |
| 153 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 154 | ext.pdf: |
| 155 | (cd paper-$(PAPER); $(MAKE) ext.pdf) |
Fred Drake | 126d840 | 1998-02-04 19:54:40 +0000 | [diff] [blame] | 156 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 157 | lib.pdf: |
| 158 | (cd paper-$(PAPER); $(MAKE) lib.pdf) |
Fred Drake | 126d840 | 1998-02-04 19:54:40 +0000 | [diff] [blame] | 159 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 160 | mac.pdf: |
| 161 | (cd paper-$(PAPER); $(MAKE) mac.pdf) |
Fred Drake | 3b26eed | 1998-02-16 17:06:10 +0000 | [diff] [blame] | 162 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 163 | ref.pdf: |
| 164 | (cd paper-$(PAPER); $(MAKE) ref.pdf) |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 165 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 166 | tut.pdf: |
| 167 | (cd paper-$(PAPER); $(MAKE) tut.pdf) |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 168 | |
Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 169 | inst.pdf: |
| 170 | (cd paper-$(PAPER); $(MAKE) inst.pdf) |
| 171 | |
| 172 | dist.pdf: |
| 173 | (cd paper-$(PAPER); $(MAKE) dist.pdf) |
| 174 | |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 175 | |
| 176 | # The remaining part of the Makefile is concerned with various |
Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 177 | # conversions, as described above. See also the README file. |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 178 | |
Fred Drake | b9838d9 | 1998-05-08 15:43:08 +0000 | [diff] [blame] | 179 | info: |
| 180 | (cd $(INFODIR); $(MAKE)) |
Fred Drake | 5ad78f3 | 1998-02-22 19:47:13 +0000 | [diff] [blame] | 181 | |
Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 182 | # Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to |
| 183 | # HTML converter. For more info on this program, see |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 184 | # <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] | 185 | |
Guido van Rossum | 9cb6480 | 1997-12-29 20:01:55 +0000 | [diff] [blame] | 186 | # Note that LaTeX2HTML inserts references to an icons directory in |
| 187 | # each page that it generates. I have placed a copy of this directory |
| 188 | # in the distribution to simplify the process of creating a |
| 189 | # self-contained HTML distribution; for this purpose I have also added |
| 190 | # a (trivial) index.html. Change the definition of $ICONSERVER in |
Fred Drake | 9fab3aa | 1998-04-28 19:20:43 +0000 | [diff] [blame] | 191 | # 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] | 192 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 193 | # If you have the standard LaTeX2HTML icons installed, the versions shipped |
| 194 | # with this documentation should be stored in a separate directory and used |
| 195 | # instead. The standard set does *not* include all the icons used in the |
| 196 | # Python documentation. |
Fred Drake | bbe33c5 | 1998-05-07 01:39:06 +0000 | [diff] [blame] | 197 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 198 | html: |
| 199 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile) |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 200 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 201 | htmlapi: |
| 202 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile api) |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 203 | |
Fred Drake | 7d5f5dd | 1999-03-18 19:08:47 +0000 | [diff] [blame] | 204 | htmldoc: |
| 205 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile doc) |
| 206 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 207 | htmlext: |
| 208 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile ext) |
Guido van Rossum | 970871f | 1993-02-21 20:10:26 +0000 | [diff] [blame] | 209 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 210 | htmllib: |
| 211 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile lib) |
Fred Drake | a6bb396 | 1998-05-06 19:51:39 +0000 | [diff] [blame] | 212 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 213 | htmlmac: |
| 214 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile mac) |
Fred Drake | cdbd391 | 1998-05-15 17:02:10 +0000 | [diff] [blame] | 215 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 216 | htmlref: |
| 217 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile ref) |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 218 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 219 | htmltut: |
| 220 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile tut) |
| 221 | |
Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 222 | htmlinst: |
| 223 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile inst) |
| 224 | |
| 225 | htmldist: |
| 226 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile dist) |
| 227 | |
Fred Drake | e7a8c97 | 2000-04-07 16:27:15 +0000 | [diff] [blame] | 228 | longhtml: |
| 229 | (cd longhtml; $(MAKE) PAPER=$(PAPER)) |
| 230 | |
Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 231 | |
Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 232 | # webchecker needs an extra flag to process the huge index from the libref |
| 233 | webcheck: |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 234 | (cd $(HTMLDIR); $(MAKE) -f ../html/Makefile webcheck) |
| 235 | |
| 236 | |
| 237 | # Release packaging targets: |
Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 238 | |
Fred Drake | b6584ca | 1999-01-08 15:49:45 +0000 | [diff] [blame] | 239 | info-$(RELEASE).tgz: info |
Fred Drake | 28e66d1 | 1999-01-29 22:23:25 +0000 | [diff] [blame] | 240 | (cd $(INFODIR); tar cf - README python.dir python-???.info*) \ |
| 241 | | gzip -9 >$@ |
Fred Drake | a799835 | 1998-02-19 16:01:04 +0000 | [diff] [blame] | 242 | |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 243 | info-$(RELEASE).tar.bz2: info |
| 244 | (cd $(INFODIR); tar cf - README python.dir python-???.info*) \ |
| 245 | | bzip2 -9 >$@ |
| 246 | |
Fred Drake | e34ab30 | 1998-05-11 21:10:15 +0000 | [diff] [blame] | 247 | latex-$(RELEASE).tgz: |
Fred Drake | 83c0983 | 1999-08-02 20:20:14 +0000 | [diff] [blame] | 248 | $(TOOLSDIR)/mksourcepkg --gzip $(RELEASE) |
Fred Drake | e61d7af | 1998-03-05 16:37:34 +0000 | [diff] [blame] | 249 | |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 250 | latex-$(RELEASE).tar.bz2: |
Fred Drake | 83c0983 | 1999-08-02 20:20:14 +0000 | [diff] [blame] | 251 | $(TOOLSDIR)/mksourcepkg --bzip2 $(RELEASE) |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 252 | |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 253 | latex-$(RELEASE).zip: |
Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 254 | rm -f $@ |
Fred Drake | 83c0983 | 1999-08-02 20:20:14 +0000 | [diff] [blame] | 255 | $(TOOLSDIR)/mksourcepkg --zip $(RELEASE) |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 256 | |
Fred Drake | d19b9d6 | 1998-07-29 03:49:44 +0000 | [diff] [blame] | 257 | pdf-$(PAPER)-$(RELEASE).tgz: pdf |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 258 | (cd paper-$(PAPER); tar cf - *.pdf) | gzip -9 >$@ |
Fred Drake | 04cf4dc | 1998-02-12 22:33:50 +0000 | [diff] [blame] | 259 | |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 260 | pdf-$(PAPER)-$(RELEASE).tar.bz2: pdf |
| 261 | (cd paper-$(PAPER); tar cf - *.pdf) | bzip2 -9 >$@ |
| 262 | |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 263 | pdf-$(PAPER)-$(RELEASE).zip: pdf |
Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 264 | rm -f $@ |
| 265 | (cd paper-$(PAPER); zip -q -9 ../$@ *.pdf) |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 266 | |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 267 | postscript-$(PAPER)-$(RELEASE).tar.bz2: ps |
Fred Drake | 2335a30 | 1998-08-28 21:17:58 +0000 | [diff] [blame] | 268 | (cd paper-$(PAPER); $(MAKE) README) |
Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 269 | (cd paper-$(PAPER); tar cf - *.ps README) | bzip2 -9 >$@ |
Fred Drake | 04cf4dc | 1998-02-12 22:33:50 +0000 | [diff] [blame] | 270 | |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 271 | postscript-$(PAPER)-$(RELEASE).tgz: ps |
| 272 | (cd paper-$(PAPER); $(MAKE) README) |
Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 273 | (cd paper-$(PAPER); tar cf - *.ps README) | gzip -9 >$@ |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 274 | |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 275 | postscript-$(PAPER)-$(RELEASE).zip: ps |
| 276 | (cd paper-$(PAPER); $(MAKE) README) |
Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 277 | rm -f $@ |
| 278 | (cd paper-$(PAPER); zip -q -9 ../$@ *.ps README) |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 279 | |
Fred Drake | fcb7adb | 1999-01-12 20:32:39 +0000 | [diff] [blame] | 280 | html-$(RELEASE).tgz: html |
Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 281 | (cd $(HTMLDIR); \ |
Fred Drake | 90f8767 | 2000-09-08 21:54:44 +0000 | [diff] [blame] | 282 | tar cf - *.html */*.css */*.html */*.gif) \ |
Fred Drake | 29cabd4 | 1998-05-11 18:53:07 +0000 | [diff] [blame] | 283 | | gzip -9 >$@ |
Fred Drake | 33d05b9 | 1998-01-13 16:33:09 +0000 | [diff] [blame] | 284 | |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 285 | html-$(RELEASE).tar.bz2: html |
Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 286 | (cd $(HTMLDIR); \ |
Fred Drake | 90f8767 | 2000-09-08 21:54:44 +0000 | [diff] [blame] | 287 | tar cf - *.html */*.css */*.html */*.gif) \ |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 288 | | bzip2 -9 >$@ |
| 289 | |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 290 | html-$(RELEASE).zip: html |
Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 291 | rm -f $@ |
| 292 | (cd $(HTMLDIR); \ |
Fred Drake | 90f8767 | 2000-09-08 21:54:44 +0000 | [diff] [blame] | 293 | zip -q -9 ../$@ *.html */*.css */*.html */*.gif) |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 294 | |
Fred Drake | e7a8c97 | 2000-04-07 16:27:15 +0000 | [diff] [blame] | 295 | longhtml-$(RELEASE).zip: longhtml |
| 296 | rm -f $@ |
| 297 | (cd longhtml; \ |
| 298 | zip -q -9 ../$@ */*.css */*.html */*.gif) |
| 299 | |
Fred Drake | a799835 | 1998-02-19 16:01:04 +0000 | [diff] [blame] | 300 | # convenience targets: |
| 301 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 302 | tarhtml: html-$(RELEASE).tgz |
Fred Drake | b6584ca | 1999-01-08 15:49:45 +0000 | [diff] [blame] | 303 | tarinfo: info-$(RELEASE).tgz |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 304 | tarps: postscript-$(PAPER)-$(RELEASE).tgz |
| 305 | tarpdf: pdf-$(PAPER)-$(RELEASE).tgz |
| 306 | tarlatex: latex-$(RELEASE).tgz |
Fred Drake | bbe33c5 | 1998-05-07 01:39:06 +0000 | [diff] [blame] | 307 | |
Fred Drake | 83c0983 | 1999-08-02 20:20:14 +0000 | [diff] [blame] | 308 | tarballs: tarpdf tarps tarhtml |
Guido van Rossum | 84cca44 | 1997-11-25 20:49:09 +0000 | [diff] [blame] | 309 | |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 310 | ziphtml: html-$(RELEASE).zip |
Fred Drake | e7a8c97 | 2000-04-07 16:27:15 +0000 | [diff] [blame] | 311 | ziplonghtml: longhtml-$(RELEASE).zip |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 312 | zipps: postscript-$(PAPER)-$(RELEASE).zip |
| 313 | zippdf: pdf-$(PAPER)-$(RELEASE).zip |
| 314 | ziplatex: latex-$(RELEASE).zip |
| 315 | |
Fred Drake | b906d2e | 2000-07-01 02:37:37 +0000 | [diff] [blame] | 316 | # Only build the longhtml version for final releases; use the second |
| 317 | # version of this for pre-release versions. |
| 318 | # |
| 319 | #zips: zippdf zipps ziphtml ziplonghtml |
| 320 | zips: zippdf zipps ziphtml |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 321 | |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 322 | bziphtml: html-$(RELEASE).tar.bz2 |
| 323 | bzipinfo: info-$(RELEASE).tar.bz2 |
| 324 | bzipps: postscript-$(PAPER)-$(RELEASE).tar.bz2 |
| 325 | bzippdf: pdf-$(PAPER)-$(RELEASE).tar.bz2 |
| 326 | bziplatex: latex-$(RELEASE).tar.bz2 |
| 327 | |
Fred Drake | 83c0983 | 1999-08-02 20:20:14 +0000 | [diff] [blame] | 328 | bzips: bzippdf bzipps bziphtml |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 329 | |
Fred Drake | a577aa2 | 2000-10-19 13:25:15 +0000 | [diff] [blame] | 330 | distfiles: tarballs zips |
| 331 | $(TOOLSDIR)/mksourcepkg --zip --gzip $(RELEASE) |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 332 | |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 333 | |
| 334 | # Housekeeping targets |
| 335 | |
Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 336 | # Remove temporary files; all except the following: |
Fred Drake | 6659c30 | 1998-03-03 22:02:19 +0000 | [diff] [blame] | 337 | # - sources: .tex, .bib, .sty, *.cls |
Fred Drake | 04cf4dc | 1998-02-12 22:33:50 +0000 | [diff] [blame] | 338 | # - useful results: .dvi, .pdf, .ps, .texi, .info |
Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 339 | clean: |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 340 | (cd paper-$(PAPER); $(MAKE) clean) |
Fred Drake | e7a8c97 | 2000-04-07 16:27:15 +0000 | [diff] [blame] | 341 | (cd longhtml; $(MAKE) clean) |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 342 | (cd $(HTMLDIR); $(MAKE) clean) |
Fred Drake | e34ab30 | 1998-05-11 21:10:15 +0000 | [diff] [blame] | 343 | (cd $(INFODIR); $(MAKE) clean) |
Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 344 | |
Fred Drake | 03ff6f7 | 1997-08-22 18:18:54 +0000 | [diff] [blame] | 345 | l2hclean: |
Fred Drake | b6584ca | 1999-01-08 15:49:45 +0000 | [diff] [blame] | 346 | (cd $(HTMLDIR); $(MAKE) clean) |
Fred Drake | 03ff6f7 | 1997-08-22 18:18:54 +0000 | [diff] [blame] | 347 | |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 348 | # Remove temporaries as well as final products |
Fred Drake | b6584ca | 1999-01-08 15:49:45 +0000 | [diff] [blame] | 349 | clobber: |
| 350 | (cd $(HTMLDIR); $(MAKE) clobber) |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 351 | rm -f html-$(RELEASE).tgz info-$(RELEASE).tgz |
| 352 | rm -f pdf-$(RELEASE).tgz postscript-$(RELEASE).tgz |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 353 | rm -f latex-$(RELEASE).tgz html-$(RELEASE).zip |
| 354 | rm -f pdf-$(RELEASE).zip postscript-$(RELEASE).zip |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 355 | (cd paper-$(PAPER); $(MAKE) clobber) |
Fred Drake | e7a8c97 | 2000-04-07 16:27:15 +0000 | [diff] [blame] | 356 | (cd longhtml; $(MAKE) clobber) |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 357 | (cd $(HTMLDIR); $(MAKE) clobber) |
Fred Drake | e34ab30 | 1998-05-11 21:10:15 +0000 | [diff] [blame] | 358 | (cd $(INFODIR); $(MAKE) clobber) |
Fred Drake | 5ad78f3 | 1998-02-22 19:47:13 +0000 | [diff] [blame] | 359 | |
| 360 | realclean: clobber |
| 361 | distclean: clobber |