mirror of https://github.com/python/cpython
HTMLBASE: New variable. Make it easier to check an "installed" copy
of the HTML documents using the webcheck target. When there's not a usable .aux file, use mkdvi.sh --aux instead of building the .dvi completely. This makes the most difference for the library reference.
This commit is contained in:
parent
efa641c45a
commit
4d33e4e1a8
|
@ -13,15 +13,18 @@ PAPERDIR=$(TOPDIR)/paper-$(PAPER)
|
||||||
TEXINPUTS=$(TOPDIR)/paper-$(PAPER):$(TOPDIR)/texinputs:
|
TEXINPUTS=$(TOPDIR)/paper-$(PAPER):$(TOPDIR)/texinputs:
|
||||||
|
|
||||||
# Where are the various programs?
|
# Where are the various programs?
|
||||||
PYTHON= python
|
PYTHON= python
|
||||||
WEBCHECKER= $(PYTHON) $(TOPDIR)/../Tools/webchecker/webchecker.py
|
WEBCHECKER=$(PYTHON) $(TOPDIR)/../Tools/webchecker/webchecker.py
|
||||||
MKHTML= PAPER=$(PAPER) $(TOOLSDIR)/mkhtml.sh
|
MKAUX= PAPER=$(PAPER) TEXINPUTS=$(TEXINPUTS) $(TOOLSDIR)/mkdvi.sh --aux
|
||||||
KPSEWHICH= TEXINPUTS=$(TEXINPUTS) kpsewhich tex
|
MKHTML= PAPER=$(PAPER) $(TOOLSDIR)/mkhtml.sh
|
||||||
|
KPSEWHICH= TEXINPUTS=$(TEXINPUTS) kpsewhich tex
|
||||||
|
|
||||||
BUILDINDEX= $(TOOLSDIR)/buildindex.py
|
BUILDINDEX=$(TOOLSDIR)/buildindex.py
|
||||||
|
|
||||||
# make it clear to l2h, since our support only generates HTML 4.0
|
# make it clear to l2h, since our support only generates HTML 4.0
|
||||||
L2HARGS= -html_version 4.0
|
L2HARGS= -html_version 4.0
|
||||||
|
|
||||||
|
HTMLBASE= file:`pwd`
|
||||||
|
|
||||||
INDEXFILES=api/api.html \
|
INDEXFILES=api/api.html \
|
||||||
ext/ext.html \
|
ext/ext.html \
|
||||||
|
@ -72,19 +75,19 @@ tut/tut.html: $(PAPERDIR)/tut.aux
|
||||||
include ../Makefile.deps
|
include ../Makefile.deps
|
||||||
|
|
||||||
$(PAPERDIR)/api.aux: $(APIFILES)
|
$(PAPERDIR)/api.aux: $(APIFILES)
|
||||||
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) api.dvi)
|
(cd $(PAPERDIR); $(MKAUX) api)
|
||||||
|
|
||||||
$(PAPERDIR)/ext.aux: $(EXTFILES)
|
$(PAPERDIR)/ext.aux: $(EXTFILES)
|
||||||
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ext.dvi)
|
(cd $(PAPERDIR); $(MKAUX) ext)
|
||||||
|
|
||||||
$(PAPERDIR)/lib.aux: $(LIBFILES)
|
$(PAPERDIR)/lib.aux: $(LIBFILES)
|
||||||
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) lib.dvi)
|
(cd $(PAPERDIR); $(MKAUX) lib)
|
||||||
|
|
||||||
$(PAPERDIR)/ref.aux: $(REFFILES)
|
$(PAPERDIR)/ref.aux: $(REFFILES)
|
||||||
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ref.dvi)
|
(cd $(PAPERDIR); $(MKAUX) ref)
|
||||||
|
|
||||||
$(PAPERDIR)/tut.aux: $(TUTFILES)
|
$(PAPERDIR)/tut.aux: $(TUTFILES)
|
||||||
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) tut.dvi)
|
(cd $(PAPERDIR); $(MKAUX) tut)
|
||||||
|
|
||||||
# copy the icons/ directory over...
|
# copy the icons/ directory over...
|
||||||
icons:
|
icons:
|
||||||
|
@ -92,13 +95,13 @@ icons:
|
||||||
cp $(TOPDIR)/icons/*.gif icons/
|
cp $(TOPDIR)/icons/*.gif icons/
|
||||||
|
|
||||||
|
|
||||||
webcheck:
|
webcheck: all
|
||||||
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/api/
|
$(WEBCHECKER) $(HTMLBASE)/api/
|
||||||
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/ext/
|
$(WEBCHECKER) $(HTMLBASE)/ext/
|
||||||
$(WEBCHECKER) -m290000 file:`pwd`/$(HTMLDIR)/lib/
|
$(WEBCHECKER) -m290000 $(HTMLBASE)/lib/
|
||||||
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/mac/
|
$(WEBCHECKER) $(HTMLBASE)/mac/
|
||||||
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/ref/
|
$(WEBCHECKER) $(HTMLBASE)/ref/
|
||||||
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/tut/
|
$(WEBCHECKER) $(HTMLBASE)/tut/
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf icons/ @webchecker.pickle
|
rm -rf icons/ @webchecker.pickle
|
||||||
|
|
Loading…
Reference in New Issue