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