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.
|
|
|
|
#
|
1995-03-17 16:01:35 +00:00
|
|
|
# This is a bit of a mess. The main documents are:
|
1998-05-11 18:25:46 +00:00
|
|
|
# api -- Python/C API Reference Manual
|
|
|
|
# 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
|
1995-03-17 16:01:35 +00:00
|
|
|
#
|
1998-05-07 19:30:16 +00:00
|
|
|
# The latex sources for each of these documents are in subdirectories
|
|
|
|
# with the three-letter designations above as the directory names.
|
1996-10-22 20:00:02 +00:00
|
|
|
#
|
1998-05-11 18:25:46 +00:00
|
|
|
# The main target creates DVI and PostScript for the main each of the
|
1998-07-28 21:05:16 +00:00
|
|
|
# documents. You can also do "make lib" (etc.) to create the DVI and
|
|
|
|
# PostScript 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.
|
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
|
|
|
#
|
|
|
|
# html -- convert all documents from LaTeX to HTML
|
1998-07-28 21:05:16 +00:00
|
|
|
# pdf -- convert all documents from LaTeX to the
|
|
|
|
# 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
|
|
|
|
|
|
|
# Customizations -- you *may* have to edit these
|
|
|
|
|
1998-05-07 19:30:16 +00:00
|
|
|
# you could set this to a4
|
|
|
|
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
|
|
|
|
1998-08-11 19:38:00 +00:00
|
|
|
RELEASE=1.5.2a1
|
1998-01-13 16:33:09 +00:00
|
|
|
VERSION=1.5
|
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
# These must be declared phony since there
|
|
|
|
# are directories with matching names:
|
|
|
|
.PHONY: api ext lib mac ref tut
|
|
|
|
.PHONY: html info
|
1998-05-07 01:39:06 +00:00
|
|
|
|
|
|
|
|
1995-03-17 16:01:35 +00:00
|
|
|
# Main target
|
1998-07-24 15:42:12 +00:00
|
|
|
all: ps
|
1998-05-07 19:30:16 +00:00
|
|
|
|
1998-07-24 15:42:12 +00:00
|
|
|
dvi:
|
1998-08-12 17:08:37 +00:00
|
|
|
(cd paper-$(PAPER); $(MAKE) dvi)
|
1996-08-09 21:46:05 +00:00
|
|
|
|
1998-07-24 15:42:12 +00:00
|
|
|
pdf:
|
1998-08-12 17:08:37 +00:00
|
|
|
(cd paper-$(PAPER); $(MAKE) pdf)
|
1998-03-06 21:29:34 +00:00
|
|
|
|
1998-07-24 15:42:12 +00:00
|
|
|
ps:
|
1998-08-12 17:08:37 +00:00
|
|
|
(cd paper-$(PAPER); $(MAKE) ps)
|
1992-03-06 10:56:42 +00:00
|
|
|
|
1998-07-24 15:42:12 +00:00
|
|
|
world: ps pdf html tarballs
|
1998-05-11 18:25:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Targets for each document:
|
1998-08-12 17:08:37 +00:00
|
|
|
api api.ps:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) api.ps)
|
1998-05-11 18:25:46 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
ext ext.ps:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) ext.ps)
|
1998-05-11 18:25:46 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
lib lib.ps:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) lib.ps)
|
1998-05-11 18:25:46 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
mac mac.ps:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) mac.ps)
|
1998-05-11 18:25:46 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
ref ref.ps:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) ref.ps)
|
1998-07-24 13:58:27 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
tut tut.ps:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) tut.ps)
|
1998-05-11 18:25:46 +00:00
|
|
|
|
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
api.dvi:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) api.dvi)
|
1998-05-11 18:25:46 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
ext.dvi:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) ext.dvi)
|
1998-05-07 19:30:16 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
lib.dvi:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) lib.dvi)
|
1998-05-07 19:30:16 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
mac.dvi:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) mac.dvi)
|
|
|
|
|
|
|
|
ref.dvi:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) ref.dvi)
|
|
|
|
|
|
|
|
tut.dvi:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) tut.dvi)
|
|
|
|
|
|
|
|
|
|
|
|
api.pdf:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) api.pdf)
|
|
|
|
|
|
|
|
ext.pdf:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) ext.pdf)
|
|
|
|
|
|
|
|
lib.pdf:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) lib.pdf)
|
|
|
|
|
|
|
|
mac.pdf:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) mac.pdf)
|
|
|
|
|
|
|
|
ref.pdf:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) ref.pdf)
|
|
|
|
|
|
|
|
tut.pdf:
|
|
|
|
(cd paper-$(PAPER); $(MAKE) tut.pdf)
|
1998-05-07 19:30:16 +00:00
|
|
|
|
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:
|
|
|
|
(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
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
html:
|
|
|
|
(cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile)
|
1996-11-11 21:03:01 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
htmlapi:
|
|
|
|
(cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile api)
|
1994-08-01 12:22:53 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
htmlext:
|
|
|
|
(cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile ext)
|
1993-02-21 20:10:26 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
htmllib:
|
|
|
|
(cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile lib)
|
1998-05-06 19:51:39 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
htmlmac:
|
|
|
|
(cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile mac)
|
1998-05-15 17:02:10 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
htmlref:
|
|
|
|
(cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile ref)
|
|
|
|
|
|
|
|
htmltut:
|
|
|
|
(cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile tut)
|
1995-03-17 16:01:35 +00:00
|
|
|
|
1998-03-06 21:29:34 +00:00
|
|
|
|
|
|
|
# webchecker needs an extra flag to process the huge index from the libref
|
|
|
|
webcheck:
|
1998-08-12 17:08:37 +00:00
|
|
|
(cd $(HTMLDIR); $(MAKE) -f ../html/Makefile webcheck)
|
|
|
|
|
|
|
|
|
|
|
|
# Release packaging targets:
|
1997-05-15 21:43:21 +00:00
|
|
|
|
1998-05-11 21:10:15 +00:00
|
|
|
lib-info-$(RELEASE).tgz: info
|
1998-05-11 18:25:46 +00:00
|
|
|
(cd $(INFODIR); tar cf - python-???.info*) | gzip -9 >$@
|
1998-02-19 16:01:04 +00:00
|
|
|
|
1998-05-11 21:10:15 +00:00
|
|
|
latex-$(RELEASE).tgz:
|
1998-08-12 17:08:37 +00:00
|
|
|
$(TOOLSDIR)/mktarball.sh $(RELEASE)
|
1998-03-05 16:37:34 +00:00
|
|
|
|
1998-07-29 03:49:44 +00:00
|
|
|
pdf-$(PAPER)-$(RELEASE).tgz: pdf
|
1998-08-12 17:08:37 +00:00
|
|
|
(cd paper-$(PAPER); tar cf - *.pdf) | gzip -9 >$@
|
1998-02-12 22:33:50 +00:00
|
|
|
|
1998-07-29 03:49:44 +00:00
|
|
|
postscript-$(PAPER)-$(RELEASE).tgz: ps
|
1998-08-28 21:17:58 +00:00
|
|
|
(cd paper-$(PAPER); $(MAKE) README)
|
|
|
|
(cd paper-$(PAPER); tar cf - *.ps README) | gzip -9 >$@
|
1998-02-12 22:33:50 +00:00
|
|
|
|
1998-08-07 18:01:37 +00:00
|
|
|
html-$(RELEASE).tgz: $(HTMLDIR)/api/api.html $(HTMLDIR)/ext/ext.html \
|
|
|
|
$(HTMLDIR)/lib/lib.html $(HTMLDIR)/mac/mac.html \
|
|
|
|
$(HTMLDIR)/ref/ref.html $(HTMLDIR)/tut/tut.html
|
|
|
|
|
1998-05-11 21:10:15 +00:00
|
|
|
html-$(RELEASE).tgz:
|
|
|
|
(cd $(HTMLDIR); tar cf - index.html ???/???.css ???/*.html */*.gif) \
|
1998-05-11 18:53:07 +00:00
|
|
|
| gzip -9 >$@
|
1998-01-13 16:33:09 +00:00
|
|
|
|
1998-02-19 16:01:04 +00:00
|
|
|
# convenience targets:
|
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
tarhtml: html-$(RELEASE).tgz
|
|
|
|
tarinfo: lib-info-$(RELEASE).tgz
|
|
|
|
tarps: postscript-$(PAPER)-$(RELEASE).tgz
|
|
|
|
tarpdf: pdf-$(PAPER)-$(RELEASE).tgz
|
|
|
|
tarlatex: latex-$(RELEASE).tgz
|
1998-02-19 16:01:04 +00:00
|
|
|
|
1998-08-12 17:08:37 +00:00
|
|
|
tarballs: tarpdf tarps tarhtml tarlatex
|
1997-11-25 20:49:09 +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:
|
1998-08-12 17:08:37 +00:00
|
|
|
(cd paper-$(PAPER); $(MAKE) clean)
|
|
|
|
(cd $(HTMLDIR); $(MAKE) clean)
|
1998-05-11 21:10:15 +00:00
|
|
|
(cd $(INFODIR); $(MAKE) clean)
|
1992-07-07 09:06:34 +00:00
|
|
|
|
1997-08-22 18:18:54 +00:00
|
|
|
l2hclean:
|
1998-05-08 15:43:08 +00:00
|
|
|
(cd $(HTMLDIR); rm -rf api ext lib ref tut)
|
1997-08-22 18:18:54 +00:00
|
|
|
|
1995-03-17 16:01:35 +00:00
|
|
|
# Remove temporaries as well as final products
|
1998-08-12 17:08:37 +00:00
|
|
|
clobber: l2hclean
|
|
|
|
rm -f html-$(RELEASE).tgz info-$(RELEASE).tgz
|
|
|
|
rm -f pdf-$(RELEASE).tgz postscript-$(RELEASE).tgz
|
|
|
|
rm -f latex-$(RELEASE).tgz
|
|
|
|
(cd paper-$(PAPER); $(MAKE) clobber)
|
|
|
|
(cd $(HTMLDIR); $(MAKE) clobber)
|
1998-05-11 21:10:15 +00:00
|
|
|
(cd $(INFODIR); $(MAKE) clobber)
|
1998-02-22 19:47:13 +00:00
|
|
|
|
|
|
|
realclean: clobber
|
|
|
|
distclean: clobber
|