| 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: | 
|  | 7 | #   tut -- Tutorial (file tut.tex) | 
|  | 8 | #   lib -- Library Reference (file lib.tex, inputs lib*.tex) | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 9 | #   ext -- Extending and Embedding (file ext.tex) | 
| Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 10 | #   api -- Python-C API Reference | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 11 | # | 
| Guido van Rossum | 1f17543 | 1996-10-22 20:00:02 +0000 | [diff] [blame] | 12 | # The Reference Manual is now maintained as a FrameMaker document. | 
|  | 13 | # See the subdirectory ref; PostScript is included as ref/ref.ps. | 
|  | 14 | # (In the future, the Tutorial will also be converted to FrameMaker; | 
|  | 15 | # the other documents will be maintained in a text format such | 
|  | 16 | # as LaTeX or perhaps TIM.) | 
|  | 17 | # | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 18 | # The main target "make all" creates DVI and PostScript for these | 
|  | 19 | # four.  You can also do "make lib" (etc.) to process individual | 
|  | 20 | # documents. | 
|  | 21 | # | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 22 | # There's one local style file: myformat.sty.  This defines a number | 
|  | 23 | # of macros that are similar in name and intent as macros in Texinfo | 
|  | 24 | # (e.g. \code{...} and \emph{...}), as well as a number of | 
|  | 25 | # environments for formatting function and data definitions, also in | 
|  | 26 | # the style of Texinfo. | 
|  | 27 | # | 
|  | 28 | # Everything is processed by LaTeX.  The following tools are used: | 
|  | 29 | #   latex | 
|  | 30 | #   makeindex | 
|  | 31 | #   dvips | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 32 | # | 
|  | 33 | # There's a problem with generating the index which has been solved by | 
|  | 34 | # a sed command applied to the index file.  The shell script fix_hack | 
|  | 35 | # does this (the Makefile takes care of calling it). | 
|  | 36 | # | 
|  | 37 | # To preview the dvi files produced by LaTeX it would be useful to | 
|  | 38 | # have xdvi as well. | 
|  | 39 | # | 
|  | 40 | # Additional targets attempt to convert selected LaTeX sources to | 
|  | 41 | # various other formats.  These are generally site specific because | 
|  | 42 | # the tools used are all but universal.  These targets are: | 
| Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 43 | #   l2h -- convert tut, lib, ext, api from LaTeX to HTML | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 44 | # See the README file for more info on these targets. | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 45 |  | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 46 | # Customizations -- you *may* have to edit these | 
| 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 | # Where are the various programs? | 
|  | 49 | LATEX=		latex | 
|  | 50 | BIBTEX=		bibtex | 
| Guido van Rossum | 5344d4f | 1997-10-05 18:51:02 +0000 | [diff] [blame] | 51 | DVIPS=		dvips -f -N0 | 
| Fred Drake | 126d840 | 1998-02-04 19:54:40 +0000 | [diff] [blame] | 52 | DISTILL=	distill | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 53 | MAKEINDEX=	makeindex | 
| Fred Drake | f93f101 | 1996-10-29 16:07:46 +0000 | [diff] [blame] | 54 | L2H=		latex2html | 
| Guido van Rossum | 0f280b6 | 1997-12-01 18:50:09 +0000 | [diff] [blame] | 55 | L2HARGS=	-address $$LOGNAME@`domainname` | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 56 |  | 
|  | 57 | # Install destination -- not used now but might be useful some time... | 
|  | 58 | DESTDIR=	/usr/local | 
|  | 59 | LIBDESTDIR=	$DESTDIR/lib | 
|  | 60 | LIBDEST=	$LIBDESTDIR/python | 
|  | 61 | DOCDESTDIR=	$LIBDEST/doc | 
|  | 62 |  | 
| Fred Drake | 05dd3c0 | 1997-12-29 17:17:54 +0000 | [diff] [blame] | 63 | # This is only used for .info generation: | 
|  | 64 | EMACS=		emacs | 
|  | 65 | PYTHON=		python | 
|  | 66 | MAKEINFO=	makeinfo | 
|  | 67 | PARTPARSE=	$(PYTHON) ./partparse.pyc | 
|  | 68 |  | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 69 | # Ideally, you shouldn't need to edit beyond this point | 
| Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 70 |  | 
| Fred Drake | 33d05b9 | 1998-01-13 16:33:09 +0000 | [diff] [blame] | 71 | VERSION=1.5 | 
|  | 72 |  | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 73 | # Main target | 
| Guido van Rossum | eb8d503 | 1996-08-09 21:46:05 +0000 | [diff] [blame] | 74 | all:	all-ps | 
|  | 75 |  | 
| Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 76 | all-dvi: tut.dvi lib.dvi ext.dvi api.dvi | 
| Fred Drake | 95810e4 | 1998-01-13 17:18:57 +0000 | [diff] [blame] | 77 | all-ps:	 tut.ps lib.ps ext.ps api.ps | 
| Fred Drake | 126d840 | 1998-02-04 19:54:40 +0000 | [diff] [blame] | 78 | all-pdf: tut.pdf lib.pdf ext.pdf api.pdf | 
| Guido van Rossum | 20aca5a | 1991-01-25 13:29:04 +0000 | [diff] [blame] | 79 |  | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 80 | # Individual document fake targets | 
| Guido van Rossum | eb8d503 | 1996-08-09 21:46:05 +0000 | [diff] [blame] | 81 | tut:	tut.ps | 
|  | 82 | lib:	lib.ps | 
| Guido van Rossum | eb8d503 | 1996-08-09 21:46:05 +0000 | [diff] [blame] | 83 | ext:	ext.ps | 
| Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 84 | api:	api.ps | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 85 |  | 
| Fred Drake | 126d840 | 1998-02-04 19:54:40 +0000 | [diff] [blame] | 86 | # Rules to build PostScript and PDF formats | 
|  | 87 | .SUFFIXES: .dvi .ps .pdf | 
|  | 88 |  | 
|  | 89 | .dvi.ps: | 
|  | 90 | $(DVIPS) $< >$@ | 
|  | 91 |  | 
|  | 92 | .ps.pdf: | 
|  | 93 | $(DISTILL) $< | 
|  | 94 |  | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 95 | # Dependencies | 
| Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 96 | tut.dvi lib.dvi ext.dvi api.dvi: myformat.sty fix_hack | 
| Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 97 |  | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 98 | # Tutorial document | 
| Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 99 | tut.dvi: tut.tex | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 100 | $(LATEX) tut | 
|  | 101 | $(LATEX) tut | 
| Guido van Rossum | eb8d503 | 1996-08-09 21:46:05 +0000 | [diff] [blame] | 102 |  | 
| Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 103 | # LaTeX source files for the Python Library Reference | 
|  | 104 | LIBFILES = lib.tex \ | 
| Guido van Rossum | 40006cf | 1996-08-19 22:58:03 +0000 | [diff] [blame] | 105 | libintro.tex libobjs.tex libtypes.tex libexcs.tex libfuncs.tex \ | 
|  | 106 | libpython.tex libsys.tex libtypes2.tex libtraceback.tex libpickle.tex \ | 
|  | 107 | libshelve.tex libcopy.tex libmarshal.tex libimp.tex libparser.tex \ | 
|  | 108 | libbltin.tex libmain.tex libstrings.tex libstring.tex libregex.tex \ | 
|  | 109 | libregsub.tex libstruct.tex libmisc.tex libmath.tex librand.tex \ | 
|  | 110 | libwhrandom.tex libarray.tex liballos.tex libos.tex libtime.tex \ | 
|  | 111 | libgetopt.tex libtempfile.tex liberrno.tex libsomeos.tex libsignal.tex \ | 
|  | 112 | libsocket.tex libselect.tex libthread.tex libunix.tex libposix.tex \ | 
|  | 113 | libppath.tex libpwd.tex libgrp.tex libcrypt.tex libdbm.tex libgdbm.tex \ | 
|  | 114 | libtermios.tex libfcntl.tex libposixfile.tex libsyslog.tex libpdb.tex \ | 
|  | 115 | libprofile.tex libwww.tex libcgi.tex liburllib.tex libhttplib.tex \ | 
|  | 116 | libftplib.tex libgopherlib.tex libnntplib.tex liburlparse.tex \ | 
|  | 117 | libhtmllib.tex libsgmllib.tex librfc822.tex libmimetools.tex \ | 
|  | 118 | libbinascii.tex libmm.tex libaudioop.tex libimageop.tex libaifc.tex \ | 
|  | 119 | libjpeg.tex librgbimg.tex libcrypto.tex libmd5.tex libmpz.tex \ | 
|  | 120 | librotor.tex libmac.tex libctb.tex libmacconsole.tex libmacdnr.tex \ | 
|  | 121 | libmacfs.tex libmacos.tex libmacostools.tex libmactcp.tex \ | 
|  | 122 | libmacspeech.tex libmacui.tex libstdwin.tex libsgi.tex libal.tex \ | 
|  | 123 | libcd.tex libfl.tex libfm.tex libgl.tex libimgfile.tex libsun.tex \ | 
| Guido van Rossum | a80c398 | 1996-10-22 01:12:13 +0000 | [diff] [blame] | 124 | libxdrlib.tex libimghdr.tex \ | 
|  | 125 | librestricted.tex librexec.tex libbastion.tex \ | 
| Guido van Rossum | 3dd68d3 | 1996-12-31 02:24:54 +0000 | [diff] [blame] | 126 | libformatter.tex liboperator.tex libsoundex.tex libresource.tex \ | 
| Guido van Rossum | 7f3b042 | 1997-03-27 14:56:18 +0000 | [diff] [blame] | 127 | libstat.tex libstrio.tex libundoc.tex libmailcap.tex libglob.tex \ | 
| Guido van Rossum | e76b7a8 | 1997-04-27 21:25:52 +0000 | [diff] [blame] | 128 | libuser.tex libanydbm.tex librandom.tex libsite.tex libwhichdb.tex \ | 
| Guido van Rossum | 41c302f | 1997-06-02 17:36:12 +0000 | [diff] [blame] | 129 | libbase64.tex libfnmatch.tex libquopri.tex libzlib.tex libsocksvr.tex \ | 
| Fred Drake | 18600a4 | 1997-07-18 20:43:27 +0000 | [diff] [blame] | 130 | libmailbox.tex libcommands.tex libcmath.tex libni.tex libgzip.tex \ | 
| Guido van Rossum | 36764b8 | 1997-08-30 20:02:25 +0000 | [diff] [blame] | 131 | libpprint.tex libcode.tex libmimify.tex libre.tex libmacic.tex \ | 
| Guido van Rossum | 9cb6480 | 1997-12-29 20:01:55 +0000 | [diff] [blame] | 132 | libuserdict.tex libdis.tex libxmllib.tex libqueue.tex \ | 
| Fred Drake | 251fed3 | 1998-01-21 04:59:44 +0000 | [diff] [blame] | 133 | liblocale.tex libbasehttp.tex libcopyreg.tex | 
| Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 134 |  | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 135 | # Library document | 
| Fred Drake | 4be0071 | 1998-02-09 22:18:42 +0000 | [diff] [blame^] | 136 | lib.dvi: modindex.py indfix.py $(LIBFILES) | 
| Guido van Rossum | b83241c | 1992-03-06 10:56:42 +0000 | [diff] [blame] | 137 | touch lib.ind | 
| Fred Drake | 34252f9 | 1998-01-02 03:01:47 +0000 | [diff] [blame] | 138 | touch modules.ind | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 139 | $(LATEX) lib | 
| Fred Drake | 34252f9 | 1998-01-02 03:01:47 +0000 | [diff] [blame] | 140 | ./modindex.py modules.idx | 
| Guido van Rossum | 95cd2ef | 1992-12-08 14:37:55 +0000 | [diff] [blame] | 141 | ./fix_hack lib.idx | 
| Fred Drake | b4d4e25 | 1996-11-11 21:03:01 +0000 | [diff] [blame] | 142 | $(MAKEINDEX) lib.idx | 
| Fred Drake | 4be0071 | 1998-02-09 22:18:42 +0000 | [diff] [blame^] | 143 | ./indfix.py lib.ind | 
| Fred Drake | 34252f9 | 1998-01-02 03:01:47 +0000 | [diff] [blame] | 144 | ./modindex.py modules.idx | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 145 | $(LATEX) lib | 
| Guido van Rossum | eb8d503 | 1996-08-09 21:46:05 +0000 | [diff] [blame] | 146 |  | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 147 | # Extensions document | 
| Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 148 | ext.dvi: ext.tex | 
| Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 149 | touch ext.ind | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 150 | $(LATEX) ext | 
| Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 151 | ./fix_hack ext.idx | 
| Fred Drake | b4d4e25 | 1996-11-11 21:03:01 +0000 | [diff] [blame] | 152 | $(MAKEINDEX) ext.idx | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 153 | $(LATEX) ext | 
| Guido van Rossum | eb8d503 | 1996-08-09 21:46:05 +0000 | [diff] [blame] | 154 |  | 
| Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 155 | # Python-C API document | 
|  | 156 | api.dvi: api.tex | 
|  | 157 | touch api.ind | 
|  | 158 | $(LATEX) api | 
|  | 159 | ./fix_hack api.idx | 
|  | 160 | $(MAKEINDEX) api.idx | 
|  | 161 | $(LATEX) api | 
| Guido van Rossum | eb8d503 | 1996-08-09 21:46:05 +0000 | [diff] [blame] | 162 |  | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 163 |  | 
|  | 164 | # The remaining part of the Makefile is concerned with various | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 165 | # conversions, as described above.  See also the README file. | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 166 |  | 
| Fred Drake | 05dd3c0 | 1997-12-29 17:17:54 +0000 | [diff] [blame] | 167 | .SUFFIXES: .py .pyc | 
|  | 168 |  | 
|  | 169 | .py.pyc: | 
|  | 170 | $(PYTHON) -c "import $*" | 
|  | 171 |  | 
|  | 172 | .PRECIOUS:	lib.texi | 
|  | 173 |  | 
| Fred Drake | 3d913ad | 1997-12-29 21:31:23 +0000 | [diff] [blame] | 174 | # The sed script in this target fixes a really nasty little condition in | 
|  | 175 | # libcgi.tex where \e has to be used in a group to get the right behavior, | 
|  | 176 | # and makeinfo can't handle a group with a leading @command.  But at least | 
|  | 177 | # the info file gets generated. | 
|  | 178 |  | 
| Fred Drake | 05dd3c0 | 1997-12-29 17:17:54 +0000 | [diff] [blame] | 179 | lib1.texi: lib*.tex texipre.dat texipost.dat partparse.pyc | 
|  | 180 | $(PARTPARSE) -o lib1.texi `./whichlibs` | 
| Fred Drake | 3d913ad | 1997-12-29 21:31:23 +0000 | [diff] [blame] | 181 | sed 's/"{\\}n{\\}n/"\\n\\n/' lib1.texi >lib2.texi | 
|  | 182 | mv lib2.texi lib1.texi | 
| Fred Drake | 05dd3c0 | 1997-12-29 17:17:54 +0000 | [diff] [blame] | 183 |  | 
|  | 184 | lib.texi: lib1.texi fix.el | 
|  | 185 | $(EMACS) -batch -l fix.el -f save-buffer -kill | 
|  | 186 | cp lib1.texi lib.texi | 
|  | 187 |  | 
|  | 188 | python-lib.info: lib.texi | 
|  | 189 | -$(MAKEINFO) --footnote-style end --fill-column 72 \ | 
|  | 190 | --paragraph-indent 0 lib.texi | 
|  | 191 |  | 
| Fred Drake | 13704a8 | 1997-12-29 22:04:44 +0000 | [diff] [blame] | 192 | # this is needed to prevent a second set of info files from being generated, | 
|  | 193 | # at least when using GNU make | 
|  | 194 | .PHONY: lib.info | 
|  | 195 |  | 
| Fred Drake | 05dd3c0 | 1997-12-29 17:17:54 +0000 | [diff] [blame] | 196 | lib.info: python-lib.info | 
|  | 197 |  | 
| Guido van Rossum | 73827c6 | 1995-03-20 13:00:32 +0000 | [diff] [blame] | 198 | # Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to | 
|  | 199 | # HTML converter.  For more info on this program, see | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 200 | # <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] | 201 |  | 
| Guido van Rossum | 9cb6480 | 1997-12-29 20:01:55 +0000 | [diff] [blame] | 202 | # Note that LaTeX2HTML inserts references to an icons directory in | 
|  | 203 | # each page that it generates.  I have placed a copy of this directory | 
|  | 204 | # in the distribution to simplify the process of creating a | 
|  | 205 | # self-contained HTML distribution; for this purpose I have also added | 
|  | 206 | # a (trivial) index.html.  Change the definition of $ICONSERVER in | 
|  | 207 | # .latex2html-init to use a different location for the icons directory. | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 208 |  | 
| Guido van Rossum | 9cb6480 | 1997-12-29 20:01:55 +0000 | [diff] [blame] | 209 | # The sed hack rips out a superfluous comma which I haven't found the | 
|  | 210 | # source of.  The prominent location makes it worth the extra step; | 
|  | 211 | # this affects the title pages! | 
| Fred Drake | fc8f6f3 | 1996-12-06 18:45:30 +0000 | [diff] [blame] | 212 |  | 
| Fred Drake | bc0cd37 | 1997-07-30 15:59:25 +0000 | [diff] [blame] | 213 | l2h: l2htut l2hext l2hlib l2hapi | 
| Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 214 |  | 
| Fred Drake | b4d4e25 | 1996-11-11 21:03:01 +0000 | [diff] [blame] | 215 | l2htut: tut.dvi myformat.perl | 
| Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 216 | $(L2H) $(L2HARGS) tut.tex | 
| Fred Drake | fc8f6f3 | 1996-12-06 18:45:30 +0000 | [diff] [blame] | 217 | sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \ | 
|  | 218 | <tut/tut.html >tut/xxx | 
|  | 219 | mv tut/xxx tut/tut.html | 
| Fred Drake | 03ff6f7 | 1997-08-22 18:18:54 +0000 | [diff] [blame] | 220 | ln -s tut.html tut/index.html || true | 
| Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 221 |  | 
| Fred Drake | b4d4e25 | 1996-11-11 21:03:01 +0000 | [diff] [blame] | 222 | l2hext: ext.dvi myformat.perl | 
| Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 223 | $(L2H) $(L2HARGS) ext.tex | 
| Fred Drake | fc8f6f3 | 1996-12-06 18:45:30 +0000 | [diff] [blame] | 224 | sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \ | 
|  | 225 | <ext/ext.html >ext/xxx | 
|  | 226 | mv ext/xxx ext/ext.html | 
| Fred Drake | 03ff6f7 | 1997-08-22 18:18:54 +0000 | [diff] [blame] | 227 | ln -s ext.html ext/index.html || true | 
| Guido van Rossum | 970871f | 1993-02-21 20:10:26 +0000 | [diff] [blame] | 228 |  | 
| Fred Drake | b4d4e25 | 1996-11-11 21:03:01 +0000 | [diff] [blame] | 229 | l2hlib: lib.dvi myformat.perl | 
| Fred Drake | 03ff6f7 | 1997-08-22 18:18:54 +0000 | [diff] [blame] | 230 | ./fix_libaux.sed <lib.aux >lib1.aux | 
|  | 231 | mv lib1.aux lib.aux | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 232 | $(L2H) $(L2HARGS) lib.tex | 
| Fred Drake | f1e6707 | 1996-12-06 15:11:34 +0000 | [diff] [blame] | 233 | sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \ | 
|  | 234 | <lib/lib.html >lib/xxx | 
|  | 235 | mv lib/xxx lib/lib.html | 
| Fred Drake | 03ff6f7 | 1997-08-22 18:18:54 +0000 | [diff] [blame] | 236 | ln -s lib.html lib/index.html || true | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 237 |  | 
| Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 238 | l2hapi: api.dvi myformat.perl | 
|  | 239 | $(L2H) $(L2HARGS) api.tex | 
| Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 240 | sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \ | 
|  | 241 | <api/api.html >api/xxx | 
| Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 242 | mv api/xxx api/api.html | 
| Fred Drake | 03ff6f7 | 1997-08-22 18:18:54 +0000 | [diff] [blame] | 243 | ln -s api.html api/index.html || true | 
| Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 244 |  | 
| Guido van Rossum | 330c660 | 1997-11-26 15:31:32 +0000 | [diff] [blame] | 245 | tarhtml: | 
| Guido van Rossum | 84cca44 | 1997-11-25 20:49:09 +0000 | [diff] [blame] | 246 | @echo "Did you remember to run makeMIFs.py in the ref subdirectory...?" | 
| Fred Drake | 33d05b9 | 1998-01-13 16:33:09 +0000 | [diff] [blame] | 247 | tar cf - index.html ???/???.css ???/*.html lib/*.gif icons/*.* \ | 
| Fred Drake | 95810e4 | 1998-01-13 17:18:57 +0000 | [diff] [blame] | 248 | | gzip -9 >html-$(VERSION).tar.gz | 
| Fred Drake | 33d05b9 | 1998-01-13 16:33:09 +0000 | [diff] [blame] | 249 |  | 
|  | 250 | tarps:	all-ps | 
|  | 251 | cp ref/ref.ps . | 
| Fred Drake | 95810e4 | 1998-01-13 17:18:57 +0000 | [diff] [blame] | 252 | tar cf - ???.ps | gzip -9 >postscript-$(VERSION).tar.gz | 
| Fred Drake | 33d05b9 | 1998-01-13 16:33:09 +0000 | [diff] [blame] | 253 | rm ref.ps | 
| Fred Drake | 33d05b9 | 1998-01-13 16:33:09 +0000 | [diff] [blame] | 254 |  | 
| Fred Drake | 95810e4 | 1998-01-13 17:18:57 +0000 | [diff] [blame] | 255 | tarballs:  tarps tarhtml | 
| Guido van Rossum | 84cca44 | 1997-11-25 20:49:09 +0000 | [diff] [blame] | 256 |  | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 257 |  | 
|  | 258 | # Housekeeping targets | 
|  | 259 |  | 
| Guido van Rossum | 9231c8f | 1997-05-15 21:43:21 +0000 | [diff] [blame] | 260 | # Remove temporary files; all except the following: | 
|  | 261 | # - sources: .tex, .bib, .sty | 
|  | 262 | # - useful results: .dvi, .ps, .texi, .info | 
| Fred Drake | 03ff6f7 | 1997-08-22 18:18:54 +0000 | [diff] [blame] | 263 | clean:	l2hclean | 
| Guido van Rossum | 4ac605e | 1992-12-17 15:31:02 +0000 | [diff] [blame] | 264 | rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.pyc | 
| Fred Drake | 1c8b9e4 | 1997-12-30 04:57:58 +0000 | [diff] [blame] | 265 | rm -f *.texi *.info* | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 266 | rm -f *.bak *.orig | 
| Fred Drake | 95810e4 | 1998-01-13 17:18:57 +0000 | [diff] [blame] | 267 | rm -f html-$(VERSION).tar.gz postscript-$(VERSION).tar.gz | 
| Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 268 |  | 
| Fred Drake | 03ff6f7 | 1997-08-22 18:18:54 +0000 | [diff] [blame] | 269 | l2hclean: | 
| Fred Drake | 5de31fc | 1997-08-22 18:20:33 +0000 | [diff] [blame] | 270 | rm -rf api ext lib tut | 
| Fred Drake | 03ff6f7 | 1997-08-22 18:18:54 +0000 | [diff] [blame] | 271 |  | 
| Guido van Rossum | e83e380 | 1995-03-17 16:01:35 +0000 | [diff] [blame] | 272 | # Remove temporaries as well as final products | 
| Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 273 | clobber: clean | 
| Fred Drake | 6b7fc6f | 1998-02-04 20:33:13 +0000 | [diff] [blame] | 274 | rm -f *.dvi *.pdf *.ps *.texi *.info *.info-[0-9]* |