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 | 817a842 | 1995-02-16 16:28:22 +0000 | [diff] [blame^] | 35 | libcopy.tex libcrypto.tex \ |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 36 | libdbm.tex \ |
| 37 | libexcs.tex \ |
| 38 | libfcntl.tex libfl.tex libfm.tex libfuncs.tex \ |
| 39 | libgdbm.tex libgetopt.tex libgl.tex libgrp.tex \ |
| 40 | libimageop.tex libimgfile.tex libintro.tex \ |
| 41 | libjpeg.tex \ |
| 42 | libmac.tex libmain.tex libmarshal.tex libmath.tex \ |
| 43 | libmd5.tex libmm.tex libmods.tex libmpz.tex \ |
| 44 | libobjs.tex libos.tex \ |
Guido van Rossum | 817a842 | 1995-02-16 16:28:22 +0000 | [diff] [blame^] | 45 | libpanel.tex libposix.tex libposixfile.tex libppath.tex libpickle.tex \ |
| 46 | libpwd.tex \ |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 47 | librand.tex libregex.tex libregsub.tex librgbimg.tex librotor.tex \ |
Guido van Rossum | 817a842 | 1995-02-16 16:28:22 +0000 | [diff] [blame^] | 48 | libselect.tex libsgi.tex libshelve.tex libsocket.tex libstd.tex libstdwin.tex \ |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 49 | libstring.tex libstruct.tex libsun.tex libsys.tex \ |
| 50 | libthread.tex libtime.tex libtypes.tex \ |
| 51 | libunix.tex \ |
Guido van Rossum | 817a842 | 1995-02-16 16:28:22 +0000 | [diff] [blame^] | 52 | libwhrandom.tex libwww.tex |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 53 | |
| 54 | lib.dvi: $(LIBFILES) |
Guido van Rossum | b83241c | 1992-03-06 10:56:42 +0000 | [diff] [blame] | 55 | touch lib.ind |
| 56 | latex lib |
Guido van Rossum | 95cd2ef | 1992-12-08 14:37:55 +0000 | [diff] [blame] | 57 | ./fix_hack lib.idx |
Guido van Rossum | b83241c | 1992-03-06 10:56:42 +0000 | [diff] [blame] | 58 | makeindex lib |
| 59 | latex lib |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 60 | $(DVIPS) lib >lib.ps |
Guido van Rossum | a52117e | 1991-11-21 13:54:36 +0000 | [diff] [blame] | 61 | |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 62 | ext.dvi: ext.tex |
Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 63 | touch ext.ind |
| 64 | latex ext |
| 65 | ./fix_hack ext.idx |
| 66 | makeindex ext |
| 67 | latex ext |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 68 | $(DVIPS) ext >ext.ps |
Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 69 | |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 70 | qua.dvi: qua.tex quabib.bib |
Guido van Rossum | b83241c | 1992-03-06 10:56:42 +0000 | [diff] [blame] | 71 | latex qua |
Guido van Rossum | b83241c | 1992-03-06 10:56:42 +0000 | [diff] [blame] | 72 | bibtex qua |
| 73 | latex qua |
Guido van Rossum | a3d5076 | 1992-06-03 17:59:20 +0000 | [diff] [blame] | 74 | latex qua |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 75 | $(DVIPS) qua >qua.ps |
Guido van Rossum | b3fa13c | 1991-01-22 11:47:14 +0000 | [diff] [blame] | 76 | |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 77 | 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] | 78 | python partparse.py -o @lib.texi `./whichlibs` |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 79 | emacs -batch -l fix.el -f save-buffer -kill |
Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 80 | mv @lib.texi lib.texi |
Guido van Rossum | 95cd2ef | 1992-12-08 14:37:55 +0000 | [diff] [blame] | 81 | |
Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 82 | .PRECIOUS: lib.texi |
| 83 | |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 84 | python-lib.info: lib.texi |
| 85 | makeinfo --footnote-style end --fill-column 72 --paragraph-indent 0 \ |
Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 86 | lib.texi |
| 87 | |
| 88 | lib.info: python-lib.info |
| 89 | |
| 90 | # This target is very local to CWI... |
| 91 | libwww: lib.texi |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 92 | texi2html -d lib.texi /ufs/guido/www/texinfo/python |
| 93 | |
| 94 | # This one too... |
| 95 | L2H= /usr/local/LaTeX2html/latex2html |
| 96 | L2HARGS=-address $$USER@`domainname` -dont_include myformat -nolatex |
| 97 | l2h: l2htut l2href l2hext |
| 98 | |
| 99 | l2htut: tut |
| 100 | $(L2H) $(L2HARGS) tut.tex |
| 101 | @rm -rf python-tut |
| 102 | mv tut python-tut |
| 103 | |
| 104 | l2href: ref |
| 105 | $(L2H) $(L2HARGS) ref.tex |
| 106 | @rm -rf python-ref |
| 107 | mv ref python-ref |
| 108 | |
| 109 | l2hext: ext |
| 110 | $(L2H) $(L2HARGS) ext.tex |
| 111 | @rm -rf python-ext |
| 112 | mv ext python-ext |
Guido van Rossum | 970871f | 1993-02-21 20:10:26 +0000 | [diff] [blame] | 113 | |
Guido van Rossum | 7f777ed | 1990-08-09 14:25:15 +0000 | [diff] [blame] | 114 | clean: |
Guido van Rossum | 4ac605e | 1992-12-17 15:31:02 +0000 | [diff] [blame] | 115 | rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.pyc |
Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 116 | # Sources: .tex, .bib, .sty |
Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 117 | # Useful results: .dvi, .ps, .texi, .info |
Guido van Rossum | 5b34373 | 1992-07-07 09:06:34 +0000 | [diff] [blame] | 118 | |
| 119 | clobber: clean |
Guido van Rossum | 7a2dba2 | 1993-11-05 14:45:11 +0000 | [diff] [blame] | 120 | rm -f *.dvi *.ps *.texi *.info *.info-[0-9]* |