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