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 |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 14 | # |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 15 | # The latex sources for each of these documents are in subdirectories |
| 16 | # with the three-letter designations above as the directory names. |
Guido van Rossum | 1f17543 | 1996-10-22 20:00:02 +0000 | [diff] [blame] | 17 | # |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 18 | # 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] | 19 | # documents. You can also do "make lib" (etc.) to create the DVI and |
| 20 | # PostScript versions of individual documents. |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 21 | # |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 22 | # The document classes and styles are in the texinputs/ directory. |
| 23 | # These define a number of macros that are similar in name and intent |
| 24 | # 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] | 25 | # number of environments for formatting function and data definitions. |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 26 | # |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 27 | # Everything is processed by LaTeX. See the file `README' for more |
| 28 | # information on the tools needed for processing. |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 29 | # |
| 30 | # There's a problem with generating the index which has been solved by |
| 31 | # a sed command applied to the index file. The shell script fix_hack |
| 32 | # does this (the Makefile takes care of calling it). |
| 33 | # |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 34 | # Additional targets attempt to convert selected LaTeX sources to |
| 35 | # various other formats. These are generally site specific because |
| 36 | # the tools used are all but universal. These targets are: |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 37 | # |
| 38 | # html -- convert all documents from LaTeX to HTML |
Fred Drake | efc17bd | 1998-07-28 21:05:16 +0000 | [diff] [blame] | 39 | # pdf -- convert all documents from LaTeX to the |
| 40 | # Portable Document Format |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 41 | # |
Fred Drake | efc17bd | 1998-07-28 21:05:16 +0000 | [diff] [blame] | 42 | # See the README file for more information on these targets. |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 43 | # |
| 44 | # The formatted output is located in subdirectories. For PDF and |
| 45 | # PostScript, look in the paper-$(PAPER)/ directory. For HTML, look in |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 46 | # 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] | 47 | # 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] | 48 | |
Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 49 | # Customizations -- you *may* have to edit these |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 50 | |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 51 | # you could set this to a4 |
| 52 | PAPER=letter |
| 53 | |
Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 54 | # Ideally, you shouldn't need to edit beyond this point |
Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 55 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 56 | HTMLDIR= html |
| 57 | INFODIR= info |
| 58 | TOOLSDIR= tools |
| 59 | |
Fred Drake | 860e256 | 1999-07-12 16:52:50 +0000 | [diff] [blame] | 60 | # This is the *documentation* release, and is used to construct the file |
| 61 | # names of the downloadable tarballs. |
Fred Drake | e72d48d | 1999-07-06 14:30:04 +0000 | [diff] [blame] | 62 | RELEASE=1.5.2p1 |
Fred Drake | 860e256 | 1999-07-12 16:52:50 +0000 | [diff] [blame] | 63 | |
Fred Drake | 33d05b9 | 1998-01-13 16:33:09 +0000 | [diff] [blame] | 64 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 65 | # These must be declared phony since there |
| 66 | # are directories with matching names: |
Fred Drake | 90fc0a7 | 1999-03-17 16:06:51 +0000 | [diff] [blame] | 67 | .PHONY: api doc ext lib mac ref tut |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 68 | .PHONY: html info |
Fred Drake | 3f8a59f | 1998-07-24 13:58:27 +0000 | [diff] [blame] | 69 | |
Fred Drake | bbe33c5 | 1998-05-07 01:39:06 +0000 | [diff] [blame] | 70 | |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 71 | # Main target |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 72 | all: ps |
Guido van Rossum | eb8d503 | 1996-08-09 21:46:05 +0000 | [diff] [blame] | 73 | |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 74 | dvi: |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 75 | (cd paper-$(PAPER); $(MAKE) dvi) |
Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 76 | |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 77 | pdf: |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 78 | (cd paper-$(PAPER); $(MAKE) pdf) |
Guido van Rossum | 20aca5a | 1991-01-25 13:29:04 +0000 | [diff] [blame] | 79 | |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 80 | ps: |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 81 | (cd paper-$(PAPER); $(MAKE) ps) |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 82 | |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 83 | world: ps pdf html tarballs |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 84 | |
| 85 | |
| 86 | # Targets for each document: |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 87 | api api.ps: |
| 88 | (cd paper-$(PAPER); $(MAKE) api.ps) |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 89 | |
Fred Drake | 1508743 | 1999-03-16 16:11:27 +0000 | [diff] [blame] | 90 | doc doc.ps: |
| 91 | (cd paper-$(PAPER); $(MAKE) doc.ps) |
| 92 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 93 | ext ext.ps: |
| 94 | (cd paper-$(PAPER); $(MAKE) ext.ps) |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 95 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 96 | lib lib.ps: |
| 97 | (cd paper-$(PAPER); $(MAKE) lib.ps) |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 98 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 99 | mac mac.ps: |
| 100 | (cd paper-$(PAPER); $(MAKE) mac.ps) |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 101 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 102 | ref ref.ps: |
| 103 | (cd paper-$(PAPER); $(MAKE) ref.ps) |
Fred Drake | 3f8a59f | 1998-07-24 13:58:27 +0000 | [diff] [blame] | 104 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 105 | tut tut.ps: |
| 106 | (cd paper-$(PAPER); $(MAKE) tut.ps) |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 107 | |
| 108 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 109 | api.dvi: |
| 110 | (cd paper-$(PAPER); $(MAKE) api.dvi) |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 111 | |
Fred Drake | 1508743 | 1999-03-16 16:11:27 +0000 | [diff] [blame] | 112 | doc.dvi: |
| 113 | (cd paper-$(PAPER); $(MAKE) doc.dvi) |
| 114 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 115 | ext.dvi: |
| 116 | (cd paper-$(PAPER); $(MAKE) ext.dvi) |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 117 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 118 | lib.dvi: |
| 119 | (cd paper-$(PAPER); $(MAKE) lib.dvi) |
| 120 | |
| 121 | mac.dvi: |
| 122 | (cd paper-$(PAPER); $(MAKE) mac.dvi) |
| 123 | |
| 124 | ref.dvi: |
| 125 | (cd paper-$(PAPER); $(MAKE) ref.dvi) |
| 126 | |
| 127 | tut.dvi: |
| 128 | (cd paper-$(PAPER); $(MAKE) tut.dvi) |
Fred Drake | ddae414 | 1998-02-17 15:45:25 +0000 | [diff] [blame] | 129 | |
Fred Drake | dd94676 | 1998-02-18 16:02:14 +0000 | [diff] [blame] | 130 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 131 | api.pdf: |
| 132 | (cd paper-$(PAPER); $(MAKE) api.pdf) |
Fred Drake | 126d840 | 1998-02-04 19:54:40 +0000 | [diff] [blame] | 133 | |
Fred Drake | 1508743 | 1999-03-16 16:11:27 +0000 | [diff] [blame] | 134 | doc.pdf: |
| 135 | (cd paper-$(PAPER); $(MAKE) doc.pdf) |
| 136 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 137 | ext.pdf: |
| 138 | (cd paper-$(PAPER); $(MAKE) ext.pdf) |
Fred Drake | 126d840 | 1998-02-04 19:54:40 +0000 | [diff] [blame] | 139 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 140 | lib.pdf: |
| 141 | (cd paper-$(PAPER); $(MAKE) lib.pdf) |
Fred Drake | 126d840 | 1998-02-04 19:54:40 +0000 | [diff] [blame] | 142 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 143 | mac.pdf: |
| 144 | (cd paper-$(PAPER); $(MAKE) mac.pdf) |
Fred Drake | 3b26eed | 1998-02-16 17:06:10 +0000 | [diff] [blame] | 145 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 146 | ref.pdf: |
| 147 | (cd paper-$(PAPER); $(MAKE) ref.pdf) |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 148 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 149 | tut.pdf: |
| 150 | (cd paper-$(PAPER); $(MAKE) tut.pdf) |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 151 | |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 152 | |
| 153 | # The remaining part of the Makefile is concerned with various |
Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 154 | # conversions, as described above. See also the README file. |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 155 | |
Fred Drake | b9838d9 | 1998-05-08 15:43:08 +0000 | [diff] [blame] | 156 | info: |
| 157 | (cd $(INFODIR); $(MAKE)) |
Fred Drake | 5ad78f3 | 1998-02-22 19:47:13 +0000 | [diff] [blame] | 158 | |
Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 159 | # Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to |
| 160 | # HTML converter. For more info on this program, see |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 161 | # <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] | 162 | |
Guido van Rossum | 9cb6480 | 1997-12-29 20:01:55 +0000 | [diff] [blame] | 163 | # Note that LaTeX2HTML inserts references to an icons directory in |
| 164 | # each page that it generates. I have placed a copy of this directory |
| 165 | # in the distribution to simplify the process of creating a |
| 166 | # self-contained HTML distribution; for this purpose I have also added |
| 167 | # a (trivial) index.html. Change the definition of $ICONSERVER in |
Fred Drake | 9fab3aa | 1998-04-28 19:20:43 +0000 | [diff] [blame] | 168 | # 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] | 169 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 170 | # If you have the standard LaTeX2HTML icons installed, the versions shipped |
| 171 | # with this documentation should be stored in a separate directory and used |
| 172 | # instead. The standard set does *not* include all the icons used in the |
| 173 | # Python documentation. |
Fred Drake | bbe33c5 | 1998-05-07 01:39:06 +0000 | [diff] [blame] | 174 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 175 | html: |
| 176 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile) |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 177 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 178 | htmlapi: |
| 179 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile api) |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 180 | |
Fred Drake | 7d5f5dd | 1999-03-18 19:08:47 +0000 | [diff] [blame] | 181 | htmldoc: |
| 182 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile doc) |
| 183 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 184 | htmlext: |
| 185 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile ext) |
Guido van Rossum | 970871f | 1993-02-21 20:10:26 +0000 | [diff] [blame] | 186 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 187 | htmllib: |
| 188 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile lib) |
Fred Drake | a6bb396 | 1998-05-06 19:51:39 +0000 | [diff] [blame] | 189 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 190 | htmlmac: |
| 191 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile mac) |
Fred Drake | cdbd391 | 1998-05-15 17:02:10 +0000 | [diff] [blame] | 192 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 193 | htmlref: |
| 194 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile ref) |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 195 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 196 | htmltut: |
| 197 | (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile tut) |
| 198 | |
Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 199 | |
Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 200 | # webchecker needs an extra flag to process the huge index from the libref |
| 201 | webcheck: |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 202 | (cd $(HTMLDIR); $(MAKE) -f ../html/Makefile webcheck) |
| 203 | |
| 204 | |
| 205 | # Release packaging targets: |
Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 206 | |
Fred Drake | b6584ca | 1999-01-08 15:49:45 +0000 | [diff] [blame] | 207 | info-$(RELEASE).tgz: info |
Fred Drake | 28e66d1 | 1999-01-29 22:23:25 +0000 | [diff] [blame] | 208 | (cd $(INFODIR); tar cf - README python.dir python-???.info*) \ |
| 209 | | gzip -9 >$@ |
Fred Drake | a799835 | 1998-02-19 16:01:04 +0000 | [diff] [blame] | 210 | |
Fred Drake | e34ab30 | 1998-05-11 21:10:15 +0000 | [diff] [blame] | 211 | latex-$(RELEASE).tgz: |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 212 | $(TOOLSDIR)/mktarball.sh $(RELEASE) |
Fred Drake | e61d7af | 1998-03-05 16:37:34 +0000 | [diff] [blame] | 213 | |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame^] | 214 | latex-$(RELEASE).zip: |
| 215 | $(TOOLSDIR)/mktarball.sh --zip $(RELEASE) |
| 216 | |
Fred Drake | d19b9d6 | 1998-07-29 03:49:44 +0000 | [diff] [blame] | 217 | pdf-$(PAPER)-$(RELEASE).tgz: pdf |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 218 | (cd paper-$(PAPER); tar cf - *.pdf) | gzip -9 >$@ |
Fred Drake | 04cf4dc | 1998-02-12 22:33:50 +0000 | [diff] [blame] | 219 | |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame^] | 220 | pdf-$(PAPER)-$(RELEASE).zip: pdf |
| 221 | (cd paper-$(PAPER); zip -9 ../$@ *.pdf) |
| 222 | |
Fred Drake | d19b9d6 | 1998-07-29 03:49:44 +0000 | [diff] [blame] | 223 | postscript-$(PAPER)-$(RELEASE).tgz: ps |
Fred Drake | 2335a30 | 1998-08-28 21:17:58 +0000 | [diff] [blame] | 224 | (cd paper-$(PAPER); $(MAKE) README) |
| 225 | (cd paper-$(PAPER); tar cf - *.ps README) | gzip -9 >$@ |
Fred Drake | 04cf4dc | 1998-02-12 22:33:50 +0000 | [diff] [blame] | 226 | |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame^] | 227 | postscript-$(PAPER)-$(RELEASE).zip: ps |
| 228 | (cd paper-$(PAPER); $(MAKE) README) |
| 229 | (cd paper-$(PAPER); zip -9 ../$@ *.ps README) |
| 230 | |
Fred Drake | fcb7adb | 1999-01-12 20:32:39 +0000 | [diff] [blame] | 231 | html-$(RELEASE).tgz: html |
Fred Drake | ab005d5 | 1999-04-30 15:58:45 +0000 | [diff] [blame] | 232 | (cd $(HTMLDIR); tar cf - *index.html ???/*.css ???/*.html */*.gif) \ |
Fred Drake | 29cabd4 | 1998-05-11 18:53:07 +0000 | [diff] [blame] | 233 | | gzip -9 >$@ |
Fred Drake | 33d05b9 | 1998-01-13 16:33:09 +0000 | [diff] [blame] | 234 | |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame^] | 235 | html-$(RELEASE).zip: html |
| 236 | (cd $(HTMLDIR); zip -9 ../$@ *index.html ???/*.css ???/*.html */*.gif) |
| 237 | |
Fred Drake | a799835 | 1998-02-19 16:01:04 +0000 | [diff] [blame] | 238 | # convenience targets: |
| 239 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 240 | tarhtml: html-$(RELEASE).tgz |
Fred Drake | b6584ca | 1999-01-08 15:49:45 +0000 | [diff] [blame] | 241 | tarinfo: info-$(RELEASE).tgz |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 242 | tarps: postscript-$(PAPER)-$(RELEASE).tgz |
| 243 | tarpdf: pdf-$(PAPER)-$(RELEASE).tgz |
| 244 | tarlatex: latex-$(RELEASE).tgz |
Fred Drake | bbe33c5 | 1998-05-07 01:39:06 +0000 | [diff] [blame] | 245 | |
Fred Drake | 28e66d1 | 1999-01-29 22:23:25 +0000 | [diff] [blame] | 246 | tarballs: tarpdf tarps tarhtml tarinfo tarlatex |
Guido van Rossum | 84cca44 | 1997-11-25 20:49:09 +0000 | [diff] [blame] | 247 | |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame^] | 248 | ziphtml: html-$(RELEASE).zip |
| 249 | zipps: postscript-$(PAPER)-$(RELEASE).zip |
| 250 | zippdf: pdf-$(PAPER)-$(RELEASE).zip |
| 251 | ziplatex: latex-$(RELEASE).zip |
| 252 | |
| 253 | zips: zippdf zipps ziphtml ziplatex |
| 254 | |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 255 | |
| 256 | # Housekeeping targets |
| 257 | |
Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 258 | # Remove temporary files; all except the following: |
Fred Drake | 6659c30 | 1998-03-03 22:02:19 +0000 | [diff] [blame] | 259 | # - sources: .tex, .bib, .sty, *.cls |
Fred Drake | 04cf4dc | 1998-02-12 22:33:50 +0000 | [diff] [blame] | 260 | # - useful results: .dvi, .pdf, .ps, .texi, .info |
Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 261 | clean: |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 262 | (cd paper-$(PAPER); $(MAKE) clean) |
| 263 | (cd $(HTMLDIR); $(MAKE) clean) |
Fred Drake | e34ab30 | 1998-05-11 21:10:15 +0000 | [diff] [blame] | 264 | (cd $(INFODIR); $(MAKE) clean) |
Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 265 | |
Fred Drake | 03ff6f7 | 1997-08-22 18:18:54 +0000 | [diff] [blame] | 266 | l2hclean: |
Fred Drake | b6584ca | 1999-01-08 15:49:45 +0000 | [diff] [blame] | 267 | (cd $(HTMLDIR); $(MAKE) clean) |
Fred Drake | 03ff6f7 | 1997-08-22 18:18:54 +0000 | [diff] [blame] | 268 | |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 269 | # Remove temporaries as well as final products |
Fred Drake | b6584ca | 1999-01-08 15:49:45 +0000 | [diff] [blame] | 270 | clobber: |
| 271 | (cd $(HTMLDIR); $(MAKE) clobber) |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 272 | rm -f html-$(RELEASE).tgz info-$(RELEASE).tgz |
| 273 | rm -f pdf-$(RELEASE).tgz postscript-$(RELEASE).tgz |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame^] | 274 | rm -f latex-$(RELEASE).tgz html-$(RELEASE).zip |
| 275 | rm -f pdf-$(RELEASE).zip postscript-$(RELEASE).zip |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 276 | (cd paper-$(PAPER); $(MAKE) clobber) |
| 277 | (cd $(HTMLDIR); $(MAKE) clobber) |
Fred Drake | e34ab30 | 1998-05-11 21:10:15 +0000 | [diff] [blame] | 278 | (cd $(INFODIR); $(MAKE) clobber) |
Fred Drake | 5ad78f3 | 1998-02-22 19:47:13 +0000 | [diff] [blame] | 279 | |
| 280 | realclean: clobber |
| 281 | distclean: clobber |