Commit b9838d97 authored by Fred Drake's avatar Fred Drake

Fix a comment.

Avoid extra level of recursion in the paper-*/ directories.

Added the "info" target to use the subdir.  Partparse, however, is broken
again.
parent 9447e592
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
# The latex sources for each of these documents are in subdirectories # The latex sources for each of these documents are in subdirectories
# with the three-letter designations above as the directory names. # with the three-letter designations above as the directory names.
# #
# The main target "make all" creates DVI and PostScript for these # The main target "make all" creates DVI and PostScript for the main
# four. You can also do "make lib" (etc.) to process individual # targets. You can also do "make lib" (etc.) to process individual
# documents. # documents.
# #
# The document classes and styles are in the texinputs/ directory. # The document classes and styles are in the texinputs/ directory.
...@@ -54,6 +54,8 @@ KPSEWHICH= TEXINPUTS=$(TEXINPUTS) kpsewhich tex ...@@ -54,6 +54,8 @@ KPSEWHICH= TEXINPUTS=$(TEXINPUTS) kpsewhich tex
MAKEINDEX= makeindex -s $(srcdir)/texinputs/myindex.ist MAKEINDEX= makeindex -s $(srcdir)/texinputs/myindex.ist
ACROREAD= acroread ACROREAD= acroread
L2HARGS= L2HARGS=
# HTMLDIR should not be '.'!
HTMLDIR= html
PYTHON= python PYTHON= python
WEBCHECKER= $(PYTHON) $(srcdir)/../Tools/webchecker/webchecker.py WEBCHECKER= $(PYTHON) $(srcdir)/../Tools/webchecker/webchecker.py
...@@ -63,10 +65,7 @@ LIBDESTDIR= $DESTDIR/lib ...@@ -63,10 +65,7 @@ LIBDESTDIR= $DESTDIR/lib
LIBDEST= $LIBDESTDIR/python$(VERSION) LIBDEST= $LIBDESTDIR/python$(VERSION)
DOCDESTDIR= $LIBDEST/doc DOCDESTDIR= $LIBDEST/doc
# These is only used for .info generation: INFODIR= info
EMACS= emacs
MAKEINFO= makeinfo
PARTPARSE= $(PYTHON) $(srcdir)/tools/partparse.py
srcdir=. srcdir=.
VPATH=. VPATH=.
...@@ -77,12 +76,11 @@ RELEASE=1.5.1 ...@@ -77,12 +76,11 @@ RELEASE=1.5.1
VERSION=1.5 VERSION=1.5
DVIFILES= api.dvi ext.dvi lib.dvi ref.dvi tut.dvi DVIFILES= api.dvi ext.dvi lib.dvi ref.dvi tut.dvi
INFOFILES= python-lib.info
PDFFILES= api.pdf ext.pdf lib.pdf ref.pdf tut.pdf PDFFILES= api.pdf ext.pdf lib.pdf ref.pdf tut.pdf
PSFILES= api.ps ext.ps lib.ps ref.ps tut.ps PSFILES= api.ps ext.ps lib.ps ref.ps tut.ps
# Be careful when messing with this one! # Be careful when messing with this one!
TEXINPUTS= .:$(srcdir)/texinputs: TEXINPUTS= .:../texinputs:
MKDVI= TEXINPUTS=$(TEXINPUTS) $(srcdir)/tools/mkdvi.sh MKDVI= TEXINPUTS=$(TEXINPUTS) $(srcdir)/tools/mkdvi.sh
MKHTML= TEXINPUTS=$(TEXINPUTS) $(srcdir)/tools/mkhtml.sh MKHTML= TEXINPUTS=$(TEXINPUTS) $(srcdir)/tools/mkhtml.sh
...@@ -92,13 +90,19 @@ MKPDF= TEXINPUTS=$(TEXINPUTS) $(srcdir)/tools/mkdvi.sh --pdf ...@@ -92,13 +90,19 @@ MKPDF= TEXINPUTS=$(TEXINPUTS) $(srcdir)/tools/mkdvi.sh --pdf
all: all-ps all: all-ps
all-dvi: all-dvi:
(cd paper-$(PAPER); $(MAKE) all-dvi) (cd paper-$(PAPER); \
$(MAKE) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS) \
-f ../Makefile do-dvi)
all-pdf: all-pdf:
(cd paper-$(PAPER); $(MAKE) all-pdf) (cd paper-$(PAPER); \
$(MAKE) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS) \
-f ../Makefile do-pdf)
all-ps: all-ps:
(cd paper-$(PAPER); $(MAKE) all-ps) (cd paper-$(PAPER); \
$(MAKE) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS) \
-f ../Makefile do-ps)
world: do-ps do-pdf l2h tarballs world: do-ps do-pdf l2h tarballs
...@@ -233,34 +237,10 @@ tut.pdf: tut/tut.tex ...@@ -233,34 +237,10 @@ tut.pdf: tut/tut.tex
# The remaining part of the Makefile is concerned with various # The remaining part of the Makefile is concerned with various
# conversions, as described above. See also the README file. # conversions, as described above. See also the README file.
.PRECIOUS: python-lib.texi .PHONY: info
# The sed script in this target fixes a really nasty little condition in info:
# libcgi.tex where \e has to be used in a group to get the right behavior, (cd $(INFODIR); $(MAKE))
# and makeinfo can't handle a group without a leading @command. But at
# least the info file gets generated.
lib1.texi: $(LIBFILES) texipre.dat texipost.dat tools/partparse.py
$(PARTPARSE) -o $@ `$(srcdir)/tools/whichlibs`
sed 's/"{\\}n{\\}n/"\\n\\n/' $@ >temp.texi
mv temp.texi $@
python-lib.texi: lib1.texi tools/fix.el
cp lib1.texi temp.texi
$(EMACS) -batch -l $(srcdir)/tools/fix.el -f save-buffer -kill
mv temp.texi $@
python-lib.info: python-lib.texi
$(MAKEINFO) --footnote-style end --fill-column 72 \
--paragraph-indent 0 $<
# this is needed to prevent a second set of info files from being generated,
# at least when using GNU make
.PHONY: lib.info lib.texi
lib.info: python-lib.info
lib.texi: python-lib.texi
# Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to # Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to
# HTML converter. For more info on this program, see # HTML converter. For more info on this program, see
...@@ -276,7 +256,7 @@ lib.texi: python-lib.texi ...@@ -276,7 +256,7 @@ lib.texi: python-lib.texi
COMMONPERL=perl/manual.perl perl/python.perl COMMONPERL=perl/manual.perl perl/python.perl
l2h: l2h:
(cd html; $(MAKE) TEXINPUTS=../paper-$(PAPER):../texinputs) (cd $(HTMLDIR); $(MAKE) TEXINPUTS=../paper-$(PAPER):../texinputs)
l2hapi: $(COMMONPERL) l2hapi: $(COMMONPERL)
$(MKHTML) api $(L2HARGS) $(MKHTML) api $(L2HARGS)
...@@ -303,21 +283,21 @@ webcheck: ...@@ -303,21 +283,21 @@ webcheck:
$(WEBCHECKER) file:`pwd`/ref/ $(WEBCHECKER) file:`pwd`/ref/
$(WEBCHECKER) file:`pwd`/tut/ $(WEBCHECKER) file:`pwd`/tut/
lib-info-$(RELEASE).tar.gz: $(INFOFILES) lib-info-$(RELEASE).tar.gz: info
tar cf - python-???.info* | gzip -9 >$@ tar cf - -C $(INFODIR) python-???.info* | gzip -9 >$@
latex-$(RELEASE).tar.gz: latex-$(RELEASE).tar.gz:
$(srcdir)/tools/mktarball.sh $(srcdir)/tools/mktarball.sh
# This snags a PDF version if available, but doesn't fail if not. # This snags a PDF version if available, but doesn't fail if not.
pdf-$(RELEASE).tar.gz: $(PDFFILES) pdf-$(RELEASE).tar.gz: $(PDFFILES)
tar cf - ???.pdf | gzip -9 >$@ tar cf - -C paper-$(PAPER) ???.pdf | gzip -9 >$@
postscript-$(RELEASE).tar.gz: $(PSFILES) postscript-$(RELEASE).tar.gz: $(PSFILES)
tar cf - ???.ps | gzip -9 >$@ tar cf - -C paper-$(PAPER) ???.ps | gzip -9 >$@
html-$(RELEASE).tar.gz: html-$(RELEASE).tar.gz:
tar cf - index.html ???/???.css ???/*.html */*.gif \ tar cf - -C $(HTMLDIR) index.html ???/???.css ???/*.html */*.gif \
| gzip -9 >html-$(RELEASE).tar.gz | gzip -9 >html-$(RELEASE).tar.gz
# convenience targets: # convenience targets:
...@@ -341,19 +321,20 @@ tarballs: tarpdf tarps tarhtml tarlatex ...@@ -341,19 +321,20 @@ tarballs: tarpdf tarps tarhtml tarlatex
# - sources: .tex, .bib, .sty, *.cls # - sources: .tex, .bib, .sty, *.cls
# - useful results: .dvi, .pdf, .ps, .texi, .info # - useful results: .dvi, .pdf, .ps, .texi, .info
clean: clean:
rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.py[co] (cd paper-$(PAPER); rm -f *~ *.aux *.idx *.ilg *.ind *.log *.toc *.bkm)
rm -f *.bak *.orig lib1.texi *.out @webchecker.pickle *.bkm rm -f *.bak *.orig lib1.texi
(cd $(HTMLDIR); rm -f @webchecker.pickle)
rm -f html-$(RELEASE).tar.gz info-$(RELEASE).tar.gz rm -f html-$(RELEASE).tar.gz info-$(RELEASE).tar.gz
rm -f pdf-$(RELEASE).tar.gz postscript-$(RELEASE).tar.gz rm -f pdf-$(RELEASE).tar.gz postscript-$(RELEASE).tar.gz
rm -f latex-$(RELEASE).tar.gz rm -f latex-$(RELEASE).tar.gz
l2hclean: l2hclean:
rm -rf api ext lib tut (cd $(HTMLDIR); rm -rf api ext lib ref tut)
# Remove temporaries as well as final products # Remove temporaries as well as final products
clobber: clean l2hclean clobber: clean l2hclean
rm -f $(DVIFILES) $(PSFILES) $(PDFFILES) (cd paper-$(PAPER); rm -f $(DVIFILES) $(PSFILES) $(PDFFILES))
rm -f *.texi python-???.info python-???.info-[0-9]* (cd $(HTMLDIR); rm -f *.texi python-???.info python-???.info-[0-9]*)
realclean: clobber realclean: clobber
distclean: clobber distclean: clobber
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment