summaryrefslogtreecommitdiffstats
path: root/Doc/Makefile
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-07-18 21:17:29 (GMT)
committerFred Drake <fdrake@acm.org>2001-07-18 21:17:29 (GMT)
commit5afb5e5c9c65ffeeeef21f9b306b3f5fa6106f02 (patch)
treedfdbcec4c69bf0b8e9ebb5376a1b2e696b295690 /Doc/Makefile
parent413bfb766ec14de4d39d27316a9e8cc02c7d5eff (diff)
downloadcpython-5afb5e5c9c65ffeeeef21f9b306b3f5fa6106f02.zip
cpython-5afb5e5c9c65ffeeeef21f9b306b3f5fa6106f02.tar.gz
cpython-5afb5e5c9c65ffeeeef21f9b306b3f5fa6106f02.tar.bz2
Look to the future: bump the version number.
Do more to ensure we don't do any more formatting than we need to. Use separate targets for the distribution packages for paper-based and non-paper-based formats; this avoids some extra packaging when a complete distribution is being built with both paper sizes.
Diffstat (limited to 'Doc/Makefile')
-rw-r--r--Doc/Makefile47
1 files changed, 29 insertions, 18 deletions
diff --git a/Doc/Makefile b/Doc/Makefile
index e8cfaa3..e38b892 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -67,7 +67,7 @@ TOOLSDIR= tools
# This is the *documentation* release, and is used to construct the file
# names of the downloadable tarballs.
-RELEASE=2.2a1
+RELEASE=2.2a2
PYTHON= python
DVIPS= dvips -N0 -t $(PAPER)
@@ -118,6 +118,8 @@ INDEXFILES=html/api/api.html \
html/inst/inst.html \
html/dist/dist.html
+ALLHTMLFILES=$(INDEXFILES) html/index.html html/modindex.html html/acks.html
+
COMMONPERL= perl/manual.perl perl/python.perl perl/l2hinit.perl
include Makefile.deps
@@ -259,7 +261,7 @@ html/modindex.html: html/lib/lib.html html/mac/mac.html
--output modindex.html --address $(PYTHONDOCS) \
lib/modindex.html mac/modindex.html
-html: $(INDEXFILES) html/index.html html/modindex.html html/acks.html
+html: $(ALLHTMLFILES)
api html/api/api.html: $(APIFILES)
$(MKHTML) --dir html/api api/api.tex
@@ -293,7 +295,7 @@ dist html/dist/dist.html: $(DISTFILES) perl/distutils.perl
WEBCHECKER=$(PYTHON) ../Tools/webchecker/webchecker.py
HTMLBASE= file:`pwd`/html
-webcheck: html
+webcheck: $(ALLHTMLFILES)
$(WEBCHECKER) $(HTMLBASE)/api/
$(WEBCHECKER) $(HTMLBASE)/doc/
$(WEBCHECKER) $(HTMLBASE)/ext/
@@ -304,7 +306,7 @@ webcheck: html
$(WEBCHECKER) $(HTMLBASE)/dist/
$(WEBCHECKER) $(HTMLBASE)/inst/
-fastwebcheck: html
+fastwebcheck: $(ALLHTMLFILES)
$(WEBCHECKER) -x $(HTMLBASE)/api/
$(WEBCHECKER) -x $(HTMLBASE)/doc/
$(WEBCHECKER) -x $(HTMLBASE)/ext/
@@ -318,7 +320,7 @@ fastwebcheck: html
# Release packaging targets:
-paper-$(PAPER)/README: ps $(TOOLSDIR)/getpagecounts
+paper-$(PAPER)/README: $(PSFILES) $(TOOLSDIR)/getpagecounts
cd paper-$(PAPER) && ../$(TOOLSDIR)/getpagecounts >../$@
info-$(RELEASE).tgz: info
@@ -339,23 +341,29 @@ latex-$(RELEASE).zip:
rm -f $@
$(PYTHON) $(TOOLSDIR)/mksourcepkg --zip $(RELEASE)
-pdf-$(PAPER)-$(RELEASE).tgz: pdf
- cd paper-$(PAPER) && tar cf - *.pdf | gzip -9 >$@
+pdf-$(PAPER)-$(RELEASE).tar: $(PDFFILES)
+ cd paper-$(PAPER) && tar cf ../$@ *.pdf
+
+pdf-$(PAPER)-$(RELEASE).tgz: pdf-$(PAPER)-$(RELEASE).tar
+ gzip -9 <$? >$@
-pdf-$(PAPER)-$(RELEASE).tar.bz2: pdf
- cd paper-$(PAPER) && tar cf - *.pdf | bzip2 -9 >$@
+pdf-$(PAPER)-$(RELEASE).tar.bz2: pdf-$(PAPER)-$(RELEASE).tar
+ bzip2 -9 <$? >$@
pdf-$(PAPER)-$(RELEASE).zip: pdf
rm -f $@
cd paper-$(PAPER) && zip -q -9 ../$@ *.pdf
-postscript-$(PAPER)-$(RELEASE).tar.bz2: ps paper-$(PAPER)/README
- cd paper-$(PAPER) && tar cf - *.ps README | bzip2 -9 >$@
+postscript-$(PAPER)-$(RELEASE).tar: $(PSFILES) paper-$(PAPER)/README
+ cd paper-$(PAPER) && tar cf ../$@ *.ps README
-postscript-$(PAPER)-$(RELEASE).tgz: ps paper-$(PAPER)/README
- cd paper-$(PAPER) && tar cf - *.ps README | gzip -9 >$@
+postscript-$(PAPER)-$(RELEASE).tar.bz2: postscript-$(PAPER)-$(RELEASE).tar
+ bzip2 -9 <$< >$@
-postscript-$(PAPER)-$(RELEASE).zip: ps paper-$(PAPER)/README
+postscript-$(PAPER)-$(RELEASE).tgz: postscript-$(PAPER)-$(RELEASE).tar
+ gzip -9 <$< >$@
+
+postscript-$(PAPER)-$(RELEASE).zip: $(PSFILES) paper-$(PAPER)/README
rm -f $@
cd paper-$(PAPER) && zip -q -9 ../$@ *.ps README
@@ -365,12 +373,12 @@ html-$(RELEASE).tar: html
*/*.gif */*.txt
html-$(RELEASE).tgz: html-$(RELEASE).tar
- gzip -9 <html-$(RELEASE).tar >$@
+ gzip -9 <$? >$@
html-$(RELEASE).tar.bz2: html-$(RELEASE).tar
- bzip2 -9 <html-$(RELEASE).tar >$@
+ bzip2 -9 <$? >$@
-html-$(RELEASE).zip: html
+html-$(RELEASE).zip: $(ALLHTMLFILES)
rm -f $@
cd $(HTMLDIR) && \
zip -q -9 ../$@ *.html */*.css */*.html */*.gif */*.txt
@@ -406,7 +414,10 @@ distps: tarps bzipps zipps
distpdf: tarpdf bzippdf zippdf
distlatex: tarlatex bziplatex ziplatex
-distfiles: tarballs zips bzips
+paperdist: distpdf distps
+edist: disthtml
+
+distfiles: paperdist edist
$(TOOLSDIR)/mksourcepkg --all $(RELEASE)