blob: a17dc77289c9d68af603384b235c3ffc74d327dc [file] [log] [blame]
Guido van Rossum5b343731992-07-07 09:06:34 +00001DESTDIR=/usr/local
2LIBDESTDIR=$DESTDIR/lib
3LIBDEST=$LIBDESTDIR/python
4DOCDESTDIR=$LIBDEST/doc
Guido van Rossum6938f061994-08-01 12:22:53 +00005DVIPS= dvips -f
Guido van Rossum5b343731992-07-07 09:06:34 +00006
Guido van Rossum16d6e711994-08-08 12:30:22 +00007all: tut.dvi lib.dvi ref.dvi ext.dvi
Guido van Rossum20aca5a1991-01-25 13:29:04 +00008
Guido van Rossum16d6e711994-08-08 12:30:22 +00009ext: ext.dvi
10tut: tut.dvi
11qua: qua.dvi
12ref: ref.dvi
13lib: lib.dvi
14
15tut.dvi lib.dvi ref.dvi ext.dvi: myformat.sty fix_hack
16
17tut.dvi: tut.tex
Guido van Rossumb83241c1992-03-06 10:56:42 +000018 latex tut
19 latex tut
Guido van Rossum6938f061994-08-01 12:22:53 +000020 $(DVIPS) tut >tut.ps
Guido van Rossumb3fa13c1991-01-22 11:47:14 +000021
Guido van Rossum16d6e711994-08-08 12:30:22 +000022ref.dvi: ref.tex ref1.tex ref2.tex ref3.tex ref4.tex ref5.tex ref6.tex \
23 ref7.tex ref8.tex
Guido van Rossumb83241c1992-03-06 10:56:42 +000024 touch ref.ind
25 latex ref
Guido van Rossum4ac605e1992-12-17 15:31:02 +000026 ./fix_hack ref.idx
Guido van Rossumb83241c1992-03-06 10:56:42 +000027 makeindex ref
28 latex ref
Guido van Rossum6938f061994-08-01 12:22:53 +000029 $(DVIPS) ref >ref.ps
Guido van Rossumb3fa13c1991-01-22 11:47:14 +000030
Guido van Rossum16d6e711994-08-08 12:30:22 +000031# LaTeX source files for the Python Library Reference
32LIBFILES = lib.tex \
Guido van Rossum817a8421995-02-16 16:28:22 +000033libal.tex libaifc.tex libamoeba.tex libarray.tex libaudio.tex libaudioop.tex \
Guido van Rossum16d6e711994-08-08 12:30:22 +000034libbltin.tex \
Guido van Rossumdc46c7f1995-03-01 15:38:16 +000035libcgi.tex libcopy.tex libctb.tex libcrypto.tex \
Guido van Rossum16d6e711994-08-08 12:30:22 +000036libdbm.tex \
37libexcs.tex \
Guido van Rossuma12ef941995-02-27 17:53:25 +000038libfcntl.tex libfl.tex libfm.tex libftplib.tex libfuncs.tex \
39libgdbm.tex libgetopt.tex libgl.tex libgopherlib.tex libgrp.tex \
40libhtmllib.tex libhttplib.tex \
Guido van Rossum16d6e711994-08-08 12:30:22 +000041libimageop.tex libimgfile.tex libintro.tex \
42libjpeg.tex \
Guido van Rossum85c4ff21995-03-07 10:12:11 +000043libmac.tex libmacconsole.tex libmacdnr.tex \
44 libmacfs.tex libmactcp.tex libmacspeech.tex \
45 libmain.tex libmarshal.tex libmath.tex \
Guido van Rossuma12ef941995-02-27 17:53:25 +000046 libmd5.tex libmimetools.tex libmm.tex libmods.tex libmpz.tex \
47libnntplib.tex \
Guido van Rossum16d6e711994-08-08 12:30:22 +000048libobjs.tex libos.tex \
Guido van Rossumdf804f81995-03-02 12:38:39 +000049libpanel.tex libpickle.tex libposix.tex libposixfile.tex \
50 libppath.tex libprofile.tex libpwd.tex \
Guido van Rossuma12ef941995-02-27 17:53:25 +000051librand.tex libregex.tex libregsub.tex \
52 librfc822.tex librgbimg.tex librotor.tex \
53libselect.tex libsgi.tex libsgmllib.tex \
54 libshelve.tex libsocket.tex libstd.tex libstdwin.tex \
Guido van Rossum16d6e711994-08-08 12:30:22 +000055 libstring.tex libstruct.tex libsun.tex libsys.tex \
Guido van Rossumdc46c7f1995-03-01 15:38:16 +000056libtempfile.tex libthread.tex libtime.tex \
57 libtraceback.tex libtypes.tex libtypes2.tex \
Guido van Rossuma12ef941995-02-27 17:53:25 +000058libunix.tex liburllib.tex liburlparse.tex \
Guido van Rossum817a8421995-02-16 16:28:22 +000059libwhrandom.tex libwww.tex
Guido van Rossum16d6e711994-08-08 12:30:22 +000060
61lib.dvi: $(LIBFILES)
Guido van Rossumb83241c1992-03-06 10:56:42 +000062 touch lib.ind
63 latex lib
Guido van Rossum95cd2ef1992-12-08 14:37:55 +000064 ./fix_hack lib.idx
Guido van Rossumb83241c1992-03-06 10:56:42 +000065 makeindex lib
66 latex lib
Guido van Rossum6938f061994-08-01 12:22:53 +000067 $(DVIPS) lib >lib.ps
Guido van Rossuma52117e1991-11-21 13:54:36 +000068
Guido van Rossum16d6e711994-08-08 12:30:22 +000069ext.dvi: ext.tex
Guido van Rossum7a2dba21993-11-05 14:45:11 +000070 touch ext.ind
71 latex ext
72 ./fix_hack ext.idx
73 makeindex ext
74 latex ext
Guido van Rossum6938f061994-08-01 12:22:53 +000075 $(DVIPS) ext >ext.ps
Guido van Rossum7a2dba21993-11-05 14:45:11 +000076
Guido van Rossum16d6e711994-08-08 12:30:22 +000077qua.dvi: qua.tex quabib.bib
Guido van Rossumb83241c1992-03-06 10:56:42 +000078 latex qua
Guido van Rossumb83241c1992-03-06 10:56:42 +000079 bibtex qua
80 latex qua
Guido van Rossuma3d50761992-06-03 17:59:20 +000081 latex qua
Guido van Rossum6938f061994-08-01 12:22:53 +000082 $(DVIPS) qua >qua.ps
Guido van Rossumb3fa13c1991-01-22 11:47:14 +000083
Guido van Rossum6938f061994-08-01 12:22:53 +000084lib.texi: lib*.tex texipre.dat texipost.dat partparse.py fix.el
Guido van Rossume6757c21994-10-20 22:01:07 +000085 python partparse.py -o @lib.texi `./whichlibs`
Guido van Rossum6938f061994-08-01 12:22:53 +000086 emacs -batch -l fix.el -f save-buffer -kill
Guido van Rossum7a2dba21993-11-05 14:45:11 +000087 mv @lib.texi lib.texi
Guido van Rossum95cd2ef1992-12-08 14:37:55 +000088
Guido van Rossum7a2dba21993-11-05 14:45:11 +000089.PRECIOUS: lib.texi
90
Guido van Rossum6938f061994-08-01 12:22:53 +000091python-lib.info: lib.texi
92 makeinfo --footnote-style end --fill-column 72 --paragraph-indent 0 \
Guido van Rossum7a2dba21993-11-05 14:45:11 +000093 lib.texi
94
95lib.info: python-lib.info
96
97# This target is very local to CWI...
98libwww: lib.texi
Guido van Rossum6938f061994-08-01 12:22:53 +000099 texi2html -d lib.texi /ufs/guido/www/texinfo/python
100
101# This one too...
102L2H= /usr/local/LaTeX2html/latex2html
103L2HARGS=-address $$USER@`domainname` -dont_include myformat -nolatex
104l2h: l2htut l2href l2hext
105
106l2htut: tut
107 $(L2H) $(L2HARGS) tut.tex
108 @rm -rf python-tut
109 mv tut python-tut
110
111l2href: ref
112 $(L2H) $(L2HARGS) ref.tex
113 @rm -rf python-ref
114 mv ref python-ref
115
116l2hext: ext
117 $(L2H) $(L2HARGS) ext.tex
118 @rm -rf python-ext
119 mv ext python-ext
Guido van Rossum970871f1993-02-21 20:10:26 +0000120
Guido van Rossum7f777ed1990-08-09 14:25:15 +0000121clean:
Guido van Rossum4ac605e1992-12-17 15:31:02 +0000122 rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.pyc
Guido van Rossum5b343731992-07-07 09:06:34 +0000123 # Sources: .tex, .bib, .sty
Guido van Rossum7a2dba21993-11-05 14:45:11 +0000124 # Useful results: .dvi, .ps, .texi, .info
Guido van Rossum5b343731992-07-07 09:06:34 +0000125
126clobber: clean
Guido van Rossum7a2dba21993-11-05 14:45:11 +0000127 rm -f *.dvi *.ps *.texi *.info *.info-[0-9]*