home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pyth_os2.zip / python-1.0.2 / Doc / Makefile < prev    next >
Makefile  |  1994-04-11  |  2KB  |  88 lines

  1. DESTDIR=/usr/local
  2. LIBDESTDIR=$DESTDIR/lib
  3. LIBDEST=$LIBDESTDIR/python
  4. DOCDESTDIR=$LIBDEST/doc
  5.  
  6. all:    tut lib ref ext
  7.  
  8. tut:
  9.     latex tut
  10.     latex tut
  11.     dvips tut >tut.ps
  12.  
  13. ref:
  14.     touch ref.ind
  15.     latex ref
  16.     ./fix_hack ref.idx
  17.     makeindex ref
  18.     latex ref
  19.     dvips ref >ref.ps
  20.  
  21. lib:
  22.     touch lib.ind
  23.     latex lib
  24.     ./fix_hack lib.idx
  25.     makeindex lib
  26.     latex lib
  27.     dvips lib >lib.ps
  28.  
  29. ext:
  30.     touch ext.ind
  31.     latex ext
  32.     ./fix_hack ext.idx
  33.     makeindex ext
  34.     latex ext
  35.     dvips ext >ext.ps
  36.  
  37. qua:
  38.     latex qua
  39.     bibtex qua
  40.     latex qua
  41.     latex qua
  42.     dvips qua >qua.ps
  43.  
  44. lib.texi: lib*.tex texipre.dat texipost.dat partparse.py
  45.     python partparse.py -o @lib.texi `whichlibs`
  46.     mv @lib.texi lib.texi
  47.  
  48. .PRECIOUS:    lib.texi
  49.  
  50. python-lib.info: lib.texi fix.el
  51.     emacs -batch -l fix.el -f save-buffer -kill
  52.     makeinfo --footnote-style end --fill-column 72 --paragraph-indent 0 \
  53.              lib.texi
  54.  
  55. lib.info: python-lib.info
  56.  
  57. # This target is very local to CWI...
  58. libwww: lib.texi
  59.     texi2html -d lib.texi /ufs/guido/www/texinfo/python
  60.  
  61. # This one too...
  62. L2H=    /usr/local/LaTeX2html/latex2html
  63. L2HARGS=-address $$USER@`domainname` -dont_include myformat -nolatex
  64. l2h: l2htut l2href l2hext
  65.  
  66. l2htut: tut
  67.     $(L2H) $(L2HARGS) tut.tex
  68.     @rm -rf python-tut
  69.     mv tut python-tut
  70.  
  71. l2href: ref
  72.     $(L2H) $(L2HARGS) ref.tex
  73.     @rm -rf python-ref
  74.     mv ref python-ref
  75.  
  76. l2hext: ext
  77.     $(L2H) $(L2HARGS) ext.tex
  78.     @rm -rf python-ext
  79.     mv ext python-ext
  80.  
  81. clean:
  82.     rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.pyc
  83.     # Sources: .tex, .bib, .sty
  84.     # Useful results: .dvi, .ps, .texi, .info
  85.  
  86. clobber: clean
  87.      rm -f *.dvi *.ps *.texi *.info *.info-[0-9]*
  88.