Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 1 | # Makefile for Python documentation |
| 2 | # --------------------------------- |
| 3 | # |
Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 4 | # See also the README file. |
| 5 | # |
Fred Drake | 6532b9b | 1999-04-22 14:16:14 +0000 | [diff] [blame] | 6 | # This is a bit of a mess. The documents are identified by short names: |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 7 | # api -- Python/C API Reference Manual |
Fred Drake | 6532b9b | 1999-04-22 14:16:14 +0000 | [diff] [blame] | 8 | # doc -- Documenting Python |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 9 | # ext -- Extending and Embedding the Python Interpreter |
| 10 | # lib -- Library Reference Manual |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 11 | # mac -- Macintosh Library Modules |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 12 | # ref -- Python Reference Manual |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 13 | # tut -- Python Tutorial |
Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 14 | # inst -- Installing Python Modules |
| 15 | # dist -- Distributing Python Modules |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 16 | # |
Fred Drake | 3a045e8 | 2001-01-22 20:47:26 +0000 | [diff] [blame] | 17 | # The LaTeX sources for each of these documents are in subdirectories |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 18 | # with the three-letter designations above as the directory names. |
Guido van Rossum | 1f17543 | 1996-10-22 20:00:02 +0000 | [diff] [blame] | 19 | # |
Fred Drake | 3a045e8 | 2001-01-22 20:47:26 +0000 | [diff] [blame] | 20 | # The main target creates HTML for each of the documents. You can |
| 21 | # also do "make lib" (etc.) to create the HTML versions of individual |
| 22 | # documents. |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 23 | # |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 24 | # The document classes and styles are in the texinputs/ directory. |
| 25 | # These define a number of macros that are similar in name and intent |
| 26 | # as macros in Texinfo (e.g. \code{...} and \emph{...}), as well as a |
Fred Drake | efc17bd | 1998-07-28 21:05:16 +0000 | [diff] [blame] | 27 | # number of environments for formatting function and data definitions. |
Fred Drake | 3a045e8 | 2001-01-22 20:47:26 +0000 | [diff] [blame] | 28 | # Documentation for the macros is included in "Documenting Python"; see |
| 29 | # http://www.python.org/doc/current/doc/doc.html, or the sources for |
| 30 | # this document in the doc/ directory. |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 31 | # |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 32 | # Everything is processed by LaTeX. See the file `README' for more |
| 33 | # information on the tools needed for processing. |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 34 | # |
| 35 | # There's a problem with generating the index which has been solved by |
| 36 | # a sed command applied to the index file. The shell script fix_hack |
| 37 | # does this (the Makefile takes care of calling it). |
| 38 | # |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 39 | # Additional targets attempt to convert selected LaTeX sources to |
| 40 | # various other formats. These are generally site specific because |
| 41 | # the tools used are all but universal. These targets are: |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 42 | # |
Fred Drake | 3a045e8 | 2001-01-22 20:47:26 +0000 | [diff] [blame] | 43 | # ps -- convert all documents from LaTeX to PostScript |
| 44 | # pdf -- convert all documents from LaTeX to the |
Fred Drake | efc17bd | 1998-07-28 21:05:16 +0000 | [diff] [blame] | 45 | # Portable Document Format |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 46 | # |
Fred Drake | efc17bd | 1998-07-28 21:05:16 +0000 | [diff] [blame] | 47 | # See the README file for more information on these targets. |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 48 | # |
| 49 | # The formatted output is located in subdirectories. For PDF and |
| 50 | # PostScript, look in the paper-$(PAPER)/ directory. For HTML, look in |
Fred Drake | 34116ba | 1998-07-24 15:42:12 +0000 | [diff] [blame] | 51 | # the html/ directory. If you want to fix the GNU info process, look |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 52 | # 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] | 53 | |
Fred Drake | 78430b6 | 2000-08-29 16:30:21 +0000 | [diff] [blame] | 54 | # This Makefile only includes information on how to perform builds; for |
| 55 | # dependency information, see Makefile.deps. |
| 56 | |
Fred Drake | 3a045e8 | 2001-01-22 20:47:26 +0000 | [diff] [blame] | 57 | # Customization -- you *may* have to edit this |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 58 | |
Fred Drake | 3a045e8 | 2001-01-22 20:47:26 +0000 | [diff] [blame] | 59 | # You could set this to a4: |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 60 | PAPER=letter |
| 61 | |
Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 62 | # Ideally, you shouldn't need to edit beyond this point |
Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 63 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 64 | INFODIR= info |
| 65 | TOOLSDIR= tools |
| 66 | |
Fred Drake | 860e256 | 1999-07-12 16:52:50 +0000 | [diff] [blame] | 67 | # This is the *documentation* release, and is used to construct the file |
| 68 | # names of the downloadable tarballs. |
Fred Drake | 9ae0994 | 2001-10-18 18:46:22 +0000 | [diff] [blame] | 69 | RELEASE=2.2b1 |
Fred Drake | 860e256 | 1999-07-12 16:52:50 +0000 | [diff] [blame] | 70 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 71 | PYTHON= python |
| 72 | DVIPS= dvips -N0 -t $(PAPER) |
| 73 | |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 74 | MKDVI= $(PYTHON) ../tools/mkhowto --paper=$(PAPER) --dvi |
| 75 | MKHTML= $(PYTHON) tools/mkhowto --html --about html/stdabout.dat \ |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 76 | --address $(PYTHONDOCS) --up-link ../index.html \ |
| 77 | --up-title "Python Documentation Index" \ |
| 78 | --global-module-index "../modindex.html" |
Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 79 | MKISILOHTML=$(PYTHON) tools/mkhowto --html --about html/stdabout.dat \ |
| 80 | --l2h-init perl/isilo.perl --numeric --split 1 |
| 81 | MKISILO= iSilo386 -U -y -rCR -d0 |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 82 | MKPDF= $(PYTHON) ../tools/mkhowto --paper=$(PAPER) --pdf |
| 83 | MKPS= $(PYTHON) ../tools/mkhowto --paper=$(PAPER) --ps |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 84 | |
| 85 | BUILDINDEX=$(TOOLSDIR)/buildindex.py |
| 86 | |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 87 | PYTHONDOCS="See <i><a href=\"about.html\">About this document...</a></i> for information on suggesting changes." |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 88 | HTMLBASE= file:`pwd` |
| 89 | |
| 90 | # what's what |
| 91 | MANDVIFILES= paper-$(PAPER)/api.dvi paper-$(PAPER)/ext.dvi \ |
| 92 | paper-$(PAPER)/lib.dvi paper-$(PAPER)/mac.dvi \ |
| 93 | paper-$(PAPER)/ref.dvi paper-$(PAPER)/tut.dvi |
| 94 | HOWTODVIFILES= paper-$(PAPER)/doc.dvi paper-$(PAPER)/inst.dvi \ |
| 95 | paper-$(PAPER)/dist.dvi |
| 96 | |
| 97 | MANPDFFILES= paper-$(PAPER)/api.pdf paper-$(PAPER)/ext.pdf \ |
| 98 | paper-$(PAPER)/lib.pdf paper-$(PAPER)/mac.pdf \ |
| 99 | paper-$(PAPER)/ref.pdf paper-$(PAPER)/tut.pdf |
| 100 | HOWTOPDFFILES= paper-$(PAPER)/doc.pdf paper-$(PAPER)/inst.pdf \ |
| 101 | paper-$(PAPER)/dist.pdf |
| 102 | |
| 103 | MANPSFILES= paper-$(PAPER)/api.ps paper-$(PAPER)/ext.ps \ |
| 104 | paper-$(PAPER)/lib.ps paper-$(PAPER)/mac.ps \ |
| 105 | paper-$(PAPER)/ref.ps paper-$(PAPER)/tut.ps |
| 106 | HOWTOPSFILES= paper-$(PAPER)/doc.ps paper-$(PAPER)/inst.ps \ |
| 107 | paper-$(PAPER)/dist.ps |
| 108 | |
| 109 | DVIFILES= $(MANDVIFILES) $(HOWTODVIFILES) |
| 110 | PDFFILES= $(MANPDFFILES) $(HOWTOPDFFILES) |
| 111 | PSFILES= $(MANPSFILES) $(HOWTOPSFILES) |
| 112 | |
| 113 | INDEXFILES=html/api/api.html \ |
| 114 | html/doc/doc.html \ |
| 115 | html/ext/ext.html \ |
| 116 | html/lib/lib.html \ |
| 117 | html/mac/mac.html \ |
| 118 | html/ref/ref.html \ |
| 119 | html/tut/tut.html \ |
| 120 | html/inst/inst.html \ |
| 121 | html/dist/dist.html |
| 122 | |
Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 123 | ALLHTMLFILES=$(INDEXFILES) html/index.html html/modindex.html html/acks.html |
| 124 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 125 | COMMONPERL= perl/manual.perl perl/python.perl perl/l2hinit.perl |
| 126 | |
| 127 | include Makefile.deps |
Fred Drake | 33d05b9 | 1998-01-13 16:33:09 +0000 | [diff] [blame] | 128 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 129 | # These must be declared phony since there |
| 130 | # are directories with matching names: |
Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 131 | .PHONY: api doc ext lib mac ref tut inst dist |
Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 132 | .PHONY: html info isilo |
Fred Drake | 3f8a59f | 1998-07-24 13:58:27 +0000 | [diff] [blame] | 133 | |
Fred Drake | bbe33c5 | 1998-05-07 01:39:06 +0000 | [diff] [blame] | 134 | |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 135 | # Main target |
Fred Drake | 3a045e8 | 2001-01-22 20:47:26 +0000 | [diff] [blame] | 136 | all: html |
Guido van Rossum | eb8d503 | 1996-08-09 21:46:05 +0000 | [diff] [blame] | 137 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 138 | dvi: $(DVIFILES) |
| 139 | pdf: $(PDFFILES) |
| 140 | ps: $(PSFILES) |
Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 141 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 142 | world: ps pdf html distfiles |
Guido van Rossum | 20aca5a | 1991-01-25 13:29:04 +0000 | [diff] [blame] | 143 | |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 144 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 145 | # Rules to build PostScript and PDF formats |
| 146 | .SUFFIXES: .dvi .ps |
| 147 | |
| 148 | .dvi.ps: |
| 149 | $(DVIPS) -o $@ $< |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 150 | |
| 151 | |
| 152 | # Targets for each document: |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 153 | # Python/C API Reference Manual |
| 154 | paper-$(PAPER)/api.dvi: paper-$(PAPER)/api.tex $(APIFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 155 | cd paper-$(PAPER) && $(MKDVI) api.tex |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 156 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 157 | paper-$(PAPER)/api.pdf: paper-$(PAPER)/api.tex $(APIFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 158 | cd paper-$(PAPER) && $(MKPDF) api.tex |
Fred Drake | 1508743 | 1999-03-16 16:11:27 +0000 | [diff] [blame] | 159 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 160 | paper-$(PAPER)/api.tex: api/api.tex api/refcounts.dat tools/anno-api.py |
| 161 | $(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/api.tex |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 162 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 163 | # Distributing Python Modules |
| 164 | paper-$(PAPER)/dist.dvi: $(DISTFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 165 | cd paper-$(PAPER) && $(MKDVI) ../dist/dist.tex |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 166 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 167 | paper-$(PAPER)/dist.pdf: $(DISTFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 168 | cd paper-$(PAPER) && $(MKPDF) ../dist/dist.tex |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 169 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 170 | # Documenting Python |
| 171 | paper-$(PAPER)/doc.dvi: $(DOCFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 172 | cd paper-$(PAPER) && $(MKDVI) ../doc/doc.tex |
Fred Drake | 3f8a59f | 1998-07-24 13:58:27 +0000 | [diff] [blame] | 173 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 174 | paper-$(PAPER)/doc.pdf: $(DOCFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 175 | cd paper-$(PAPER) && $(MKPDF) ../doc/doc.tex |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 176 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 177 | # Extending and Embedding the Python Interpreter |
| 178 | paper-$(PAPER)/ext.dvi: $(EXTFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 179 | cd paper-$(PAPER) && $(MKDVI) ../ext/ext.tex |
Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 180 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 181 | paper-$(PAPER)/ext.pdf: $(EXTFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 182 | cd paper-$(PAPER) && $(MKPDF) ../ext/ext.tex |
Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 183 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 184 | # Installing Python Modules |
| 185 | paper-$(PAPER)/inst.dvi: $(INSTFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 186 | cd paper-$(PAPER) && $(MKDVI) ../inst/inst.tex |
Fred Drake | d69e2c4 | 1998-05-11 18:25:46 +0000 | [diff] [blame] | 187 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 188 | paper-$(PAPER)/inst.pdf: $(INSTFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 189 | cd paper-$(PAPER) && $(MKPDF) ../inst/inst.tex |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 190 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 191 | # Python Library Reference |
| 192 | paper-$(PAPER)/lib.dvi: $(LIBFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 193 | cd paper-$(PAPER) && $(MKDVI) ../lib/lib.tex |
Fred Drake | 1508743 | 1999-03-16 16:11:27 +0000 | [diff] [blame] | 194 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 195 | paper-$(PAPER)/lib.pdf: $(LIBFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 196 | cd paper-$(PAPER) && $(MKPDF) ../lib/lib.tex |
Fred Drake | f295113 | 1998-05-07 19:30:16 +0000 | [diff] [blame] | 197 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 198 | # Macintosh Library Modules |
| 199 | paper-$(PAPER)/mac.dvi: $(MACFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 200 | cd paper-$(PAPER) && $(MKDVI) ../mac/mac.tex |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 201 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 202 | paper-$(PAPER)/mac.pdf: $(MACFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 203 | cd paper-$(PAPER) && $(MKPDF) ../mac/mac.tex |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 204 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 205 | # Python Reference Manual |
| 206 | paper-$(PAPER)/ref.dvi: $(REFFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 207 | cd paper-$(PAPER) && $(MKDVI) ../ref/ref.tex |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 208 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 209 | paper-$(PAPER)/ref.pdf: $(REFFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 210 | cd paper-$(PAPER) && $(MKPDF) ../ref/ref.tex |
Fred Drake | ddae414 | 1998-02-17 15:45:25 +0000 | [diff] [blame] | 211 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 212 | # Python Tutorial |
| 213 | paper-$(PAPER)/tut.dvi: $(TUTFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 214 | cd paper-$(PAPER) && $(MKDVI) ../tut/tut.tex |
Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 215 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 216 | paper-$(PAPER)/tut.pdf: $(TUTFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 217 | cd paper-$(PAPER) && $(MKPDF) ../tut/tut.tex |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 218 | |
| 219 | # The remaining part of the Makefile is concerned with various |
Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 220 | # conversions, as described above. See also the README file. |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 221 | |
Fred Drake | b9838d9 | 1998-05-08 15:43:08 +0000 | [diff] [blame] | 222 | info: |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 223 | cd $(INFODIR) && $(MAKE) |
Fred Drake | 5ad78f3 | 1998-02-22 19:47:13 +0000 | [diff] [blame] | 224 | |
Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 225 | # Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to |
| 226 | # HTML converter. For more info on this program, see |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 227 | # <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] | 228 | |
Guido van Rossum | 9cb6480 | 1997-12-29 20:01:55 +0000 | [diff] [blame] | 229 | # Note that LaTeX2HTML inserts references to an icons directory in |
| 230 | # each page that it generates. I have placed a copy of this directory |
| 231 | # in the distribution to simplify the process of creating a |
| 232 | # self-contained HTML distribution; for this purpose I have also added |
| 233 | # a (trivial) index.html. Change the definition of $ICONSERVER in |
Fred Drake | 9fab3aa | 1998-04-28 19:20:43 +0000 | [diff] [blame] | 234 | # 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] | 235 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 236 | # If you have the standard LaTeX2HTML icons installed, the versions shipped |
| 237 | # with this documentation should be stored in a separate directory and used |
| 238 | # instead. The standard set does *not* include all the icons used in the |
| 239 | # Python documentation. |
Fred Drake | bbe33c5 | 1998-05-07 01:39:06 +0000 | [diff] [blame] | 240 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 241 | $(INDEXFILES): $(COMMONPERL) html/about.dat tools/node2label.pl |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 242 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 243 | html/acks.html: ACKS $(TOOLSDIR)/support.py $(TOOLSDIR)/mkackshtml |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 244 | $(PYTHON) $(TOOLSDIR)/mkackshtml --address $(PYTHONDOCS) \ |
Fred Drake | d27ed85 | 2001-02-22 23:06:21 +0000 | [diff] [blame] | 245 | --output html/acks.html <ACKS |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 246 | |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 247 | |
| 248 | # html/index.html is dependent on $(INDEXFILES) since we want the date |
| 249 | # on the front index to be updated whenever any of the child documents |
| 250 | # are updated and boilerplate.tex uses \today as the date. The index |
| 251 | # files are not used to actually generate content. |
| 252 | |
| 253 | BOILERPLATE=texinputs/boilerplate.tex |
| 254 | html/index.html: $(INDEXFILES) |
| 255 | html/index.html: html/index.html.in $(BOILERPLATE) tools/rewrite.py |
| 256 | $(PYTHON) tools/rewrite.py $(BOILERPLATE) RELEASE=$(RELEASE) \ |
| 257 | <$< >$@ |
| 258 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 259 | html/modindex.html: $(TOOLSDIR)/support.py $(TOOLSDIR)/mkmodindex |
| 260 | html/modindex.html: html/lib/lib.html html/mac/mac.html |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 261 | cd html && \ |
| 262 | $(PYTHON) ../$(TOOLSDIR)/mkmodindex --columns 4 \ |
| 263 | --output modindex.html --address $(PYTHONDOCS) \ |
| 264 | lib/modindex.html mac/modindex.html |
Fred Drake | 7d5f5dd | 1999-03-18 19:08:47 +0000 | [diff] [blame] | 265 | |
Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 266 | html: $(ALLHTMLFILES) |
Guido van Rossum | 970871f | 1993-02-21 20:10:26 +0000 | [diff] [blame] | 267 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 268 | api html/api/api.html: $(APIFILES) |
| 269 | $(MKHTML) --dir html/api api/api.tex |
Fred Drake | a6bb396 | 1998-05-06 19:51:39 +0000 | [diff] [blame] | 270 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 271 | doc html/doc/doc.html: $(DOCFILES) |
| 272 | $(MKHTML) --dir html/doc doc/doc.tex |
Fred Drake | cdbd391 | 1998-05-15 17:02:10 +0000 | [diff] [blame] | 273 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 274 | ext html/ext/ext.html: $(EXTFILES) |
| 275 | $(MKHTML) --dir html/ext ext/ext.tex |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 276 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 277 | lib html/lib/lib.html: $(LIBFILES) |
| 278 | $(MKHTML) --dir html/lib lib/lib.tex |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 279 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 280 | mac html/mac/mac.html: $(MACFILES) |
| 281 | $(MKHTML) --dir html/mac mac/mac.tex |
Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 282 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 283 | ref html/ref/ref.html: $(REFFILES) |
| 284 | $(MKHTML) --dir html/ref ref/ref.tex |
Greg Ward | 0862f80 | 2000-04-28 16:53:36 +0000 | [diff] [blame] | 285 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 286 | tut html/tut/tut.html: $(TUTFILES) |
| 287 | $(MKHTML) --dir html/tut --numeric --split 3 tut/tut.tex |
| 288 | |
| 289 | inst html/inst/inst.html: $(INSTFILES) perl/distutils.perl |
Fred Drake | 8c01158 | 2001-03-01 18:38:56 +0000 | [diff] [blame] | 290 | $(MKHTML) --dir html/inst --split 4 inst/inst.tex |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 291 | |
| 292 | dist html/dist/dist.html: $(DISTFILES) perl/distutils.perl |
Fred Drake | 8c01158 | 2001-03-01 18:38:56 +0000 | [diff] [blame] | 293 | $(MKHTML) --dir html/dist --split 4 dist/dist.tex |
Fred Drake | e7a8c97 | 2000-04-07 16:27:15 +0000 | [diff] [blame] | 294 | |
Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 295 | |
Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 296 | # The iSilo format is used by the iSilo document reader for PalmOS devices. |
| 297 | |
| 298 | ISILOINDEXFILES=isilo/api/api.html \ |
| 299 | isilo/doc/doc.html \ |
| 300 | isilo/ext/ext.html \ |
| 301 | isilo/lib/lib.html \ |
| 302 | isilo/mac/mac.html \ |
| 303 | isilo/ref/ref.html \ |
| 304 | isilo/tut/tut.html \ |
| 305 | isilo/inst/inst.html \ |
| 306 | isilo/dist/dist.html |
| 307 | |
| 308 | $(ISILOINDEXFILES): $(COMMONPERL) html/about.dat perl/isilo.perl |
| 309 | |
| 310 | isilo: isilo/python-api-$(RELEASE).pdb \ |
| 311 | isilo/python-doc-$(RELEASE).pdb \ |
| 312 | isilo/python-ext-$(RELEASE).pdb \ |
| 313 | isilo/python-lib-$(RELEASE).pdb \ |
| 314 | isilo/python-mac-$(RELEASE).pdb \ |
| 315 | isilo/python-ref-$(RELEASE).pdb \ |
| 316 | isilo/python-tut-$(RELEASE).pdb \ |
| 317 | isilo/python-dist-$(RELEASE).pdb \ |
| 318 | isilo/python-inst-$(RELEASE).pdb |
| 319 | |
| 320 | isilo/python-api-$(RELEASE).pdb: isilo/api/api.html |
| 321 | $(MKISILO) "-iPython/C API Reference Manual" \ |
| 322 | isilo/api/api.html $@ |
| 323 | |
| 324 | isilo/python-doc-$(RELEASE).pdb: isilo/doc/doc.html |
| 325 | $(MKISILO) "-iDocumenting Python" \ |
| 326 | isilo/doc/doc.html $@ |
| 327 | |
| 328 | isilo/python-ext-$(RELEASE).pdb: isilo/ext/ext.html |
| 329 | $(MKISILO) "-iExtending & Embedding Python" \ |
| 330 | isilo/ext/ext.html $@ |
| 331 | |
| 332 | isilo/python-lib-$(RELEASE).pdb: isilo/lib/lib.html |
| 333 | $(MKISILO) "-iPython Library Reference" \ |
| 334 | isilo/lib/lib.html $@ |
| 335 | |
| 336 | isilo/python-mac-$(RELEASE).pdb: isilo/mac/mac.html |
| 337 | $(MKISILO) "-iPython/C API Reference Manual" \ |
| 338 | isilo/mac/mac.html $@ |
| 339 | |
| 340 | isilo/python-ref-$(RELEASE).pdb: isilo/ref/ref.html |
| 341 | $(MKISILO) "-iPython Reference Manual" \ |
| 342 | isilo/ref/ref.html $@ |
| 343 | |
| 344 | isilo/python-tut-$(RELEASE).pdb: isilo/tut/tut.html |
| 345 | $(MKISILO) "-iPython Tutorial" \ |
| 346 | isilo/tut/tut.html $@ |
| 347 | |
| 348 | isilo/python-dist-$(RELEASE).pdb: isilo/dist/dist.html |
| 349 | $(MKISILO) "-iDistributing Python Modules" \ |
| 350 | isilo/dist/dist.html $@ |
| 351 | |
| 352 | isilo/python-inst-$(RELEASE).pdb: isilo/inst/inst.html |
| 353 | $(MKISILO) "-iInstalling Python Modules" \ |
| 354 | isilo/inst/inst.html $@ |
| 355 | |
| 356 | isilo/api/api.html: $(APIFILES) |
| 357 | $(MKISILOHTML) --dir isilo/api api/api.tex |
| 358 | |
| 359 | isilo/doc/doc.html: $(DOCFILES) |
| 360 | $(MKISILOHTML) --dir isilo/doc doc/doc.tex |
| 361 | |
| 362 | isilo/ext/ext.html: $(EXTFILES) |
| 363 | $(MKISILOHTML) --dir isilo/ext ext/ext.tex |
| 364 | |
| 365 | isilo/lib/lib.html: $(LIBFILES) |
| 366 | $(MKISILOHTML) --dir isilo/lib lib/lib.tex |
| 367 | |
| 368 | isilo/mac/mac.html: $(MACFILES) |
| 369 | $(MKISILOHTML) --dir isilo/mac mac/mac.tex |
| 370 | |
| 371 | isilo/ref/ref.html: $(REFFILES) |
| 372 | $(MKISILOHTML) --dir isilo/ref ref/ref.tex |
| 373 | |
| 374 | isilo/tut/tut.html: $(TUTFILES) |
| 375 | $(MKISILOHTML) --dir isilo/tut tut/tut.tex |
| 376 | |
| 377 | isilo/inst/inst.html: $(INSTFILES) perl/distutils.perl |
| 378 | $(MKISILOHTML) --dir isilo/inst inst/inst.tex |
| 379 | |
| 380 | isilo/dist/dist.html: $(DISTFILES) perl/distutils.perl |
| 381 | $(MKISILOHTML) --dir isilo/dist dist/dist.tex |
| 382 | |
| 383 | # These are useful if you need to transport the iSilo-ready HTML to |
| 384 | # another machine to perform the conversion: |
| 385 | |
| 386 | isilozip: isilo-html-$(RELEASE).zip |
| 387 | |
| 388 | isilo-html-$(RELEASE).zip: $(ISILOINDEXFILES) |
| 389 | rm -f $@ |
| 390 | cd isilo && \ |
| 391 | zip -q -9 ../$@ */*.css */*.html */*.txt |
| 392 | |
| 393 | |
Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 394 | # webchecker needs an extra flag to process the huge index from the libref |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 395 | WEBCHECKER=$(PYTHON) ../Tools/webchecker/webchecker.py |
| 396 | HTMLBASE= file:`pwd`/html |
| 397 | |
Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 398 | webcheck: $(ALLHTMLFILES) |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 399 | $(WEBCHECKER) $(HTMLBASE)/api/ |
| 400 | $(WEBCHECKER) $(HTMLBASE)/doc/ |
| 401 | $(WEBCHECKER) $(HTMLBASE)/ext/ |
| 402 | $(WEBCHECKER) -m290000 $(HTMLBASE)/lib/ |
| 403 | $(WEBCHECKER) $(HTMLBASE)/mac/ |
| 404 | $(WEBCHECKER) $(HTMLBASE)/ref/ |
| 405 | $(WEBCHECKER) $(HTMLBASE)/tut/ |
| 406 | $(WEBCHECKER) $(HTMLBASE)/dist/ |
| 407 | $(WEBCHECKER) $(HTMLBASE)/inst/ |
| 408 | |
Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 409 | fastwebcheck: $(ALLHTMLFILES) |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 410 | $(WEBCHECKER) -x $(HTMLBASE)/api/ |
| 411 | $(WEBCHECKER) -x $(HTMLBASE)/doc/ |
| 412 | $(WEBCHECKER) -x $(HTMLBASE)/ext/ |
| 413 | $(WEBCHECKER) -x -m290000 $(HTMLBASE)/lib/ |
| 414 | $(WEBCHECKER) -x $(HTMLBASE)/mac/ |
| 415 | $(WEBCHECKER) -x $(HTMLBASE)/ref/ |
| 416 | $(WEBCHECKER) -x $(HTMLBASE)/tut/ |
| 417 | $(WEBCHECKER) -x $(HTMLBASE)/dist/ |
| 418 | $(WEBCHECKER) -x $(HTMLBASE)/inst/ |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 419 | |
| 420 | |
| 421 | # Release packaging targets: |
Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 422 | |
Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 423 | paper-$(PAPER)/README: $(PSFILES) $(TOOLSDIR)/getpagecounts |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 424 | cd paper-$(PAPER) && ../$(TOOLSDIR)/getpagecounts >../$@ |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 425 | |
Fred Drake | b6584ca | 1999-01-08 15:49:45 +0000 | [diff] [blame] | 426 | info-$(RELEASE).tgz: info |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 427 | cd $(INFODIR) && tar cf - README python.dir python-*.info* \ |
Fred Drake | 28e66d1 | 1999-01-29 22:23:25 +0000 | [diff] [blame] | 428 | | gzip -9 >$@ |
Fred Drake | a799835 | 1998-02-19 16:01:04 +0000 | [diff] [blame] | 429 | |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 430 | info-$(RELEASE).tar.bz2: info |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 431 | cd $(INFODIR) && tar cf - README python.dir python-*.info* \ |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 432 | | bzip2 -9 >$@ |
| 433 | |
Fred Drake | e34ab30 | 1998-05-11 21:10:15 +0000 | [diff] [blame] | 434 | latex-$(RELEASE).tgz: |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 435 | $(PYTHON) $(TOOLSDIR)/mksourcepkg --gzip $(RELEASE) |
Fred Drake | e61d7af | 1998-03-05 16:37:34 +0000 | [diff] [blame] | 436 | |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 437 | latex-$(RELEASE).tar.bz2: |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 438 | $(PYTHON) $(TOOLSDIR)/mksourcepkg --bzip2 $(RELEASE) |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 439 | |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 440 | latex-$(RELEASE).zip: |
Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 441 | rm -f $@ |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 442 | $(PYTHON) $(TOOLSDIR)/mksourcepkg --zip $(RELEASE) |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 443 | |
Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 444 | pdf-$(PAPER)-$(RELEASE).tar: $(PDFFILES) |
| 445 | cd paper-$(PAPER) && tar cf ../$@ *.pdf |
Fred Drake | 04cf4dc | 1998-02-12 22:33:50 +0000 | [diff] [blame] | 446 | |
Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 447 | pdf-$(PAPER)-$(RELEASE).tgz: pdf-$(PAPER)-$(RELEASE).tar |
| 448 | gzip -9 <$? >$@ |
| 449 | |
| 450 | pdf-$(PAPER)-$(RELEASE).tar.bz2: pdf-$(PAPER)-$(RELEASE).tar |
| 451 | bzip2 -9 <$? >$@ |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 452 | |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 453 | pdf-$(PAPER)-$(RELEASE).zip: pdf |
Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 454 | rm -f $@ |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 455 | cd paper-$(PAPER) && zip -q -9 ../$@ *.pdf |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 456 | |
Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 457 | postscript-$(PAPER)-$(RELEASE).tar: $(PSFILES) paper-$(PAPER)/README |
| 458 | cd paper-$(PAPER) && tar cf ../$@ *.ps README |
Fred Drake | 04cf4dc | 1998-02-12 22:33:50 +0000 | [diff] [blame] | 459 | |
Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 460 | postscript-$(PAPER)-$(RELEASE).tar.bz2: postscript-$(PAPER)-$(RELEASE).tar |
| 461 | bzip2 -9 <$< >$@ |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 462 | |
Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 463 | postscript-$(PAPER)-$(RELEASE).tgz: postscript-$(PAPER)-$(RELEASE).tar |
| 464 | gzip -9 <$< >$@ |
| 465 | |
| 466 | postscript-$(PAPER)-$(RELEASE).zip: $(PSFILES) paper-$(PAPER)/README |
Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 467 | rm -f $@ |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 468 | cd paper-$(PAPER) && zip -q -9 ../$@ *.ps README |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 469 | |
Fred Drake | 2872e8a | 2001-09-06 19:35:02 +0000 | [diff] [blame] | 470 | html-$(RELEASE).tar: $(ALLHTMLFILES) |
Fred Drake | 9ae0994 | 2001-10-18 18:46:22 +0000 | [diff] [blame] | 471 | cd html && \ |
Fred Drake | 8f65aef | 2001-07-17 23:35:46 +0000 | [diff] [blame] | 472 | tar cf ../html-$(RELEASE).tar *.html */*.css */*.html \ |
| 473 | */*.gif */*.txt |
Fred Drake | 33d05b9 | 1998-01-13 16:33:09 +0000 | [diff] [blame] | 474 | |
Fred Drake | 8f65aef | 2001-07-17 23:35:46 +0000 | [diff] [blame] | 475 | html-$(RELEASE).tgz: html-$(RELEASE).tar |
Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 476 | gzip -9 <$? >$@ |
Fred Drake | 8f65aef | 2001-07-17 23:35:46 +0000 | [diff] [blame] | 477 | |
| 478 | html-$(RELEASE).tar.bz2: html-$(RELEASE).tar |
Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 479 | bzip2 -9 <$? >$@ |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 480 | |
Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 481 | html-$(RELEASE).zip: $(ALLHTMLFILES) |
Fred Drake | 02ba621 | 2000-04-04 20:58:25 +0000 | [diff] [blame] | 482 | rm -f $@ |
Fred Drake | 9ae0994 | 2001-10-18 18:46:22 +0000 | [diff] [blame] | 483 | cd html && \ |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 484 | zip -q -9 ../$@ *.html */*.css */*.html */*.gif */*.txt |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 485 | |
Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 486 | isilo-$(RELEASE).zip: isilo |
| 487 | cd isilo && zip -q -9 ../$@ python-*-$(RELEASE).pdb |
| 488 | |
| 489 | |
Fred Drake | a799835 | 1998-02-19 16:01:04 +0000 | [diff] [blame] | 490 | # convenience targets: |
| 491 | |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 492 | tarhtml: html-$(RELEASE).tgz |
Fred Drake | b6584ca | 1999-01-08 15:49:45 +0000 | [diff] [blame] | 493 | tarinfo: info-$(RELEASE).tgz |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 494 | tarps: postscript-$(PAPER)-$(RELEASE).tgz |
| 495 | tarpdf: pdf-$(PAPER)-$(RELEASE).tgz |
| 496 | tarlatex: latex-$(RELEASE).tgz |
Fred Drake | bbe33c5 | 1998-05-07 01:39:06 +0000 | [diff] [blame] | 497 | |
Fred Drake | 83c0983 | 1999-08-02 20:20:14 +0000 | [diff] [blame] | 498 | tarballs: tarpdf tarps tarhtml |
Guido van Rossum | 84cca44 | 1997-11-25 20:49:09 +0000 | [diff] [blame] | 499 | |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 500 | ziphtml: html-$(RELEASE).zip |
| 501 | zipps: postscript-$(PAPER)-$(RELEASE).zip |
| 502 | zippdf: pdf-$(PAPER)-$(RELEASE).zip |
| 503 | ziplatex: latex-$(RELEASE).zip |
Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 504 | zipisilo: isilo-$(RELEASE).zip |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 505 | |
Fred Drake | b906d2e | 2000-07-01 02:37:37 +0000 | [diff] [blame] | 506 | zips: zippdf zipps ziphtml |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 507 | |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 508 | bziphtml: html-$(RELEASE).tar.bz2 |
| 509 | bzipinfo: info-$(RELEASE).tar.bz2 |
| 510 | bzipps: postscript-$(PAPER)-$(RELEASE).tar.bz2 |
| 511 | bzippdf: pdf-$(PAPER)-$(RELEASE).tar.bz2 |
| 512 | bziplatex: latex-$(RELEASE).tar.bz2 |
| 513 | |
Fred Drake | 83c0983 | 1999-08-02 20:20:14 +0000 | [diff] [blame] | 514 | bzips: bzippdf bzipps bziphtml |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 515 | |
Fred Drake | fc4ee0a | 2001-04-13 18:00:23 +0000 | [diff] [blame] | 516 | disthtml: tarhtml bziphtml ziphtml |
| 517 | distinfo: tarinfo bzipinfo |
| 518 | distps: tarps bzipps zipps |
| 519 | distpdf: tarpdf bzippdf zippdf |
| 520 | distlatex: tarlatex bziplatex ziplatex |
| 521 | |
Fred Drake | 5afb5e5 | 2001-07-18 21:17:29 +0000 | [diff] [blame] | 522 | paperdist: distpdf distps |
| 523 | edist: disthtml |
| 524 | |
| 525 | distfiles: paperdist edist |
Fred Drake | 8863460 | 2001-01-25 17:32:51 +0000 | [diff] [blame] | 526 | $(TOOLSDIR)/mksourcepkg --all $(RELEASE) |
Fred Drake | 4ef3ea0 | 1999-07-27 16:30:59 +0000 | [diff] [blame] | 527 | |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 528 | |
| 529 | # Housekeeping targets |
| 530 | |
Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 531 | # Remove temporary files; all except the following: |
Fred Drake | 6659c30 | 1998-03-03 22:02:19 +0000 | [diff] [blame] | 532 | # - sources: .tex, .bib, .sty, *.cls |
Fred Drake | 04cf4dc | 1998-02-12 22:33:50 +0000 | [diff] [blame] | 533 | # - useful results: .dvi, .pdf, .ps, .texi, .info |
Fred Drake | e4837a1 | 1998-03-06 21:29:34 +0000 | [diff] [blame] | 534 | clean: |
Fred Drake | 8f65aef | 2001-07-17 23:35:46 +0000 | [diff] [blame] | 535 | rm -f html-$(RELEASE).tar |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 536 | cd $(INFODIR) && $(MAKE) clean |
Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 537 | |
Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 538 | # Remove temporaries as well as final products |
Fred Drake | b6584ca | 1999-01-08 15:49:45 +0000 | [diff] [blame] | 539 | clobber: |
Fred Drake | 8f65aef | 2001-07-17 23:35:46 +0000 | [diff] [blame] | 540 | rm -f html-$(RELEASE).tar |
Fred Drake | eb7fe4f | 1998-08-12 17:08:37 +0000 | [diff] [blame] | 541 | rm -f html-$(RELEASE).tgz info-$(RELEASE).tgz |
| 542 | rm -f pdf-$(RELEASE).tgz postscript-$(RELEASE).tgz |
Fred Drake | 7dcc69a | 1999-07-23 16:11:36 +0000 | [diff] [blame] | 543 | rm -f latex-$(RELEASE).tgz html-$(RELEASE).zip |
| 544 | rm -f pdf-$(RELEASE).zip postscript-$(RELEASE).zip |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 545 | rm -f $(DVIFILES) $(PSFILES) $(PDFFILES) |
Fred Drake | 1385a57 | 2001-07-17 16:53:19 +0000 | [diff] [blame] | 546 | cd $(INFODIR) && $(MAKE) clobber |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 547 | rm -rf html/index.html html/modindex.html html/acks.html |
| 548 | rm -rf html/api/ html/doc/ html/ext/ html/lib/ html/mac/ |
| 549 | rm -rf html/ref/ html/tut/ html/inst/ html/dist/ |
Fred Drake | 0c77cf1 | 2001-10-19 21:12:57 +0000 | [diff] [blame] | 550 | rm -rf isilo/api/ isilo/doc/ isilo/ext/ isilo/lib/ isilo/mac/ |
| 551 | rm -rf isilo/ref/ isilo/tut/ isilo/inst/ isilo/dist/ |
| 552 | rm -f isilo/python-*-$(RELEASE).pdb isilo-$(RELEASE).zip |
Fred Drake | 5ad78f3 | 1998-02-22 19:47:13 +0000 | [diff] [blame] | 553 | |
Fred Drake | f6bfe8e | 2001-02-19 19:19:26 +0000 | [diff] [blame] | 554 | realclean distclean: clobber |