mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
Move a bit closer to HTML generation without depending on the temp files
being in the current directory. Be more careful cleaning up. Correct an error in a comment. Add recent additions to the dependencies for lib.dvi.
This commit is contained in:
parent
310094ccce
commit
9fab3aa52e
42
Doc/Makefile
42
Doc/Makefile
@ -49,8 +49,9 @@
|
|||||||
LATEX= TEXINPUTS=$(TEXINPUTS) latex
|
LATEX= TEXINPUTS=$(TEXINPUTS) latex
|
||||||
PDFLATEX= TEXINPUTS=$(TEXINPUTS) pdflatex
|
PDFLATEX= TEXINPUTS=$(TEXINPUTS) pdflatex
|
||||||
TEXINPUTS= .:$(srcdir):$(srcdir)/texinputs:
|
TEXINPUTS= .:$(srcdir):$(srcdir)/texinputs:
|
||||||
DVIPS= dvips -f -N0
|
DVIPS= dvips -N0
|
||||||
DISTILL= distill
|
DISTILL= distill
|
||||||
|
KPSEWHICH= TEXINPUTS=$(TEXINPUTS) kpsewhich
|
||||||
MAKEINDEX= makeindex -s $(srcdir)/texinputs/myindex.ist
|
MAKEINDEX= makeindex -s $(srcdir)/texinputs/myindex.ist
|
||||||
L2H= TEXINPUTS=$(TEXINPUTS) latex2html -init_file $(L2HINIT)
|
L2H= TEXINPUTS=$(TEXINPUTS) latex2html -init_file $(L2HINIT)
|
||||||
L2HARGS=
|
L2HARGS=
|
||||||
@ -117,7 +118,7 @@ tut-all: tut.dvi tut.pdf tut.ps l2htut
|
|||||||
.SUFFIXES: .dvi .ps .pdf .tex
|
.SUFFIXES: .dvi .ps .pdf .tex
|
||||||
|
|
||||||
.dvi.ps:
|
.dvi.ps:
|
||||||
$(DVIPS) $< >$@
|
$(DVIPS) -o $@ $<
|
||||||
|
|
||||||
#.ps.pdf:
|
#.ps.pdf:
|
||||||
# $(DISTILL) $<
|
# $(DISTILL) $<
|
||||||
@ -172,7 +173,8 @@ LIBFILES = lib.tex \
|
|||||||
libuserdict.tex libdis.tex libxmllib.tex libqueue.tex \
|
libuserdict.tex libdis.tex libxmllib.tex libqueue.tex \
|
||||||
liblocale.tex libbasehttp.tex libcopyreg.tex libsymbol.tex libtoken.tex \
|
liblocale.tex libbasehttp.tex libcopyreg.tex libsymbol.tex libtoken.tex \
|
||||||
libframework.tex libminiae.tex libbinhex.tex libuu.tex libsunaudio.tex \
|
libframework.tex libminiae.tex libbinhex.tex libuu.tex libsunaudio.tex \
|
||||||
libfileinput.tex libimaplib.tex libpoplib.tex
|
libfileinput.tex libimaplib.tex libpoplib.tex libcalendar.tex \
|
||||||
|
libpopen2.tex libbisect.tex
|
||||||
|
|
||||||
MACLIBFILES = mac.tex libmac.tex libctb.tex libmacconsole.tex \
|
MACLIBFILES = mac.tex libmac.tex libctb.tex libmacconsole.tex \
|
||||||
libmacdnr.tex libmacfs.tex libmacos.tex libmacostools.tex \
|
libmacdnr.tex libmacfs.tex libmacos.tex libmacostools.tex \
|
||||||
@ -226,7 +228,7 @@ python-lib.texi: lib1.texi tools/fix.el
|
|||||||
|
|
||||||
python-lib.info: python-lib.texi
|
python-lib.info: python-lib.texi
|
||||||
$(MAKEINFO) --footnote-style end --fill-column 72 \
|
$(MAKEINFO) --footnote-style end --fill-column 72 \
|
||||||
--paragraph-indent 0 $<
|
--paragraph-indent 0 $<
|
||||||
|
|
||||||
# this is needed to prevent a second set of info files from being generated,
|
# this is needed to prevent a second set of info files from being generated,
|
||||||
# at least when using GNU make
|
# at least when using GNU make
|
||||||
@ -245,28 +247,28 @@ lib.texi: python-lib.texi
|
|||||||
# in the distribution to simplify the process of creating a
|
# in the distribution to simplify the process of creating a
|
||||||
# self-contained HTML distribution; for this purpose I have also added
|
# self-contained HTML distribution; for this purpose I have also added
|
||||||
# a (trivial) index.html. Change the definition of $ICONSERVER in
|
# a (trivial) index.html. Change the definition of $ICONSERVER in
|
||||||
# .latex2html-init to use a different location for the icons directory.
|
# perl/l2hinit.perl to use a different location for the icons directory.
|
||||||
|
|
||||||
l2h: l2hapi l2hext l2hlib l2htut
|
l2h: l2hapi l2hext l2hlib l2htut
|
||||||
|
|
||||||
l2htut: tut.dvi $(COMMONPERL)
|
l2hapi: $(COMMONPERL)
|
||||||
$(L2H) $(L2HARGS) tut.tex
|
$(L2H) $(L2HARGS) api.tex
|
||||||
(cd tut; ../tools/node2label.pl *.html)
|
(cd api; ../tools/node2label.pl *.html)
|
||||||
|
|
||||||
l2hext: ext.dvi $(COMMONPERL)
|
l2hext: $(COMMONPERL)
|
||||||
$(L2H) $(L2HARGS) ext.tex
|
$(L2H) $(L2HARGS) ext.tex
|
||||||
(cd ext; ../tools/node2label.pl *.html)
|
(cd ext; ../tools/node2label.pl *.html)
|
||||||
|
|
||||||
l2hlib: lib.dvi $(COMMONPERL)
|
l2hlib: $(COMMONPERL)
|
||||||
tools/fix_libaux.sed <lib.aux >lib1.aux
|
$(srcdir)/tools/fix_libaux.sed <`$(KPSEWHICH) lib.aux` >lib1.aux
|
||||||
mv lib1.aux lib.aux
|
mv lib1.aux `$(KPSEWHICH) lib.aux`
|
||||||
if test -d lib ; then rm -f lib/*.html ; fi
|
if test -d lib ; then rm -f lib/*.html ; fi
|
||||||
$(L2H) $(L2HARGS) lib.tex
|
$(L2H) $(L2HARGS) lib.tex
|
||||||
(cd lib; ../tools/node2label.pl *.html)
|
(cd lib; ../tools/node2label.pl *.html)
|
||||||
|
|
||||||
l2hapi: api.dvi $(COMMONPERL)
|
l2htut: $(COMMONPERL)
|
||||||
$(L2H) $(L2HARGS) api.tex
|
$(L2H) $(L2HARGS) tut.tex
|
||||||
(cd api; ../tools/node2label.pl *.html)
|
(cd tut; ../tools/node2label.pl *.html)
|
||||||
|
|
||||||
# webchecker needs an extra flag to process the huge index from the libref
|
# webchecker needs an extra flag to process the huge index from the libref
|
||||||
webcheck:
|
webcheck:
|
||||||
@ -279,16 +281,17 @@ lib-info-$(RELEASE).tar.gz: $(INFOFILES)
|
|||||||
tar cf - python-???.info* | gzip -9 >$@
|
tar cf - python-???.info* | gzip -9 >$@
|
||||||
|
|
||||||
latex-$(RELEASE).tar.gz:
|
latex-$(RELEASE).tar.gz:
|
||||||
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)
|
||||||
if test -f ref/ref.pdf ; then cp ref/ref.pdf . ; else true ; fi
|
if test -f $(srcdir)/ref/ref.pdf ; then \
|
||||||
|
cp $(srcdir)/ref/ref.pdf . ; else true ; fi
|
||||||
tar cf - ???.pdf | gzip -9 >$@
|
tar cf - ???.pdf | gzip -9 >$@
|
||||||
if test -f ref.pdf ; then rm ref.pdf ; else true ; fi
|
if test -f ref.pdf ; then rm ref.pdf ; else true ; fi
|
||||||
|
|
||||||
postscript-$(RELEASE).tar.gz: $(PSFILES) ref/ref.ps
|
postscript-$(RELEASE).tar.gz: $(PSFILES) ref/ref.ps
|
||||||
cp ref/ref.ps .
|
cp $(srcdir)/ref/ref.ps .
|
||||||
tar cf - ???.ps | gzip -9 >$@
|
tar cf - ???.ps | gzip -9 >$@
|
||||||
rm ref.ps
|
rm ref.ps
|
||||||
|
|
||||||
@ -327,7 +330,8 @@ l2hclean:
|
|||||||
|
|
||||||
# Remove temporaries as well as final products
|
# Remove temporaries as well as final products
|
||||||
clobber: clean l2hclean
|
clobber: clean l2hclean
|
||||||
rm -f *.dvi *.pdf *.ps *.texi python-*.info python-*.info-[0-9]*
|
rm -f $(DVIFILES) $(PSFILES) $(PDFFILES)
|
||||||
|
rm -f *.texi python-???.info python-???.info-[0-9]*
|
||||||
|
|
||||||
realclean: clobber
|
realclean: clobber
|
||||||
distclean: clobber
|
distclean: clobber
|
||||||
|
Loading…
Reference in New Issue
Block a user