1995-03-17 12:01:35 -04:00
|
|
|
# Makefile for Python documentation
|
|
|
|
# ---------------------------------
|
|
|
|
#
|
1995-03-20 09:00:32 -04:00
|
|
|
# See also the README file.
|
|
|
|
#
|
1999-04-22 11:16:14 -03:00
|
|
|
# This is a bit of a mess. The documents are identified by short names:
|
1998-05-11 15:25:46 -03:00
|
|
|
# api -- Python/C API Reference Manual
|
1999-04-22 11:16:14 -03:00
|
|
|
# doc -- Documenting Python
|
1998-05-11 15:25:46 -03:00
|
|
|
# ext -- Extending and Embedding the Python Interpreter
|
|
|
|
# lib -- Library Reference Manual
|
1998-07-24 12:42:12 -03:00
|
|
|
# mac -- Macintosh Library Modules
|
1998-05-07 16:30:16 -03:00
|
|
|
# ref -- Python Reference Manual
|
1998-05-11 15:25:46 -03:00
|
|
|
# tut -- Python Tutorial
|
2000-04-28 13:53:36 -03:00
|
|
|
# inst -- Installing Python Modules
|
|
|
|
# dist -- Distributing Python Modules
|
1995-03-17 12:01:35 -04:00
|
|
|
#
|
2001-01-22 16:47:26 -04:00
|
|
|
# The LaTeX sources for each of these documents are in subdirectories
|
1998-05-07 16:30:16 -03:00
|
|
|
# with the three-letter designations above as the directory names.
|
1996-10-22 17:00:02 -03:00
|
|
|
#
|
2001-01-22 16:47:26 -04: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 12:01:35 -04:00
|
|
|
#
|
1998-05-07 16:30:16 -03: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 18:05:16 -03:00
|
|
|
# number of environments for formatting function and data definitions.
|
2001-01-22 16:47:26 -04: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 12:01:35 -04:00
|
|
|
#
|
1998-05-11 15:25:46 -03:00
|
|
|
# Everything is processed by LaTeX. See the file `README' for more
|
|
|
|
# information on the tools needed for processing.
|
1995-03-17 12:01:35 -04: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 12:42:12 -03:00
|
|
|
#
|
2001-01-22 16:47:26 -04:00
|
|
|
# ps -- convert all documents from LaTeX to PostScript
|
|
|
|
# pdf -- convert all documents from LaTeX to the
|
1998-07-28 18:05:16 -03:00
|
|
|
# Portable Document Format
|
1998-07-24 12:42:12 -03:00
|
|
|
#
|
1998-07-28 18:05:16 -03:00
|
|
|
# See the README file for more information on these targets.
|
1998-05-11 15:25:46 -03: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 12:42:12 -03:00
|
|
|
# the html/ directory. If you want to fix the GNU info process, look
|
2003-07-29 23:55:28 -03:00
|
|
|
# in the info/ directory; please send patches to docs@python.org.
|
1995-03-20 09:00:32 -04:00
|
|
|
|
2000-08-29 13:30:21 -03:00
|
|
|
# This Makefile only includes information on how to perform builds; for
|
|
|
|
# dependency information, see Makefile.deps.
|
|
|
|
|
2001-01-22 16:47:26 -04:00
|
|
|
# Customization -- you *may* have to edit this
|
1995-03-20 09:00:32 -04:00
|
|
|
|
2001-01-22 16:47:26 -04:00
|
|
|
# You could set this to a4:
|
1998-05-07 16:30:16 -03:00
|
|
|
PAPER=letter
|
|
|
|
|
1998-08-12 14:08:37 -03:00
|
|
|
# Ideally, you shouldn't need to edit beyond this point
|
1995-03-17 12:01:35 -04:00
|
|
|
|
1998-05-08 12:43:08 -03:00
|
|
|
INFODIR= info
|
1998-08-12 14:08:37 -03:00
|
|
|
TOOLSDIR= tools
|
1992-07-07 06:06:34 -03:00
|
|
|
|
1999-07-12 13:52:50 -03:00
|
|
|
# This is the *documentation* release, and is used to construct the file
|
|
|
|
# names of the downloadable tarballs.
|
2003-07-30 15:43:28 -03:00
|
|
|
RELEASE=2.4a0
|
1999-07-12 13:52:50 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
PYTHON= python
|
|
|
|
DVIPS= dvips -N0 -t $(PAPER)
|
|
|
|
|
2003-09-27 02:52:16 -03:00
|
|
|
# This is ugly! The issue here is that there are two different levels
|
|
|
|
# in the directory tree at which we execute mkhowto, so we can't
|
|
|
|
# define it just once using a relative path (at least not with the
|
|
|
|
# current implementation and Makefile structure). We use the GNUish
|
|
|
|
# $(shell) function here to work around that restriction by
|
2003-09-27 04:37:09 -03:00
|
|
|
# identifying mkhowto and the commontex/ directory using absolute paths.
|
2003-09-27 02:52:16 -03:00
|
|
|
#
|
2003-09-27 04:37:09 -03:00
|
|
|
PWD=$(shell pwd)
|
|
|
|
|
|
|
|
# (The trailing colon in the value is needed; TeX places it's default
|
|
|
|
# set of paths at the location of the empty string in the path list.)
|
|
|
|
TEXINPUTS=$(PWD)/commontex:
|
|
|
|
|
|
|
|
# The mkhowto script can be run from the checkout using the first
|
|
|
|
# version of this variable definition, or from a preferred version
|
|
|
|
# using the second version. The standard documentation is typically
|
|
|
|
# built using the second flavor, where the preferred version is from
|
|
|
|
# the Python CVS trunk.
|
|
|
|
#MKHOWTO= TEXINPUTS=$(TEXINPUTS) $(PYTHON) $(PWD)/tools/mkhowto
|
|
|
|
MKHOWTO= TEXINPUTS=$(TEXINPUTS) mkhowto
|
2003-09-25 12:25:37 -03:00
|
|
|
|
|
|
|
MKDVI= $(MKHOWTO) --paper=$(PAPER) --dvi
|
|
|
|
MKHTML= $(MKHOWTO) --html --about html/stdabout.dat \
|
2002-10-30 13:07:02 -04:00
|
|
|
--iconserver ../icons --favicon ../icons/pyfav.gif \
|
2001-02-19 15:19:26 -04:00
|
|
|
--address $(PYTHONDOCS) --up-link ../index.html \
|
|
|
|
--up-title "Python Documentation Index" \
|
2001-10-30 12:28:46 -04:00
|
|
|
--global-module-index "../modindex.html" --dvips-safe
|
2003-09-25 12:25:37 -03:00
|
|
|
MKISILOHTML=$(MKHOWTO) --html --about html/stdabout.dat \
|
2002-10-01 12:20:20 -03:00
|
|
|
--iconserver ../icons \
|
2001-10-30 12:28:46 -04:00
|
|
|
--l2h-init perl/isilo.perl --numeric --split 1 \
|
|
|
|
--dvips-safe
|
2001-10-19 18:12:57 -03:00
|
|
|
MKISILO= iSilo386 -U -y -rCR -d0
|
2003-09-25 12:25:37 -03:00
|
|
|
MKPDF= $(MKHOWTO) --paper=$(PAPER) --pdf
|
|
|
|
MKPS= $(MKHOWTO) --paper=$(PAPER) --ps
|
2001-02-19 15:19:26 -04:00
|
|
|
|
|
|
|
BUILDINDEX=$(TOOLSDIR)/buildindex.py
|
|
|
|
|
2001-07-17 13:53:19 -03:00
|
|
|
PYTHONDOCS="See <i><a href=\"about.html\">About this document...</a></i> for information on suggesting changes."
|
2001-02-19 15:19:26 -04:00
|
|
|
HTMLBASE= file:`pwd`
|
|
|
|
|
2002-05-03 01:50:51 -03:00
|
|
|
# The emacs binary used to build the info docs. GNU Emacs 21 is required.
|
|
|
|
EMACS= emacs
|
|
|
|
|
2002-03-26 15:53:56 -04:00
|
|
|
# The end of this should reflect the major/minor version numbers of
|
|
|
|
# the release:
|
2003-07-30 16:14:54 -03:00
|
|
|
WHATSNEW=whatsnew24
|
2002-03-26 15:18:18 -04:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
# 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 \
|
2002-03-26 15:18:18 -04:00
|
|
|
paper-$(PAPER)/dist.dvi paper-$(PAPER)/$(WHATSNEW).dvi
|
2001-02-19 15:19:26 -04:00
|
|
|
|
|
|
|
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 \
|
2002-03-26 15:18:18 -04:00
|
|
|
paper-$(PAPER)/dist.pdf paper-$(PAPER)/$(WHATSNEW).pdf
|
2001-02-19 15:19:26 -04:00
|
|
|
|
|
|
|
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 \
|
2002-03-26 15:18:18 -04:00
|
|
|
paper-$(PAPER)/dist.ps paper-$(PAPER)/$(WHATSNEW).ps
|
2001-02-19 15:19:26 -04:00
|
|
|
|
|
|
|
DVIFILES= $(MANDVIFILES) $(HOWTODVIFILES)
|
|
|
|
PDFFILES= $(MANPDFFILES) $(HOWTOPDFFILES)
|
|
|
|
PSFILES= $(MANPSFILES) $(HOWTOPSFILES)
|
|
|
|
|
2001-10-25 12:12:31 -03:00
|
|
|
HTMLCSSFILES=html/api/api.css \
|
|
|
|
html/doc/doc.css \
|
|
|
|
html/ext/ext.css \
|
|
|
|
html/lib/lib.css \
|
|
|
|
html/mac/mac.css \
|
|
|
|
html/ref/ref.css \
|
|
|
|
html/tut/tut.css \
|
|
|
|
html/inst/inst.css \
|
|
|
|
html/dist/dist.css
|
|
|
|
|
|
|
|
ISILOCSSFILES=isilo/api/api.css \
|
|
|
|
isilo/doc/doc.css \
|
|
|
|
isilo/ext/ext.css \
|
|
|
|
isilo/lib/lib.css \
|
|
|
|
isilo/mac/mac.css \
|
|
|
|
isilo/ref/ref.css \
|
|
|
|
isilo/tut/tut.css \
|
|
|
|
isilo/inst/inst.css \
|
|
|
|
isilo/dist/dist.css
|
|
|
|
|
|
|
|
ALLCSSFILES=$(HTMLCSSFILES) $(ISILOCSSFILES)
|
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
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 \
|
2002-03-26 15:18:18 -04:00
|
|
|
html/dist/dist.html \
|
|
|
|
html/whatsnew/$(WHATSNEW).html
|
2001-02-19 15:19:26 -04:00
|
|
|
|
2001-07-18 18:17:29 -03:00
|
|
|
ALLHTMLFILES=$(INDEXFILES) html/index.html html/modindex.html html/acks.html
|
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
COMMONPERL= perl/manual.perl perl/python.perl perl/l2hinit.perl
|
|
|
|
|
2001-10-29 13:40:40 -04:00
|
|
|
ANNOAPI=api/refcounts.dat tools/anno-api.py
|
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
include Makefile.deps
|
1998-01-13 12:33:09 -04:00
|
|
|
|
1998-08-12 14:08:37 -03:00
|
|
|
# These must be declared phony since there
|
|
|
|
# are directories with matching names:
|
2000-04-28 13:53:36 -03:00
|
|
|
.PHONY: api doc ext lib mac ref tut inst dist
|
2001-10-19 18:12:57 -03:00
|
|
|
.PHONY: html info isilo
|
1998-05-06 22:39:06 -03:00
|
|
|
|
|
|
|
|
1995-03-17 12:01:35 -04:00
|
|
|
# Main target
|
2002-05-25 17:28:46 -03:00
|
|
|
default: html
|
|
|
|
all: html dvi ps pdf isilo
|
1998-05-07 16:30:16 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
dvi: $(DVIFILES)
|
|
|
|
pdf: $(PDFFILES)
|
|
|
|
ps: $(PSFILES)
|
1996-08-09 18:46:05 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
world: ps pdf html distfiles
|
1998-03-06 17:29:34 -04:00
|
|
|
|
1992-03-06 06:56:42 -04:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
# Rules to build PostScript and PDF formats
|
|
|
|
.SUFFIXES: .dvi .ps
|
1998-05-11 15:25:46 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
.dvi.ps:
|
|
|
|
$(DVIPS) -o $@ $<
|
1998-05-11 15:25:46 -03:00
|
|
|
|
1998-07-24 10:58:27 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
# Targets for each document:
|
|
|
|
# Python/C API Reference Manual
|
2001-10-29 13:40:40 -04:00
|
|
|
paper-$(PAPER)/api.dvi: $(ANNOAPIFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) api.tex
|
1999-03-16 12:11:27 -04:00
|
|
|
|
2001-10-29 13:40:40 -04:00
|
|
|
paper-$(PAPER)/api.pdf: $(ANNOAPIFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) api.tex
|
1998-05-07 16:30:16 -03:00
|
|
|
|
2002-10-04 16:23:06 -03:00
|
|
|
paper-$(PAPER)/api.tex: api/api.tex
|
|
|
|
cp api/api.tex $@
|
1998-05-07 16:30:16 -03:00
|
|
|
|
2001-10-29 13:40:40 -04:00
|
|
|
paper-$(PAPER)/abstract.tex: api/abstract.tex $(ANNOAPI)
|
|
|
|
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/abstract.tex
|
|
|
|
|
|
|
|
paper-$(PAPER)/concrete.tex: api/concrete.tex $(ANNOAPI)
|
|
|
|
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/concrete.tex
|
|
|
|
|
|
|
|
paper-$(PAPER)/exceptions.tex: api/exceptions.tex $(ANNOAPI)
|
|
|
|
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/exceptions.tex
|
|
|
|
|
|
|
|
paper-$(PAPER)/init.tex: api/init.tex $(ANNOAPI)
|
|
|
|
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/init.tex
|
|
|
|
|
2002-10-04 16:23:06 -03:00
|
|
|
paper-$(PAPER)/intro.tex: api/intro.tex
|
|
|
|
cp api/intro.tex $@
|
2001-10-29 13:40:40 -04:00
|
|
|
|
|
|
|
paper-$(PAPER)/memory.tex: api/memory.tex $(ANNOAPI)
|
|
|
|
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/memory.tex
|
|
|
|
|
|
|
|
paper-$(PAPER)/newtypes.tex: api/newtypes.tex $(ANNOAPI)
|
|
|
|
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/newtypes.tex
|
|
|
|
|
|
|
|
paper-$(PAPER)/refcounting.tex: api/refcounting.tex $(ANNOAPI)
|
|
|
|
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/refcounting.tex
|
|
|
|
|
|
|
|
paper-$(PAPER)/utilities.tex: api/utilities.tex $(ANNOAPI)
|
|
|
|
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/utilities.tex
|
|
|
|
|
|
|
|
paper-$(PAPER)/veryhigh.tex: api/veryhigh.tex $(ANNOAPI)
|
|
|
|
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/veryhigh.tex
|
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
# Distributing Python Modules
|
|
|
|
paper-$(PAPER)/dist.dvi: $(DISTFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../dist/dist.tex
|
1998-08-12 14:08:37 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
paper-$(PAPER)/dist.pdf: $(DISTFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../dist/dist.tex
|
1998-08-12 14:08:37 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
# Documenting Python
|
|
|
|
paper-$(PAPER)/doc.dvi: $(DOCFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../doc/doc.tex
|
1998-08-12 14:08:37 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
paper-$(PAPER)/doc.pdf: $(DOCFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../doc/doc.tex
|
2000-04-28 13:53:36 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
# Extending and Embedding the Python Interpreter
|
|
|
|
paper-$(PAPER)/ext.dvi: $(EXTFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../ext/ext.tex
|
2000-04-28 13:53:36 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
paper-$(PAPER)/ext.pdf: $(EXTFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../ext/ext.tex
|
1998-08-12 14:08:37 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
# Installing Python Modules
|
|
|
|
paper-$(PAPER)/inst.dvi: $(INSTFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../inst/inst.tex
|
1998-08-12 14:08:37 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
paper-$(PAPER)/inst.pdf: $(INSTFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../inst/inst.tex
|
1999-03-16 12:11:27 -04:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
# Python Library Reference
|
|
|
|
paper-$(PAPER)/lib.dvi: $(LIBFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../lib/lib.tex
|
1998-08-12 14:08:37 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
paper-$(PAPER)/lib.pdf: $(LIBFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../lib/lib.tex
|
1998-08-12 14:08:37 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
# Macintosh Library Modules
|
|
|
|
paper-$(PAPER)/mac.dvi: $(MACFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../mac/mac.tex
|
1998-08-12 14:08:37 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
paper-$(PAPER)/mac.pdf: $(MACFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../mac/mac.tex
|
1998-08-12 14:08:37 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
# Python Reference Manual
|
|
|
|
paper-$(PAPER)/ref.dvi: $(REFFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../ref/ref.tex
|
1998-05-07 16:30:16 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
paper-$(PAPER)/ref.pdf: $(REFFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../ref/ref.tex
|
2000-04-28 13:53:36 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
# Python Tutorial
|
|
|
|
paper-$(PAPER)/tut.dvi: $(TUTFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../tut/tut.tex
|
2000-04-28 13:53:36 -03:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
paper-$(PAPER)/tut.pdf: $(TUTFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../tut/tut.tex
|
1995-03-17 12:01:35 -04:00
|
|
|
|
2002-03-26 15:18:18 -04:00
|
|
|
# What's New in Python X.Y
|
2002-11-26 18:13:41 -04:00
|
|
|
paper-$(PAPER)/$(WHATSNEW).dvi: whatsnew/$(WHATSNEW).tex
|
2002-03-26 15:18:18 -04:00
|
|
|
cd paper-$(PAPER) && $(MKDVI) ../whatsnew/$(WHATSNEW).tex
|
|
|
|
|
2002-11-26 18:13:41 -04:00
|
|
|
paper-$(PAPER)/$(WHATSNEW).pdf: whatsnew/$(WHATSNEW).tex
|
2002-03-26 15:18:18 -04:00
|
|
|
cd paper-$(PAPER) && $(MKPDF) ../whatsnew/$(WHATSNEW).tex
|
|
|
|
|
1995-03-17 12:01:35 -04:00
|
|
|
# The remaining part of the Makefile is concerned with various
|
1995-03-20 09:00:32 -04:00
|
|
|
# conversions, as described above. See also the README file.
|
1995-03-17 12:01:35 -04:00
|
|
|
|
1998-05-08 12:43:08 -03:00
|
|
|
info:
|
2003-07-16 01:01:04 -03:00
|
|
|
cd $(INFODIR) && $(MAKE) EMACS=$(EMACS) WHATSNEW=$(WHATSNEW)
|
1998-02-22 15:47:13 -04:00
|
|
|
|
1995-03-20 09:00:32 -04: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 12:01:35 -04:00
|
|
|
# <URL:http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html>.
|
1996-11-11 17:03:01 -04:00
|
|
|
|
1997-12-29 16:01:55 -04: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 16:20:43 -03:00
|
|
|
# perl/l2hinit.perl to use a different location for the icons directory.
|
1996-11-11 17:03:01 -04:00
|
|
|
|
1998-08-12 14:08:37 -03: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-06 22:39:06 -03:00
|
|
|
|
2001-10-25 12:12:31 -03:00
|
|
|
$(ALLCSSFILES): html/style.css
|
|
|
|
cp $< $@
|
|
|
|
|
2003-05-22 12:28:55 -03:00
|
|
|
$(INDEXFILES): $(COMMONPERL) html/stdabout.dat tools/node2label.pl
|
1996-11-11 17:03:01 -04:00
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
html/acks.html: ACKS $(TOOLSDIR)/support.py $(TOOLSDIR)/mkackshtml
|
2001-07-17 13:53:19 -03:00
|
|
|
$(PYTHON) $(TOOLSDIR)/mkackshtml --address $(PYTHONDOCS) \
|
2002-10-30 13:07:02 -04:00
|
|
|
--favicon icons/pyfav.gif \
|
2001-02-22 19:06:21 -04:00
|
|
|
--output html/acks.html <ACKS
|
1994-08-01 09:22:53 -03:00
|
|
|
|
2001-07-17 13:53:19 -03: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.
|
|
|
|
|
2003-09-27 04:48:25 -03:00
|
|
|
BOILERPLATE=commontex/boilerplate.tex
|
2001-07-17 13:53:19 -03:00
|
|
|
html/index.html: $(INDEXFILES)
|
|
|
|
html/index.html: html/index.html.in $(BOILERPLATE) tools/rewrite.py
|
2002-03-26 16:29:11 -04:00
|
|
|
$(PYTHON) tools/rewrite.py $(BOILERPLATE) \
|
|
|
|
RELEASE=$(RELEASE) WHATSNEW=$(WHATSNEW) \
|
2001-07-17 13:53:19 -03:00
|
|
|
<$< >$@
|
|
|
|
|
2001-02-19 15:19:26 -04:00
|
|
|
html/modindex.html: $(TOOLSDIR)/support.py $(TOOLSDIR)/mkmodindex
|
|
|
|
html/modindex.html: html/lib/lib.html html/mac/mac.html
|
2001-07-17 13:53:19 -03:00
|
|
|
cd html && \
|
|
|
|
$(PYTHON) ../$(TOOLSDIR)/mkmodindex --columns 4 \
|
|
|
|
--output modindex.html --address $(PYTHONDOCS) \
|
2002-10-30 13:07:02 -04:00
|
|
|
--favicon icons/pyfav.gif \
|
2001-07-17 13:53:19 -03:00
|
|
|
lib/modindex.html mac/modindex.html
|
1999-03-18 15:08:47 -04:00
|
|
|
|
2001-10-25 12:12:31 -03:00
|
|
|
html: $(ALLHTMLFILES) $(HTMLCSSFILES)
|
1993-02-21 16:10:26 -04:00
|
|
|
|
2001-10-25 12:12:31 -03:00
|
|
|
api: html/api/api.html html/api/api.css
|
2002-05-23 16:41:25 -03:00
|
|
|
html/api/api.html: $(APIFILES) api/refcounts.dat
|
2001-02-19 15:19:26 -04:00
|
|
|
$(MKHTML) --dir html/api api/api.tex
|
1998-05-06 16:51:39 -03:00
|
|
|
|
2001-10-25 12:12:31 -03:00
|
|
|
doc: html/doc/doc.html html/doc/doc.css
|
|
|
|
html/doc/doc.html: $(DOCFILES)
|
2001-02-19 15:19:26 -04:00
|
|
|
$(MKHTML) --dir html/doc doc/doc.tex
|
1998-05-15 14:02:10 -03:00
|
|
|
|
2001-10-25 12:12:31 -03:00
|
|
|
ext: html/ext/ext.html html/ext/ext.css
|
|
|
|
html/ext/ext.html: $(EXTFILES)
|
2001-02-19 15:19:26 -04:00
|
|
|
$(MKHTML) --dir html/ext ext/ext.tex
|
1998-08-12 14:08:37 -03:00
|
|
|
|
2001-10-25 12:12:31 -03:00
|
|
|
lib: html/lib/lib.html html/lib/lib.css
|
|
|
|
html/lib/lib.html: $(LIBFILES)
|
2001-02-19 15:19:26 -04:00
|
|
|
$(MKHTML) --dir html/lib lib/lib.tex
|
1995-03-17 12:01:35 -04:00
|
|
|
|
2001-10-25 12:12:31 -03:00
|
|
|
mac: html/mac/mac.html html/mac/mac.css
|
|
|
|
html/mac/mac.html: $(MACFILES)
|
2001-02-19 15:19:26 -04:00
|
|
|
$(MKHTML) --dir html/mac mac/mac.tex
|
2000-04-28 13:53:36 -03:00
|
|
|
|
2001-10-25 12:12:31 -03:00
|
|
|
ref: html/ref/ref.html html/ref/ref.css
|
|
|
|
html/ref/ref.html: $(REFFILES)
|
2001-02-19 15:19:26 -04:00
|
|
|
$(MKHTML) --dir html/ref ref/ref.tex
|
2000-04-28 13:53:36 -03:00
|
|
|
|
2001-10-25 12:12:31 -03:00
|
|
|
tut: html/tut/tut.html html/tut/tut.css
|
|
|
|
html/tut/tut.html: $(TUTFILES)
|
2001-02-19 15:19:26 -04:00
|
|
|
$(MKHTML) --dir html/tut --numeric --split 3 tut/tut.tex
|
|
|
|
|
2001-10-25 12:12:31 -03:00
|
|
|
inst: html/inst/inst.html html/inst/inst.css
|
|
|
|
html/inst/inst.html: $(INSTFILES) perl/distutils.perl
|
2001-03-01 14:38:56 -04:00
|
|
|
$(MKHTML) --dir html/inst --split 4 inst/inst.tex
|
2001-02-19 15:19:26 -04:00
|
|
|
|
2001-10-25 12:12:31 -03:00
|
|
|
dist: html/dist/dist.html html/dist/dist.css
|
|
|
|
html/dist/dist.html: $(DISTFILES) perl/distutils.perl
|
2001-03-01 14:38:56 -04:00
|
|
|
$(MKHTML) --dir html/dist --split 4 dist/dist.tex
|
2000-04-07 13:27:15 -03:00
|
|
|
|
2002-03-26 15:18:18 -04:00
|
|
|
whatsnew: html/whatsnew/$(WHATSNEW).html
|
|
|
|
html/whatsnew/$(WHATSNEW).html: whatsnew/$(WHATSNEW).tex
|
|
|
|
$(MKHTML) --dir html/whatsnew --split 4 whatsnew/$(WHATSNEW).tex
|
|
|
|
|
1998-03-06 17:29:34 -04:00
|
|
|
|
2001-10-19 18:12:57 -03:00
|
|
|
# The iSilo format is used by the iSilo document reader for PalmOS devices.
|
|
|
|
|
|
|
|
ISILOINDEXFILES=isilo/api/api.html \
|
|
|
|
isilo/doc/doc.html \
|
|
|
|
isilo/ext/ext.html \
|
|
|
|
isilo/lib/lib.html \
|
|
|
|
isilo/mac/mac.html \
|
|
|
|
isilo/ref/ref.html \
|
|
|
|
isilo/tut/tut.html \
|
|
|
|
isilo/inst/inst.html \
|
2002-03-26 15:53:56 -04:00
|
|
|
isilo/dist/dist.html \
|
|
|
|
isilo/whatsnew/$(WHATSNEW).html
|
2001-10-19 18:12:57 -03:00
|
|
|
|
2003-05-22 12:28:55 -03:00
|
|
|
$(ISILOINDEXFILES): $(COMMONPERL) html/stdabout.dat perl/isilo.perl
|
2001-10-19 18:12:57 -03:00
|
|
|
|
2002-08-09 17:20:50 -03:00
|
|
|
isilo: isilo/python-api.pdb \
|
|
|
|
isilo/python-doc.pdb \
|
|
|
|
isilo/python-ext.pdb \
|
|
|
|
isilo/python-lib.pdb \
|
|
|
|
isilo/python-mac.pdb \
|
|
|
|
isilo/python-ref.pdb \
|
|
|
|
isilo/python-tut.pdb \
|
|
|
|
isilo/python-dist.pdb \
|
|
|
|
isilo/python-inst.pdb \
|
|
|
|
isilo/python-whatsnew.pdb
|
|
|
|
|
|
|
|
isilo/python-api.pdb: isilo/api/api.html isilo/api/api.css
|
2001-10-19 18:12:57 -03:00
|
|
|
$(MKISILO) "-iPython/C API Reference Manual" \
|
|
|
|
isilo/api/api.html $@
|
|
|
|
|
2002-08-09 17:20:50 -03:00
|
|
|
isilo/python-doc.pdb: isilo/doc/doc.html isilo/doc/doc.css
|
2001-10-19 18:12:57 -03:00
|
|
|
$(MKISILO) "-iDocumenting Python" \
|
|
|
|
isilo/doc/doc.html $@
|
|
|
|
|
2002-08-09 17:20:50 -03:00
|
|
|
isilo/python-ext.pdb: isilo/ext/ext.html isilo/ext/ext.css
|
2001-10-19 18:12:57 -03:00
|
|
|
$(MKISILO) "-iExtending & Embedding Python" \
|
|
|
|
isilo/ext/ext.html $@
|
|
|
|
|
2002-08-09 17:20:50 -03:00
|
|
|
isilo/python-lib.pdb: isilo/lib/lib.html isilo/lib/lib.css
|
2001-10-19 18:12:57 -03:00
|
|
|
$(MKISILO) "-iPython Library Reference" \
|
|
|
|
isilo/lib/lib.html $@
|
|
|
|
|
2002-08-09 17:20:50 -03:00
|
|
|
isilo/python-mac.pdb: isilo/mac/mac.html isilo/mac/mac.css
|
2001-10-19 18:12:57 -03:00
|
|
|
$(MKISILO) "-iPython/C API Reference Manual" \
|
|
|
|
isilo/mac/mac.html $@
|
|
|
|
|
2002-08-09 17:20:50 -03:00
|
|
|
isilo/python-ref.pdb: isilo/ref/ref.html isilo/ref/ref.css
|
2001-10-19 18:12:57 -03:00
|
|
|
$(MKISILO) "-iPython Reference Manual" \
|
|
|
|
isilo/ref/ref.html $@
|
|
|
|
|
2002-08-09 17:20:50 -03:00
|
|
|
isilo/python-tut.pdb: isilo/tut/tut.html isilo/tut/tut.css
|
2001-10-19 18:12:57 -03:00
|
|
|
$(MKISILO) "-iPython Tutorial" \
|
|
|
|
isilo/tut/tut.html $@
|
|
|
|
|
2002-08-09 17:20:50 -03:00
|
|
|
isilo/python-dist.pdb: isilo/dist/dist.html isilo/dist/dist.css
|
2001-10-19 18:12:57 -03:00
|
|
|
$(MKISILO) "-iDistributing Python Modules" \
|
|
|
|
isilo/dist/dist.html $@
|
|
|
|
|
2002-08-09 17:20:50 -03:00
|
|
|
isilo/python-inst.pdb: isilo/inst/inst.html isilo/inst/inst.css
|
2001-10-19 18:12:57 -03:00
|
|
|
$(MKISILO) "-iInstalling Python Modules" \
|
|
|
|
isilo/inst/inst.html $@
|
|
|
|
|
2002-08-09 17:20:50 -03:00
|
|
|
isilo/python-whatsnew.pdb: isilo/whatsnew/$(WHATSNEW).html isilo/whatsnew/$(WHATSNEW).css
|
2002-03-26 15:53:56 -04:00
|
|
|
$(MKISILO) "-iWhat's New in Python X.Y" \
|
|
|
|
isilo/whatsnew/$(WHATSNEW).html $@
|
|
|
|
|
2002-05-23 16:41:25 -03:00
|
|
|
isilo/api/api.html: $(APIFILES) api/refcounts.dat
|
2001-10-19 18:12:57 -03:00
|
|
|
$(MKISILOHTML) --dir isilo/api api/api.tex
|
|
|
|
|
|
|
|
isilo/doc/doc.html: $(DOCFILES)
|
|
|
|
$(MKISILOHTML) --dir isilo/doc doc/doc.tex
|
|
|
|
|
|
|
|
isilo/ext/ext.html: $(EXTFILES)
|
|
|
|
$(MKISILOHTML) --dir isilo/ext ext/ext.tex
|
|
|
|
|
|
|
|
isilo/lib/lib.html: $(LIBFILES)
|
|
|
|
$(MKISILOHTML) --dir isilo/lib lib/lib.tex
|
|
|
|
|
|
|
|
isilo/mac/mac.html: $(MACFILES)
|
|
|
|
$(MKISILOHTML) --dir isilo/mac mac/mac.tex
|
|
|
|
|
|
|
|
isilo/ref/ref.html: $(REFFILES)
|
|
|
|
$(MKISILOHTML) --dir isilo/ref ref/ref.tex
|
|
|
|
|
|
|
|
isilo/tut/tut.html: $(TUTFILES)
|
|
|
|
$(MKISILOHTML) --dir isilo/tut tut/tut.tex
|
|
|
|
|
|
|
|
isilo/inst/inst.html: $(INSTFILES) perl/distutils.perl
|
|
|
|
$(MKISILOHTML) --dir isilo/inst inst/inst.tex
|
|
|
|
|
|
|
|
isilo/dist/dist.html: $(DISTFILES) perl/distutils.perl
|
|
|
|
$(MKISILOHTML) --dir isilo/dist dist/dist.tex
|
|
|
|
|
2002-03-26 15:18:18 -04:00
|
|
|
isilo/whatsnew/$(WHATSNEW).html: whatsnew/$(WHATSNEW).tex
|
|
|
|
$(MKISILOHTML) --dir isilo/whatsnew whatsnew/$(WHATSNEW).tex
|
|
|
|
|
2001-10-19 18:12:57 -03:00
|
|
|
# These are useful if you need to transport the iSilo-ready HTML to
|
|
|
|
# another machine to perform the conversion:
|
|
|
|
|
|
|
|
isilozip: isilo-html-$(RELEASE).zip
|
|
|
|
|
|
|
|
isilo-html-$(RELEASE).zip: $(ISILOINDEXFILES)
|
|
|
|
rm -f $@
|
|
|
|
cd isilo && \
|
|
|
|
zip -q -9 ../$@ */*.css */*.html */*.txt
|
|
|
|
|
|
|
|
|
1998-03-06 17:29:34 -04:00
|
|
|
# webchecker needs an extra flag to process the huge index from the libref
|
2001-02-19 15:19:26 -04:00
|
|
|
WEBCHECKER=$(PYTHON) ../Tools/webchecker/webchecker.py
|
|
|
|
HTMLBASE= file:`pwd`/html
|
|
|
|
|
2001-07-18 18:17:29 -03:00
|
|
|
webcheck: $(ALLHTMLFILES)
|
2001-02-19 15:19:26 -04: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/
|
2002-03-26 15:53:56 -04:00
|
|
|
$(WEBCHECKER) $(HTMLBASE)/whatsnew/
|
2001-02-19 15:19:26 -04:00
|
|
|
|
2001-07-18 18:17:29 -03:00
|
|
|
fastwebcheck: $(ALLHTMLFILES)
|
2001-02-19 15:19:26 -04: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/
|
2002-03-26 15:53:56 -04:00
|
|
|
$(WEBCHECKER) -x $(HTMLBASE)/whatsnew/
|
1998-08-12 14:08:37 -03:00
|
|
|
|
|
|
|
|
|
|
|
# Release packaging targets:
|
1997-05-15 18:43:21 -03:00
|
|
|
|
2001-07-18 18:17:29 -03:00
|
|
|
paper-$(PAPER)/README: $(PSFILES) $(TOOLSDIR)/getpagecounts
|
2002-04-17 00:31:08 -03:00
|
|
|
cd paper-$(PAPER) && ../$(TOOLSDIR)/getpagecounts -r $(RELEASE) >../$@
|
2001-02-19 15:19:26 -04:00
|
|
|
|
1999-01-08 11:49:45 -04:00
|
|
|
info-$(RELEASE).tgz: info
|
2001-07-17 13:53:19 -03:00
|
|
|
cd $(INFODIR) && tar cf - README python.dir python-*.info* \
|
2003-07-17 08:55:18 -03:00
|
|
|
| gzip -9 >../$@
|
1998-02-19 12:01:04 -04:00
|
|
|
|
1999-07-27 13:30:59 -03:00
|
|
|
info-$(RELEASE).tar.bz2: info
|
2001-07-17 13:53:19 -03:00
|
|
|
cd $(INFODIR) && tar cf - README python.dir python-*.info* \
|
2003-07-17 08:55:18 -03:00
|
|
|
| bzip2 -9 >../$@
|
1999-07-27 13:30:59 -03:00
|
|
|
|
1998-05-11 18:10:15 -03:00
|
|
|
latex-$(RELEASE).tgz:
|
2001-07-17 13:53:19 -03:00
|
|
|
$(PYTHON) $(TOOLSDIR)/mksourcepkg --gzip $(RELEASE)
|
1998-03-05 12:37:34 -04:00
|
|
|
|
1999-07-27 13:30:59 -03:00
|
|
|
latex-$(RELEASE).tar.bz2:
|
2001-07-17 13:53:19 -03:00
|
|
|
$(PYTHON) $(TOOLSDIR)/mksourcepkg --bzip2 $(RELEASE)
|
1999-07-27 13:30:59 -03:00
|
|
|
|
1999-07-23 13:11:36 -03:00
|
|
|
latex-$(RELEASE).zip:
|
2000-04-04 17:58:25 -03:00
|
|
|
rm -f $@
|
2001-07-17 13:53:19 -03:00
|
|
|
$(PYTHON) $(TOOLSDIR)/mksourcepkg --zip $(RELEASE)
|
1999-07-23 13:11:36 -03:00
|
|
|
|
2001-07-18 18:17:29 -03:00
|
|
|
pdf-$(PAPER)-$(RELEASE).tar: $(PDFFILES)
|
2002-08-09 17:20:50 -03:00
|
|
|
rm -f $@
|
|
|
|
mkdir Python-Docs-$(RELEASE)
|
|
|
|
cp paper-$(PAPER)/*.pdf Python-Docs-$(RELEASE)
|
|
|
|
tar cf $@ Python-Docs-$(RELEASE)
|
|
|
|
rm -r Python-Docs-$(RELEASE)
|
2001-07-18 18:17:29 -03:00
|
|
|
|
|
|
|
pdf-$(PAPER)-$(RELEASE).tgz: pdf-$(PAPER)-$(RELEASE).tar
|
|
|
|
gzip -9 <$? >$@
|
1998-02-12 18:33:50 -04:00
|
|
|
|
2001-07-18 18:17:29 -03:00
|
|
|
pdf-$(PAPER)-$(RELEASE).tar.bz2: pdf-$(PAPER)-$(RELEASE).tar
|
|
|
|
bzip2 -9 <$? >$@
|
1999-07-27 13:30:59 -03:00
|
|
|
|
1999-07-23 13:11:36 -03:00
|
|
|
pdf-$(PAPER)-$(RELEASE).zip: pdf
|
2000-04-04 17:58:25 -03:00
|
|
|
rm -f $@
|
2002-08-09 17:20:50 -03:00
|
|
|
mkdir Python-Docs-$(RELEASE)
|
|
|
|
cp paper-$(PAPER)/*.pdf Python-Docs-$(RELEASE)
|
|
|
|
zip -q -r -9 $@ Python-Docs-$(RELEASE)
|
|
|
|
rm -r Python-Docs-$(RELEASE)
|
1999-07-23 13:11:36 -03:00
|
|
|
|
2001-07-18 18:17:29 -03:00
|
|
|
postscript-$(PAPER)-$(RELEASE).tar: $(PSFILES) paper-$(PAPER)/README
|
2002-08-09 17:20:50 -03:00
|
|
|
rm -f $@
|
|
|
|
mkdir Python-Docs-$(RELEASE)
|
|
|
|
cp paper-$(PAPER)/*.ps Python-Docs-$(RELEASE)
|
|
|
|
cp paper-$(PAPER)/README Python-Docs-$(RELEASE)
|
|
|
|
tar cf $@ Python-Docs-$(RELEASE)
|
|
|
|
rm -r Python-Docs-$(RELEASE)
|
1998-02-12 18:33:50 -04:00
|
|
|
|
2001-07-18 18:17:29 -03:00
|
|
|
postscript-$(PAPER)-$(RELEASE).tar.bz2: postscript-$(PAPER)-$(RELEASE).tar
|
|
|
|
bzip2 -9 <$< >$@
|
1999-07-27 13:30:59 -03:00
|
|
|
|
2001-07-18 18:17:29 -03:00
|
|
|
postscript-$(PAPER)-$(RELEASE).tgz: postscript-$(PAPER)-$(RELEASE).tar
|
|
|
|
gzip -9 <$< >$@
|
|
|
|
|
|
|
|
postscript-$(PAPER)-$(RELEASE).zip: $(PSFILES) paper-$(PAPER)/README
|
2000-04-04 17:58:25 -03:00
|
|
|
rm -f $@
|
2002-08-09 17:20:50 -03:00
|
|
|
mkdir Python-Docs-$(RELEASE)
|
|
|
|
cp paper-$(PAPER)/*.ps Python-Docs-$(RELEASE)
|
|
|
|
cp paper-$(PAPER)/README Python-Docs-$(RELEASE)
|
|
|
|
zip -q -r -9 $@ Python-Docs-$(RELEASE)
|
|
|
|
rm -r Python-Docs-$(RELEASE)
|
|
|
|
|
|
|
|
HTMLPKGFILES=*.html */*.css */*.html */*.gif */*.txt
|
1999-07-23 13:11:36 -03:00
|
|
|
|
2001-10-25 12:12:31 -03:00
|
|
|
html-$(RELEASE).tar: $(ALLHTMLFILES) $(HTMLCSSFILES)
|
2002-08-09 17:20:50 -03:00
|
|
|
mkdir Python-Docs-$(RELEASE)
|
|
|
|
cd html && tar cf ../temp.tar $(HTMLPKGFILES)
|
|
|
|
cd Python-Docs-$(RELEASE) && tar xf ../temp.tar
|
|
|
|
rm temp.tar
|
|
|
|
tar cf html-$(RELEASE).tar Python-Docs-$(RELEASE)
|
|
|
|
rm -r Python-Docs-$(RELEASE)
|
1998-01-13 12:33:09 -04:00
|
|
|
|
2001-07-17 20:35:46 -03:00
|
|
|
html-$(RELEASE).tgz: html-$(RELEASE).tar
|
2001-07-18 18:17:29 -03:00
|
|
|
gzip -9 <$? >$@
|
2001-07-17 20:35:46 -03:00
|
|
|
|
|
|
|
html-$(RELEASE).tar.bz2: html-$(RELEASE).tar
|
2001-07-18 18:17:29 -03:00
|
|
|
bzip2 -9 <$? >$@
|
1999-07-27 13:30:59 -03:00
|
|
|
|
2001-10-25 12:12:31 -03:00
|
|
|
html-$(RELEASE).zip: $(ALLHTMLFILES) $(HTMLCSSFILES)
|
2000-04-04 17:58:25 -03:00
|
|
|
rm -f $@
|
2002-08-09 17:20:50 -03:00
|
|
|
mkdir Python-Docs-$(RELEASE)
|
|
|
|
cd html && tar cf ../temp.tar $(HTMLPKGFILES)
|
|
|
|
cd Python-Docs-$(RELEASE) && tar xf ../temp.tar
|
|
|
|
rm temp.tar
|
|
|
|
zip -q -r -9 $@ Python-Docs-$(RELEASE)
|
|
|
|
rm -r Python-Docs-$(RELEASE)
|
1999-07-23 13:11:36 -03:00
|
|
|
|
2001-10-19 18:12:57 -03:00
|
|
|
isilo-$(RELEASE).zip: isilo
|
2002-08-09 17:20:50 -03:00
|
|
|
rm -f $@
|
|
|
|
mkdir Python-Docs-$(RELEASE)
|
|
|
|
cp isilo/python-*.pdb Python-Docs-$(RELEASE)
|
|
|
|
zip -q -r -9 $@ Python-Docs-$(RELEASE)
|
|
|
|
rm -r Python-Docs-$(RELEASE)
|
2001-10-19 18:12:57 -03:00
|
|
|
|
|
|
|
|
1998-02-19 12:01:04 -04:00
|
|
|
# convenience targets:
|
|
|
|
|
1998-08-12 14:08:37 -03:00
|
|
|
tarhtml: html-$(RELEASE).tgz
|
1999-01-08 11:49:45 -04:00
|
|
|
tarinfo: info-$(RELEASE).tgz
|
1998-08-12 14:08:37 -03:00
|
|
|
tarps: postscript-$(PAPER)-$(RELEASE).tgz
|
|
|
|
tarpdf: pdf-$(PAPER)-$(RELEASE).tgz
|
|
|
|
tarlatex: latex-$(RELEASE).tgz
|
1998-02-19 12:01:04 -04:00
|
|
|
|
1999-08-02 17:20:14 -03:00
|
|
|
tarballs: tarpdf tarps tarhtml
|
1997-11-25 16:49:09 -04:00
|
|
|
|
1999-07-23 13:11:36 -03:00
|
|
|
ziphtml: html-$(RELEASE).zip
|
|
|
|
zipps: postscript-$(PAPER)-$(RELEASE).zip
|
|
|
|
zippdf: pdf-$(PAPER)-$(RELEASE).zip
|
|
|
|
ziplatex: latex-$(RELEASE).zip
|
2001-10-19 18:12:57 -03:00
|
|
|
zipisilo: isilo-$(RELEASE).zip
|
1999-07-23 13:11:36 -03:00
|
|
|
|
2000-06-30 23:37:37 -03:00
|
|
|
zips: zippdf zipps ziphtml
|
1999-07-23 13:11:36 -03:00
|
|
|
|
1999-07-27 13:30:59 -03: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 17:20:14 -03:00
|
|
|
bzips: bzippdf bzipps bziphtml
|
1999-07-27 13:30:59 -03:00
|
|
|
|
2001-04-13 15:00:23 -03:00
|
|
|
disthtml: tarhtml bziphtml ziphtml
|
|
|
|
distinfo: tarinfo bzipinfo
|
|
|
|
distps: tarps bzipps zipps
|
|
|
|
distpdf: tarpdf bzippdf zippdf
|
|
|
|
distlatex: tarlatex bziplatex ziplatex
|
|
|
|
|
2001-07-18 18:17:29 -03:00
|
|
|
paperdist: distpdf distps
|
2003-07-17 12:29:16 -03:00
|
|
|
edist: disthtml distinfo zipisilo
|
2001-07-18 18:17:29 -03:00
|
|
|
|
2003-07-17 08:55:18 -03:00
|
|
|
pkglist:
|
|
|
|
$(TOOLSDIR)/mkpkglist >pkglist.html
|
|
|
|
|
2001-07-18 18:17:29 -03:00
|
|
|
distfiles: paperdist edist
|
2001-01-25 13:32:51 -04:00
|
|
|
$(TOOLSDIR)/mksourcepkg --all $(RELEASE)
|
2003-04-23 12:04:52 -03:00
|
|
|
$(TOOLSDIR)/mkpkglist >pkglist.html
|
1999-07-27 13:30:59 -03:00
|
|
|
|
1995-03-17 12:01:35 -04:00
|
|
|
|
|
|
|
# Housekeeping targets
|
|
|
|
|
1997-05-15 18:43:21 -03:00
|
|
|
# Remove temporary files; all except the following:
|
1998-03-03 18:02:19 -04:00
|
|
|
# - sources: .tex, .bib, .sty, *.cls
|
1998-02-12 18:33:50 -04:00
|
|
|
# - useful results: .dvi, .pdf, .ps, .texi, .info
|
1998-03-06 17:29:34 -04:00
|
|
|
clean:
|
2001-07-17 20:35:46 -03:00
|
|
|
rm -f html-$(RELEASE).tar
|
2001-07-17 13:53:19 -03:00
|
|
|
cd $(INFODIR) && $(MAKE) clean
|
1992-07-07 06:06:34 -03:00
|
|
|
|
1995-03-17 12:01:35 -04:00
|
|
|
# Remove temporaries as well as final products
|
1999-01-08 11:49:45 -04:00
|
|
|
clobber:
|
2001-07-17 20:35:46 -03:00
|
|
|
rm -f html-$(RELEASE).tar
|
1998-08-12 14:08:37 -03:00
|
|
|
rm -f html-$(RELEASE).tgz info-$(RELEASE).tgz
|
|
|
|
rm -f pdf-$(RELEASE).tgz postscript-$(RELEASE).tgz
|
1999-07-23 13:11:36 -03:00
|
|
|
rm -f latex-$(RELEASE).tgz html-$(RELEASE).zip
|
|
|
|
rm -f pdf-$(RELEASE).zip postscript-$(RELEASE).zip
|
2001-02-19 15:19:26 -04:00
|
|
|
rm -f $(DVIFILES) $(PSFILES) $(PDFFILES)
|
2001-07-17 13:53:19 -03:00
|
|
|
cd $(INFODIR) && $(MAKE) clobber
|
2002-02-04 15:49:29 -04:00
|
|
|
rm -f paper-$(PAPER)/*.tex paper-$(PAPER)/*.ind paper-$(PAPER)/*.idx
|
|
|
|
rm -f paper-$(PAPER)/*.l2h paper-$(PAPER)/*.how paper-$(PAPER)/README
|
2001-02-19 15:19:26 -04: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/
|
2002-03-26 15:53:56 -04:00
|
|
|
rm -rf html/whatsnew/
|
2001-10-19 18:12:57 -03:00
|
|
|
rm -rf isilo/api/ isilo/doc/ isilo/ext/ isilo/lib/ isilo/mac/
|
|
|
|
rm -rf isilo/ref/ isilo/tut/ isilo/inst/ isilo/dist/
|
2002-03-26 15:53:56 -04:00
|
|
|
rm -rf isilo/whatsnew/
|
2002-08-09 17:20:50 -03:00
|
|
|
rm -f isilo/python-*.pdb isilo-$(RELEASE).zip
|
2001-02-19 15:19:26 -04:00
|
|
|
|
|
|
|
realclean distclean: clobber
|