Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 1 | DESTDIR=/usr/local |
| 2 | LIBDESTDIR=$DESTDIR/lib |
| 3 | LIBDEST=$LIBDESTDIR/python |
| 4 | DOCDESTDIR=$LIBDEST/doc |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 5 | DVIPS= dvips -f |
Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 6 | |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 7 | all: tut.dvi lib.dvi ref.dvi ext.dvi |
Guido van Rossum | 20aca5a | 1991-01-25 13:29:04 +0000 | [diff] [blame] | 8 | |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 9 | ext: ext.dvi |
| 10 | tut: tut.dvi |
| 11 | qua: qua.dvi |
| 12 | ref: ref.dvi |
| 13 | lib: lib.dvi |
| 14 | |
| 15 | tut.dvi lib.dvi ref.dvi ext.dvi: myformat.sty fix_hack |
| 16 | |
| 17 | tut.dvi: tut.tex |
Guido van Rossum | b83241c | 1992-03-06 10:56:42 +0000 | [diff] [blame] | 18 | latex tut |
| 19 | latex tut |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 20 | $(DVIPS) tut >tut.ps |
Guido van Rossum | b3fa13c | 1991-01-22 11:47:14 +0000 | [diff] [blame] | 21 | |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 22 | ref.dvi: ref.tex ref1.tex ref2.tex ref3.tex ref4.tex ref5.tex ref6.tex \ |
| 23 | ref7.tex ref8.tex |
Guido van Rossum | b83241c | 1992-03-06 10:56:42 +0000 | [diff] [blame] | 24 | touch ref.ind |
| 25 | latex ref |
Guido van Rossum | 4ac605e | 1992-12-17 15:31:02 +0000 | [diff] [blame] | 26 | ./fix_hack ref.idx |
Guido van Rossum | b83241c | 1992-03-06 10:56:42 +0000 | [diff] [blame] | 27 | makeindex ref |
| 28 | latex ref |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 29 | $(DVIPS) ref >ref.ps |
Guido van Rossum | b3fa13c | 1991-01-22 11:47:14 +0000 | [diff] [blame] | 30 | |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 31 | # LaTeX source files for the Python Library Reference |
| 32 | LIBFILES = lib.tex \ |
Guido van Rossum | 817a842 | 1995-02-16 16:28:22 +0000 | [diff] [blame] | 33 | libal.tex libaifc.tex libamoeba.tex libarray.tex libaudio.tex libaudioop.tex \ |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 34 | libbltin.tex \ |
Guido van Rossum | dc46c7f | 1995-03-01 15:38:16 +0000 | [diff] [blame] | 35 | libcgi.tex libcopy.tex libctb.tex libcrypto.tex \ |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 36 | libdbm.tex \ |
| 37 | libexcs.tex \ |
Guido van Rossum | a12ef94 | 1995-02-27 17:53:25 +0000 | [diff] [blame] | 38 | libfcntl.tex libfl.tex libfm.tex libftplib.tex libfuncs.tex \ |
| 39 | libgdbm.tex libgetopt.tex libgl.tex libgopherlib.tex libgrp.tex \ |
| 40 | libhtmllib.tex libhttplib.tex \ |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 41 | libimageop.tex libimgfile.tex libintro.tex \ |
| 42 | libjpeg.tex \ |
Guido van Rossum | 85c4ff2 | 1995-03-07 10:12:11 +0000 | [diff] [blame^] | 43 | libmac.tex libmacconsole.tex libmacdnr.tex \ |
| 44 | libmacfs.tex libmactcp.tex libmacspeech.tex \ |
| 45 | libmain.tex libmarshal.tex libmath.tex \ |
Guido van Rossum | a12ef94 | 1995-02-27 17:53:25 +0000 | [diff] [blame] | 46 | libmd5.tex libmimetools.tex libmm.tex libmods.tex libmpz.tex \ |
| 47 | libnntplib.tex \ |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 48 | libobjs.tex libos.tex \ |
Guido van Rossum | df804f8 | 1995-03-02 12:38:39 +0000 | [diff] [blame] | 49 | libpanel.tex libpickle.tex libposix.tex libposixfile.tex \ |
| 50 | libppath.tex libprofile.tex libpwd.tex \ |
Guido van Rossum | a12ef94 | 1995-02-27 17:53:25 +0000 | [diff] [blame] | 51 | librand.tex libregex.tex libregsub.tex \ |
| 52 | librfc822.tex librgbimg.tex librotor.tex \ |
| 53 | libselect.tex libsgi.tex libsgmllib.tex \ |
| 54 | libshelve.tex libsocket.tex libstd.tex libstdwin.tex \ |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 55 | libstring.tex libstruct.tex libsun.tex libsys.tex \ |
Guido van Rossum | dc46c7f | 1995-03-01 15:38:16 +0000 | [diff] [blame] | 56 | libtempfile.tex libthread.tex libtime.tex \ |
| 57 | libtraceback.tex libtypes.tex libtypes2.tex \ |
Guido van Rossum | a12ef94 | 1995-02-27 17:53:25 +0000 | [diff] [blame] | 58 | libunix.tex liburllib.tex liburlparse.tex \ |
Guido van Rossum | 817a842 | 1995-02-16 16:28:22 +0000 | [diff] [blame] | 59 | libwhrandom.tex libwww.tex |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 60 | |
| 61 | lib.dvi: $(LIBFILES) |
Guido van Rossum | b83241c | 1992-03-06 10:56:42 +0000 | [diff] [blame] | 62 | touch lib.ind |
| 63 | latex lib |
Guido van Rossum | 95cd2ef | 1992-12-08 14:37:55 +0000 | [diff] [blame] | 64 | ./fix_hack lib.idx |
Guido van Rossum | b83241c | 1992-03-06 10:56:42 +0000 | [diff] [blame] | 65 | makeindex lib |
| 66 | latex lib |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 67 | $(DVIPS) lib >lib.ps |
Guido van Rossum | a52117e | 1991-11-21 13:54:36 +0000 | [diff] [blame] | 68 | |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 69 | ext.dvi: ext.tex |
Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 70 | touch ext.ind |
| 71 | latex ext |
| 72 | ./fix_hack ext.idx |
| 73 | makeindex ext |
| 74 | latex ext |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 75 | $(DVIPS) ext >ext.ps |
Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 76 | |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 77 | qua.dvi: qua.tex quabib.bib |
Guido van Rossum | b83241c | 1992-03-06 10:56:42 +0000 | [diff] [blame] | 78 | latex qua |
Guido van Rossum | b83241c | 1992-03-06 10:56:42 +0000 | [diff] [blame] | 79 | bibtex qua |
| 80 | latex qua |
Guido van Rossum | a3d5076 | 1992-06-03 17:59:20 +0000 | [diff] [blame] | 81 | latex qua |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 82 | $(DVIPS) qua >qua.ps |
Guido van Rossum | b3fa13c | 1991-01-22 11:47:14 +0000 | [diff] [blame] | 83 | |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 84 | lib.texi: lib*.tex texipre.dat texipost.dat partparse.py fix.el |
Guido van Rossum | e6757c2 | 1994-10-20 22:01:07 +0000 | [diff] [blame] | 85 | python partparse.py -o @lib.texi `./whichlibs` |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 86 | emacs -batch -l fix.el -f save-buffer -kill |
Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 87 | mv @lib.texi lib.texi |
Guido van Rossum | 95cd2ef | 1992-12-08 14:37:55 +0000 | [diff] [blame] | 88 | |
Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 89 | .PRECIOUS: lib.texi |
| 90 | |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 91 | python-lib.info: lib.texi |
| 92 | makeinfo --footnote-style end --fill-column 72 --paragraph-indent 0 \ |
Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 93 | lib.texi |
| 94 | |
| 95 | lib.info: python-lib.info |
| 96 | |
| 97 | # This target is very local to CWI... |
| 98 | libwww: lib.texi |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 99 | texi2html -d lib.texi /ufs/guido/www/texinfo/python |
| 100 | |
| 101 | # This one too... |
| 102 | L2H= /usr/local/LaTeX2html/latex2html |
| 103 | L2HARGS=-address $$USER@`domainname` -dont_include myformat -nolatex |
| 104 | l2h: l2htut l2href l2hext |
| 105 | |
| 106 | l2htut: tut |
| 107 | $(L2H) $(L2HARGS) tut.tex |
| 108 | @rm -rf python-tut |
| 109 | mv tut python-tut |
| 110 | |
| 111 | l2href: ref |
| 112 | $(L2H) $(L2HARGS) ref.tex |
| 113 | @rm -rf python-ref |
| 114 | mv ref python-ref |
| 115 | |
| 116 | l2hext: ext |
| 117 | $(L2H) $(L2HARGS) ext.tex |
| 118 | @rm -rf python-ext |
| 119 | mv ext python-ext |
Guido van Rossum | 970871f | 1993-02-21 20:10:26 +0000 | [diff] [blame] | 120 | |
Guido van Rossum | 7f777ed | 1990-08-09 14:25:15 +0000 | [diff] [blame] | 121 | clean: |
Guido van Rossum | 4ac605e | 1992-12-17 15:31:02 +0000 | [diff] [blame] | 122 | rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.pyc |
Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 123 | # Sources: .tex, .bib, .sty |
Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 124 | # Useful results: .dvi, .ps, .texi, .info |
Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 125 | |
| 126 | clobber: clean |
Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 127 | rm -f *.dvi *.ps *.texi *.info *.info-[0-9]* |