1995-03-17 16:01:35 +00:00
|
|
|
# Makefile for Python documentation
|
|
|
|
# ---------------------------------
|
|
|
|
#
|
1995-03-20 13:00:32 +00:00
|
|
|
# See also the README file.
|
|
|
|
#
|
1999-04-22 14:16:14 +00:00
|
|
|
# This is a bit of a mess. The documents are identified by short names:
|
1998-05-11 18:25:46 +00:00
|
|
|
# api -- Python/C API Reference Manual
|
1999-04-22 14:16:14 +00:00
|
|
|
# doc -- Documenting Python
|
1998-05-11 18:25:46 +00:00
|
|
|
# ext -- Extending and Embedding the Python Interpreter
|
|
|
|
# lib -- Library Reference Manual
|
1998-07-24 15:42:12 +00:00
|
|
|
# mac -- Macintosh Library Modules
|
1998-05-07 19:30:16 +00:00
|
|
|
# ref -- Python Reference Manual
|
1998-05-11 18:25:46 +00:00
|
|
|
# tut -- Python Tutorial
|
2000-04-28 16:53:36 +00:00
|
|
|
# inst -- Installing Python Modules
|
|
|
|
# dist -- Distributing Python Modules
|
1995-03-17 16:01:35 +00:00
|
|
|
#
|
2001-01-22 20:47:26 +00:00
|
|
|
# The LaTeX sources for each of these documents are in subdirectories
|
1998-05-07 19:30:16 +00:00
|
|
|
# with the three-letter designations above as the directory names.
|
1996-10-22 20:00:02 +00:00
|
|
|
#
|
2001-01-22 20:47:26 +00:00
|
|
|
# The main target creates HTML for each of the documents. You can
|
|
|
|
# also do "make lib" (etc.) to create the HTML versions of individual
|
|
|
|
# documents.
|
1995-03-17 16:01:35 +00:00
|
|
|
#
|
1998-05-07 19:30:16 +00:00
|
|
|
# The document classes and styles are in the texinputs/ directory.
|
|
|
|
# These define a number of macros that are similar in name and intent
|
|
|
|
# as macros in Texinfo (e.g. \code{...} and \emph{...}), as well as a
|
1998-07-28 21:05:16 +00:00
|
|
|
# number of environments for formatting function and data definitions.
|
2001-01-22 20:47:26 +00:00
|
|
|
# Documentation for the macros is included in "Documenting Python"; see
|
|
|
|
# http://www.python.org/doc/current/doc/doc.html, or the sources for
|
|
|
|
# this document in the doc/ directory.
|
1995-03-17 16:01:35 +00:00
|
|
|
#
|
1998-05-11 18:25:46 +00:00
|
|
|
# Everything is processed by LaTeX. See the file `README' for more
|
|
|
|
# information on the tools needed for processing.
|
1995-03-17 16:01:35 +00:00
|
|
|
#
|
|
|
|
# There's a problem with generating the index which has been solved by
|
|
|
|
# a sed command applied to the index file. The shell script fix_hack
|
|
|
|
# does this (the Makefile takes care of calling it).
|
|
|
|
#
|
|
|
|
# Additional targets attempt to convert selected LaTeX sources to
|
|
|
|
# various other formats. These are generally site specific because
|
|
|
|
# the tools used are all but universal. These targets are:
|
1998-07-24 15:42:12 +00:00
|
|
|
#
|
2001-01-22 20:47:26 +00:00
|
|
|
# ps -- convert all documents from LaTeX to PostScript
|
|
|
|
# pdf -- convert all documents from LaTeX to the
|
1998-07-28 21:05:16 +00:00
|
|
|
# Portable Document Format
|
1998-07-24 15:42:12 +00:00
|
|
|
#
|
1998-07-28 21:05:16 +00:00
|
|
|
# See the README file for more information on these targets.
|
1998-05-11 18:25:46 +00:00
|
|
|
#
|
|
|
|
# The formatted output is located in subdirectories. For PDF and
|
|
|
|
# PostScript, look in the paper-$(PAPER)/ directory. For HTML, look in
|
1998-07-24 15:42:12 +00:00
|
|
|
# the html/ directory. If you want to fix the GNU info process, look
|
1998-08-12 17:08:37 +00:00
|
|
|
# in the info/ directory; please send patches to python-docs@python.org.
|
1995-03-20 13:00:32 +00:00
|
|
|
|
2000-08-29 16:30:21 +00:00
|
|
|
# This Makefile only includes information on how to perform builds; for
|
|
|
|
# dependency information, see Makefile.deps.
|
|
|
|
|
2001-01-22 20:47:26 +00:00
|
|
|
# Customization -- you *may* have to edit this
|
1995-03-20 13:00:32 +00:00
|
|
|
|
2001-01-22 20:47:26 +00:00
|
|
|
# You could set this to a4:
|
1998-05-07 19:30:16 +00:00
|
|
|
PAPER=letter
|
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
# Ideally, you shouldn't need to edit beyond this point
|
1995-03-17 16:01:35 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
HTMLDIR= html
|
1998-05-08 15:43:08 +00:00
|
|
|
INFODIR= info
|
1998-08-12 17:08:37 +00:00
|
|
|
TOOLSDIR= tools
|
1992-07-07 09:06:34 +00:00
|
|
|
|
1999-07-12 16:52:50 +00:00
|
|
|
# This is the *documentation* release, and is used to construct the file
|
|
|
|
# names of the downloadable tarballs.
|
2001-07-18 21:17:29 +00:00
|
|
|
RELEASE=2.2a2
|
1999-07-12 16:52:50 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
PYTHON= python
|
|
|
|
DVIPS= dvips -N0 -t $(PAPER)
|
|
|
|
|
2001-07-17 16:53:19 +00:00
|
|
|
MKDVI= $(PYTHON) ../tools/mkhowto --paper=$(PAPER) --dvi
|
|
|
|
MKHTML= $(PYTHON) tools/mkhowto --html --about html/stdabout.dat \
|
2001-02-19 19:19:26 +00:00
|
|
|
--address $(PYTHONDOCS) --up-link ../index.html \
|
|
|
|
--up-title "Python Documentation Index" \
|
|
|
|
--global-module-index "../modindex.html"
|
2001-07-17 16:53:19 +00:00
|
|
|
MKPDF= $(PYTHON) ../tools/mkhowto --paper=$(PAPER) --pdf
|
|
|
|
MKPS= $(PYTHON) ../tools/mkhowto --paper=$(PAPER) --ps
|
2001-02-19 19:19:26 +00:00
|
|
|
|
|
|
|
BUILDINDEX=$(TOOLSDIR)/buildindex.py
|
|
|
|
|
2001-07-17 16:53:19 +00:00
|
|
|
PYTHONDOCS="See <i><a href=\"about.html\">About this document...</a></i> for information on suggesting changes."
|
2001-02-19 19:19:26 +00:00
|
|
|
HTMLBASE= file:`pwd`
|
|
|
|
|
|
|
|
# what's what
|
|
|
|
MANDVIFILES= paper-$(PAPER)/api.dvi paper-$(PAPER)/ext.dvi \
|
|
|
|
paper-$(PAPER)/lib.dvi paper-$(PAPER)/mac.dvi \
|
|
|
|
paper-$(PAPER)/ref.dvi paper-$(PAPER)/tut.dvi
|
|
|
|
HOWTODVIFILES= paper-$(PAPER)/doc.dvi paper-$(PAPER)/inst.dvi \
|
|
|
|
paper-$(PAPER)/dist.dvi
|
|
|
|
|
|
|
|
MANPDFFILES= paper-$(PAPER)/api.pdf paper-$(PAPER)/ext.pdf \
|
|
|
|
paper-$(PAPER)/lib.pdf paper-$(PAPER)/mac.pdf \
|
|
|
|
paper-$(PAPER)/ref.pdf paper-$(PAPER)/tut.pdf
|
|
|
|
HOWTOPDFFILES= paper-$(PAPER)/doc.pdf paper-$(PAPER)/inst.pdf \
|
|
|
|
paper-$(PAPER)/dist.pdf
|
|
|
|
|
|
|
|
MANPSFILES= paper-$(PAPER)/api.ps paper-$(PAPER)/ext.ps \
|
|
|
|
paper-$(PAPER)/lib.ps paper-$(PAPER)/mac.ps \
|
|
|
|
paper-$(PAPER)/ref.ps paper-$(PAPER)/tut.ps
|
|
|
|
HOWTOPSFILES= paper-$(PAPER)/doc.ps paper-$(PAPER)/inst.ps \
|
|
|
|
paper-$(PAPER)/dist.ps
|
|
|
|
|
|
|
|
DVIFILES= $(MANDVIFILES) $(HOWTODVIFILES)
|
|
|
|
PDFFILES= $(MANPDFFILES) $(HOWTOPDFFILES)
|
|
|
|
PSFILES= $(MANPSFILES) $(HOWTOPSFILES)
|
|
|
|
|
|
|
|
INDEXFILES=html/api/api.html \
|
|
|
|
html/doc/doc.html \
|
|
|
|
html/ext/ext.html \
|
|
|
|
html/lib/lib.html \
|
|
|
|
html/mac/mac.html \
|
|
|
|
html/ref/ref.html \
|
|
|
|
html/tut/tut.html \
|
|
|
|
html/inst/inst.html \
|
|
|
|
html/dist/dist.html
|
|
|
|
|
2001-07-18 21:17:29 +00:00
|
|
|
ALLHTMLFILES=$(INDEXFILES) html/index.html html/modindex.html html/acks.html
|
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
COMMONPERL= perl/manual.perl perl/python.perl perl/l2hinit.perl
|
|
|
|
|
|
|
|
include Makefile.deps
|
1998-01-13 16:33:09 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
# These must be declared phony since there
|
|
|
|
# are directories with matching names:
|
2000-04-28 16:53:36 +00:00
|
|
|
.PHONY: api doc ext lib mac ref tut inst dist
|
2001-02-19 19:19:26 +00:00
|
|
|
.PHONY: html info
|
1998-05-07 01:39:06 +00:00
|
|
|
|
|
|
|
|
1995-03-17 16:01:35 +00:00
|
|
|
# Main target
|
2001-01-22 20:47:26 +00:00
|
|
|
all: html
|
1998-05-07 19:30:16 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
dvi: $(DVIFILES)
|
|
|
|
pdf: $(PDFFILES)
|
|
|
|
ps: $(PSFILES)
|
1996-08-09 21:46:05 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
world: ps pdf html distfiles
|
1998-03-06 21:29:34 +00:00
|
|
|
|
1992-03-06 10:56:42 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
# Rules to build PostScript and PDF formats
|
|
|
|
.SUFFIXES: .dvi .ps
|
1998-05-11 18:25:46 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
.dvi.ps:
|
|
|
|
$(DVIPS) -o $@ $<
|
1998-05-11 18:25:46 +00:00
|
|
|
|
1998-07-24 13:58:27 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
# Targets for each document:
|
|
|
|
# Python/C API Reference Manual
|
|
|
|
paper-$(PAPER)/api.dvi: paper-$(PAPER)/api.tex $(APIFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) api.tex
|
1999-03-16 16:11:27 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
paper-$(PAPER)/api.pdf: paper-$(PAPER)/api.tex $(APIFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) api.tex
|
1998-05-07 19:30:16 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
paper-$(PAPER)/api.tex: api/api.tex api/refcounts.dat tools/anno-api.py
|
|
|
|
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/api.tex
|
1998-05-07 19:30:16 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
# Distributing Python Modules
|
|
|
|
paper-$(PAPER)/dist.dvi: $(DISTFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../dist/dist.tex
|
1998-08-12 17:08:37 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
paper-$(PAPER)/dist.pdf: $(DISTFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../dist/dist.tex
|
1998-08-12 17:08:37 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
# Documenting Python
|
|
|
|
paper-$(PAPER)/doc.dvi: $(DOCFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../doc/doc.tex
|
1998-08-12 17:08:37 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
paper-$(PAPER)/doc.pdf: $(DOCFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../doc/doc.tex
|
2000-04-28 16:53:36 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
# Extending and Embedding the Python Interpreter
|
|
|
|
paper-$(PAPER)/ext.dvi: $(EXTFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../ext/ext.tex
|
2000-04-28 16:53:36 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
paper-$(PAPER)/ext.pdf: $(EXTFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../ext/ext.tex
|
1998-08-12 17:08:37 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
# Installing Python Modules
|
|
|
|
paper-$(PAPER)/inst.dvi: $(INSTFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../inst/inst.tex
|
1998-08-12 17:08:37 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
paper-$(PAPER)/inst.pdf: $(INSTFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../inst/inst.tex
|
1999-03-16 16:11:27 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
# Python Library Reference
|
|
|
|
paper-$(PAPER)/lib.dvi: $(LIBFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../lib/lib.tex
|
1998-08-12 17:08:37 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
paper-$(PAPER)/lib.pdf: $(LIBFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../lib/lib.tex
|
1998-08-12 17:08:37 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
# Macintosh Library Modules
|
|
|
|
paper-$(PAPER)/mac.dvi: $(MACFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../mac/mac.tex
|
1998-08-12 17:08:37 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
paper-$(PAPER)/mac.pdf: $(MACFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../mac/mac.tex
|
1998-08-12 17:08:37 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
# Python Reference Manual
|
|
|
|
paper-$(PAPER)/ref.dvi: $(REFFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../ref/ref.tex
|
1998-05-07 19:30:16 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
paper-$(PAPER)/ref.pdf: $(REFFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../ref/ref.tex
|
2000-04-28 16:53:36 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
# Python Tutorial
|
|
|
|
paper-$(PAPER)/tut.dvi: $(TUTFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../tut/tut.tex
|
2000-04-28 16:53:36 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
paper-$(PAPER)/tut.pdf: $(TUTFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../tut/tut.tex
|
1995-03-17 16:01:35 +00:00
|
|
|
|
|
|
|
# The remaining part of the Makefile is concerned with various
|
1995-03-20 13:00:32 +00:00
|
|
|
# conversions, as described above. See also the README file.
|
1995-03-17 16:01:35 +00:00
|
|
|
|
1998-05-08 15:43:08 +00:00
|
|
|
info:
|
2001-07-17 16:53:19 +00:00
|
|
|
cd $(INFODIR) && $(MAKE)
|
1998-02-22 19:47:13 +00:00
|
|
|
|
1995-03-20 13:00:32 +00:00
|
|
|
# Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to
|
|
|
|
# HTML converter. For more info on this program, see
|
1995-03-17 16:01:35 +00:00
|
|
|
# <URL:http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html>.
|
1996-11-11 21:03:01 +00:00
|
|
|
|
1997-12-29 20:01:55 +00:00
|
|
|
# Note that LaTeX2HTML inserts references to an icons directory in
|
|
|
|
# each page that it generates. I have placed a copy of this directory
|
|
|
|
# in the distribution to simplify the process of creating a
|
|
|
|
# self-contained HTML distribution; for this purpose I have also added
|
|
|
|
# a (trivial) index.html. Change the definition of $ICONSERVER in
|
1998-04-28 19:20:43 +00:00
|
|
|
# perl/l2hinit.perl to use a different location for the icons directory.
|
1996-11-11 21:03:01 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
# If you have the standard LaTeX2HTML icons installed, the versions shipped
|
|
|
|
# with this documentation should be stored in a separate directory and used
|
|
|
|
# instead. The standard set does *not* include all the icons used in the
|
|
|
|
# Python documentation.
|
1998-05-07 01:39:06 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
$(INDEXFILES): $(COMMONPERL) html/about.dat tools/node2label.pl
|
1996-11-11 21:03:01 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
html/acks.html: ACKS $(TOOLSDIR)/support.py $(TOOLSDIR)/mkackshtml
|
2001-07-17 16:53:19 +00:00
|
|
|
$(PYTHON) $(TOOLSDIR)/mkackshtml --address $(PYTHONDOCS) \
|
2001-02-22 23:06:21 +00:00
|
|
|
--output html/acks.html <ACKS
|
1994-08-01 12:22:53 +00:00
|
|
|
|
2001-07-17 16:53:19 +00:00
|
|
|
|
|
|
|
# html/index.html is dependent on $(INDEXFILES) since we want the date
|
|
|
|
# on the front index to be updated whenever any of the child documents
|
|
|
|
# are updated and boilerplate.tex uses \today as the date. The index
|
|
|
|
# files are not used to actually generate content.
|
|
|
|
|
|
|
|
BOILERPLATE=texinputs/boilerplate.tex
|
|
|
|
html/index.html: $(INDEXFILES)
|
|
|
|
html/index.html: html/index.html.in $(BOILERPLATE) tools/rewrite.py
|
|
|
|
$(PYTHON) tools/rewrite.py $(BOILERPLATE) RELEASE=$(RELEASE) \
|
|
|
|
<$< >$@
|
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
html/modindex.html: $(TOOLSDIR)/support.py $(TOOLSDIR)/mkmodindex
|
|
|
|
html/modindex.html: html/lib/lib.html html/mac/mac.html
|
2001-07-17 16:53:19 +00:00
|
|
|
cd html && \
|
|
|
|
$(PYTHON) ../$(TOOLSDIR)/mkmodindex --columns 4 \
|
|
|
|
--output modindex.html --address $(PYTHONDOCS) \
|
|
|
|
lib/modindex.html mac/modindex.html
|
1999-03-18 19:08:47 +00:00
|
|
|
|
2001-07-18 21:17:29 +00:00
|
|
|
html: $(ALLHTMLFILES)
|
1993-02-21 20:10:26 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
api html/api/api.html: $(APIFILES)
|
|
|
|
$(MKHTML) --dir html/api api/api.tex
|
1998-05-06 19:51:39 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
doc html/doc/doc.html: $(DOCFILES)
|
|
|
|
$(MKHTML) --dir html/doc doc/doc.tex
|
1998-05-15 17:02:10 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
ext html/ext/ext.html: $(EXTFILES)
|
|
|
|
$(MKHTML) --dir html/ext ext/ext.tex
|
1998-08-12 17:08:37 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
lib html/lib/lib.html: $(LIBFILES)
|
|
|
|
$(MKHTML) --dir html/lib lib/lib.tex
|
1995-03-17 16:01:35 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
mac html/mac/mac.html: $(MACFILES)
|
|
|
|
$(MKHTML) --dir html/mac mac/mac.tex
|
2000-04-28 16:53:36 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
ref html/ref/ref.html: $(REFFILES)
|
|
|
|
$(MKHTML) --dir html/ref ref/ref.tex
|
2000-04-28 16:53:36 +00:00
|
|
|
|
2001-02-19 19:19:26 +00:00
|
|
|
tut html/tut/tut.html: $(TUTFILES)
|
|
|
|
$(MKHTML) --dir html/tut --numeric --split 3 tut/tut.tex
|
|
|
|
|
|
|
|
inst html/inst/inst.html: $(INSTFILES) perl/distutils.perl
|
2001-03-01 18:38:56 +00:00
|
|
|
$(MKHTML) --dir html/inst --split 4 inst/inst.tex
|
2001-02-19 19:19:26 +00:00
|
|
|
|
|
|
|
dist html/dist/dist.html: $(DISTFILES) perl/distutils.perl
|
2001-03-01 18:38:56 +00:00
|
|
|
$(MKHTML) --dir html/dist --split 4 dist/dist.tex
|
2000-04-07 16:27:15 +00:00
|
|
|
|
1998-03-06 21:29:34 +00:00
|
|
|
|
|
|
|
# webchecker needs an extra flag to process the huge index from the libref
|
2001-02-19 19:19:26 +00:00
|
|
|
WEBCHECKER=$(PYTHON) ../Tools/webchecker/webchecker.py
|
|
|
|
HTMLBASE= file:`pwd`/html
|
|
|
|
|
2001-07-18 21:17:29 +00:00
|
|
|
webcheck: $(ALLHTMLFILES)
|
2001-02-19 19:19:26 +00:00
|
|
|
$(WEBCHECKER) $(HTMLBASE)/api/
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/doc/
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/ext/
|
|
|
|
$(WEBCHECKER) -m290000 $(HTMLBASE)/lib/
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/mac/
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/ref/
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/tut/
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/dist/
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/inst/
|
|
|
|
|
2001-07-18 21:17:29 +00:00
|
|
|
fastwebcheck: $(ALLHTMLFILES)
|
2001-02-19 19:19:26 +00:00
|
|
|
$(WEBCHECKER) -x $(HTMLBASE)/api/
|
|
|
|
$(WEBCHECKER) -x $(HTMLBASE)/doc/
|
|
|
|
$(WEBCHECKER) -x $(HTMLBASE)/ext/
|
|
|
|
$(WEBCHECKER) -x -m290000 $(HTMLBASE)/lib/
|
|
|
|
$(WEBCHECKER) -x $(HTMLBASE)/mac/
|
|
|
|
$(WEBCHECKER) -x $(HTMLBASE)/ref/
|
|
|
|
$(WEBCHECKER) -x $(HTMLBASE)/tut/
|
|
|
|
$(WEBCHECKER) -x $(HTMLBASE)/dist/
|
|
|
|
$(WEBCHECKER) -x $(HTMLBASE)/inst/
|
1998-08-12 17:08:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Release packaging targets:
|
1997-05-15 21:43:21 +00:00
|
|
|
|
2001-07-18 21:17:29 +00:00
|
|
|
paper-$(PAPER)/README: $(PSFILES) $(TOOLSDIR)/getpagecounts
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && ../$(TOOLSDIR)/getpagecounts >../$@
|
2001-02-19 19:19:26 +00:00
|
|
|
|
1999-01-08 15:49:45 +00:00
|
|
|
info-$(RELEASE).tgz: info
|
2001-07-17 16:53:19 +00:00
|
|
|
cd $(INFODIR) && tar cf - README python.dir python-*.info* \
|
1999-01-29 22:23:25 +00:00
|
|
|
| gzip -9 >$@
|
1998-02-19 16:01:04 +00:00
|
|
|
|
1999-07-27 16:30:59 +00:00
|
|
|
info-$(RELEASE).tar.bz2: info
|
2001-07-17 16:53:19 +00:00
|
|
|
cd $(INFODIR) && tar cf - README python.dir python-*.info* \
|
1999-07-27 16:30:59 +00:00
|
|
|
| bzip2 -9 >$@
|
|
|
|
|
1998-05-11 21:10:15 +00:00
|
|
|
latex-$(RELEASE).tgz:
|
2001-07-17 16:53:19 +00:00
|
|
|
$(PYTHON) $(TOOLSDIR)/mksourcepkg --gzip $(RELEASE)
|
1998-03-05 16:37:34 +00:00
|
|
|
|
1999-07-27 16:30:59 +00:00
|
|
|
latex-$(RELEASE).tar.bz2:
|
2001-07-17 16:53:19 +00:00
|
|
|
$(PYTHON) $(TOOLSDIR)/mksourcepkg --bzip2 $(RELEASE)
|
1999-07-27 16:30:59 +00:00
|
|
|
|
1999-07-23 16:11:36 +00:00
|
|
|
latex-$(RELEASE).zip:
|
2000-04-04 20:58:25 +00:00
|
|
|
rm -f $@
|
2001-07-17 16:53:19 +00:00
|
|
|
$(PYTHON) $(TOOLSDIR)/mksourcepkg --zip $(RELEASE)
|
1999-07-23 16:11:36 +00:00
|
|
|
|
2001-07-18 21:17:29 +00:00
|
|
|
pdf-$(PAPER)-$(RELEASE).tar: $(PDFFILES)
|
|
|
|
cd paper-$(PAPER) && tar cf ../$@ *.pdf
|
|
|
|
|
|
|
|
pdf-$(PAPER)-$(RELEASE).tgz: pdf-$(PAPER)-$(RELEASE).tar
|
|
|
|
gzip -9 <$? >$@
|
1998-02-12 22:33:50 +00:00
|
|
|
|
2001-07-18 21:17:29 +00:00
|
|
|
pdf-$(PAPER)-$(RELEASE).tar.bz2: pdf-$(PAPER)-$(RELEASE).tar
|
|
|
|
bzip2 -9 <$? >$@
|
1999-07-27 16:30:59 +00:00
|
|
|
|
1999-07-23 16:11:36 +00:00
|
|
|
pdf-$(PAPER)-$(RELEASE).zip: pdf
|
2000-04-04 20:58:25 +00:00
|
|
|
rm -f $@
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && zip -q -9 ../$@ *.pdf
|
1999-07-23 16:11:36 +00:00
|
|
|
|
2001-07-18 21:17:29 +00:00
|
|
|
postscript-$(PAPER)-$(RELEASE).tar: $(PSFILES) paper-$(PAPER)/README
|
|
|
|
cd paper-$(PAPER) && tar cf ../$@ *.ps README
|
1998-02-12 22:33:50 +00:00
|
|
|
|
2001-07-18 21:17:29 +00:00
|
|
|
postscript-$(PAPER)-$(RELEASE).tar.bz2: postscript-$(PAPER)-$(RELEASE).tar
|
|
|
|
bzip2 -9 <$< >$@
|
1999-07-27 16:30:59 +00:00
|
|
|
|
2001-07-18 21:17:29 +00:00
|
|
|
postscript-$(PAPER)-$(RELEASE).tgz: postscript-$(PAPER)-$(RELEASE).tar
|
|
|
|
gzip -9 <$< >$@
|
|
|
|
|
|
|
|
postscript-$(PAPER)-$(RELEASE).zip: $(PSFILES) paper-$(PAPER)/README
|
2000-04-04 20:58:25 +00:00
|
|
|
rm -f $@
|
2001-07-17 16:53:19 +00:00
|
|
|
cd paper-$(PAPER) && zip -q -9 ../$@ *.ps README
|
1999-07-23 16:11:36 +00:00
|
|
|
|
2001-07-17 23:35:46 +00:00
|
|
|
html-$(RELEASE).tar: html
|
2001-07-17 16:53:19 +00:00
|
|
|
cd $(HTMLDIR) && \
|
2001-07-17 23:35:46 +00:00
|
|
|
tar cf ../html-$(RELEASE).tar *.html */*.css */*.html \
|
|
|
|
*/*.gif */*.txt
|
1998-01-13 16:33:09 +00:00
|
|
|
|
2001-07-17 23:35:46 +00:00
|
|
|
html-$(RELEASE).tgz: html-$(RELEASE).tar
|
2001-07-18 21:17:29 +00:00
|
|
|
gzip -9 <$? >$@
|
2001-07-17 23:35:46 +00:00
|
|
|
|
|
|
|
html-$(RELEASE).tar.bz2: html-$(RELEASE).tar
|
2001-07-18 21:17:29 +00:00
|
|
|
bzip2 -9 <$? >$@
|
1999-07-27 16:30:59 +00:00
|
|
|
|
2001-07-18 21:17:29 +00:00
|
|
|
html-$(RELEASE).zip: $(ALLHTMLFILES)
|
2000-04-04 20:58:25 +00:00
|
|
|
rm -f $@
|
2001-07-17 16:53:19 +00:00
|
|
|
cd $(HTMLDIR) && \
|
|
|
|
zip -q -9 ../$@ *.html */*.css */*.html */*.gif */*.txt
|
1999-07-23 16:11:36 +00:00
|
|
|
|
1998-02-19 16:01:04 +00:00
|
|
|
# convenience targets:
|
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
tarhtml: html-$(RELEASE).tgz
|
1999-01-08 15:49:45 +00:00
|
|
|
tarinfo: info-$(RELEASE).tgz
|
1998-08-12 17:08:37 +00:00
|
|
|
tarps: postscript-$(PAPER)-$(RELEASE).tgz
|
|
|
|
tarpdf: pdf-$(PAPER)-$(RELEASE).tgz
|
|
|
|
tarlatex: latex-$(RELEASE).tgz
|
1998-02-19 16:01:04 +00:00
|
|
|
|
1999-08-02 20:20:14 +00:00
|
|
|
tarballs: tarpdf tarps tarhtml
|
1997-11-25 20:49:09 +00:00
|
|
|
|
1999-07-23 16:11:36 +00:00
|
|
|
ziphtml: html-$(RELEASE).zip
|
|
|
|
zipps: postscript-$(PAPER)-$(RELEASE).zip
|
|
|
|
zippdf: pdf-$(PAPER)-$(RELEASE).zip
|
|
|
|
ziplatex: latex-$(RELEASE).zip
|
|
|
|
|
2000-07-01 02:37:37 +00:00
|
|
|
zips: zippdf zipps ziphtml
|
1999-07-23 16:11:36 +00:00
|
|
|
|
1999-07-27 16:30:59 +00:00
|
|
|
bziphtml: html-$(RELEASE).tar.bz2
|
|
|
|
bzipinfo: info-$(RELEASE).tar.bz2
|
|
|
|
bzipps: postscript-$(PAPER)-$(RELEASE).tar.bz2
|
|
|
|
bzippdf: pdf-$(PAPER)-$(RELEASE).tar.bz2
|
|
|
|
bziplatex: latex-$(RELEASE).tar.bz2
|
|
|
|
|
1999-08-02 20:20:14 +00:00
|
|
|
bzips: bzippdf bzipps bziphtml
|
1999-07-27 16:30:59 +00:00
|
|
|
|
2001-04-13 18:00:23 +00:00
|
|
|
disthtml: tarhtml bziphtml ziphtml
|
|
|
|
distinfo: tarinfo bzipinfo
|
|
|
|
distps: tarps bzipps zipps
|
|
|
|
distpdf: tarpdf bzippdf zippdf
|
|
|
|
distlatex: tarlatex bziplatex ziplatex
|
|
|
|
|
2001-07-18 21:17:29 +00:00
|
|
|
paperdist: distpdf distps
|
|
|
|
edist: disthtml
|
|
|
|
|
|
|
|
distfiles: paperdist edist
|
2001-01-25 17:32:51 +00:00
|
|
|
$(TOOLSDIR)/mksourcepkg --all $(RELEASE)
|
1999-07-27 16:30:59 +00:00
|
|
|
|
1995-03-17 16:01:35 +00:00
|
|
|
|
|
|
|
# Housekeeping targets
|
|
|
|
|
1997-05-15 21:43:21 +00:00
|
|
|
# Remove temporary files; all except the following:
|
1998-03-03 22:02:19 +00:00
|
|
|
# - sources: .tex, .bib, .sty, *.cls
|
1998-02-12 22:33:50 +00:00
|
|
|
# - useful results: .dvi, .pdf, .ps, .texi, .info
|
1998-03-06 21:29:34 +00:00
|
|
|
clean:
|
2001-07-17 23:35:46 +00:00
|
|
|
rm -f html-$(RELEASE).tar
|
2001-07-17 16:53:19 +00:00
|
|
|
cd $(INFODIR) && $(MAKE) clean
|
1992-07-07 09:06:34 +00:00
|
|
|
|
1995-03-17 16:01:35 +00:00
|
|
|
# Remove temporaries as well as final products
|
1999-01-08 15:49:45 +00:00
|
|
|
clobber:
|
2001-07-17 23:35:46 +00:00
|
|
|
rm -f html-$(RELEASE).tar
|
1998-08-12 17:08:37 +00:00
|
|
|
rm -f html-$(RELEASE).tgz info-$(RELEASE).tgz
|
|
|
|
rm -f pdf-$(RELEASE).tgz postscript-$(RELEASE).tgz
|
1999-07-23 16:11:36 +00:00
|
|
|
rm -f latex-$(RELEASE).tgz html-$(RELEASE).zip
|
|
|
|
rm -f pdf-$(RELEASE).zip postscript-$(RELEASE).zip
|
2001-02-19 19:19:26 +00:00
|
|
|
rm -f $(DVIFILES) $(PSFILES) $(PDFFILES)
|
2001-07-17 16:53:19 +00:00
|
|
|
cd $(INFODIR) && $(MAKE) clobber
|
2001-02-19 19:19:26 +00:00
|
|
|
rm -rf html/index.html html/modindex.html html/acks.html
|
|
|
|
rm -rf html/api/ html/doc/ html/ext/ html/lib/ html/mac/
|
|
|
|
rm -rf html/ref/ html/tut/ html/inst/ html/dist/
|
|
|
|
|
|
|
|
realclean distclean: clobber
|