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