summaryrefslogtreecommitdiffstats
path: root/Doc/html
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-02-15 19:29:08 (GMT)
committerFred Drake <fdrake@acm.org>1999-02-15 19:29:08 (GMT)
commit4d33e4e1a83dac20269cc8a4a75dd2b7e73c417f (patch)
tree4e1c7d0a5396ba847dc77a0c50daf7403ecca5dc /Doc/html
parentefa641c45a82970b15528b3947094bebae19ec36 (diff)
downloadcpython-4d33e4e1a83dac20269cc8a4a75dd2b7e73c417f.zip
cpython-4d33e4e1a83dac20269cc8a4a75dd2b7e73c417f.tar.gz
cpython-4d33e4e1a83dac20269cc8a4a75dd2b7e73c417f.tar.bz2
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.
Diffstat (limited to 'Doc/html')
-rw-r--r--Doc/html/Makefile39
1 files changed, 21 insertions, 18 deletions
diff --git a/Doc/html/Makefile b/Doc/html/Makefile
index 0fafaf4..c8476f8 100644
--- a/Doc/html/Makefile
+++ b/Doc/html/Makefile
@@ -13,15 +13,18 @@ PAPERDIR=$(TOPDIR)/paper-$(PAPER)
TEXINPUTS=$(TOPDIR)/paper-$(PAPER):$(TOPDIR)/texinputs:
# Where are the various programs?
-PYTHON= python
-WEBCHECKER= $(PYTHON) $(TOPDIR)/../Tools/webchecker/webchecker.py
-MKHTML= PAPER=$(PAPER) $(TOOLSDIR)/mkhtml.sh
-KPSEWHICH= TEXINPUTS=$(TEXINPUTS) kpsewhich tex
+PYTHON= python
+WEBCHECKER=$(PYTHON) $(TOPDIR)/../Tools/webchecker/webchecker.py
+MKAUX= PAPER=$(PAPER) TEXINPUTS=$(TEXINPUTS) $(TOOLSDIR)/mkdvi.sh --aux
+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
-L2HARGS= -html_version 4.0
+L2HARGS= -html_version 4.0
+
+HTMLBASE= file:`pwd`
INDEXFILES=api/api.html \
ext/ext.html \
@@ -72,19 +75,19 @@ tut/tut.html: $(PAPERDIR)/tut.aux
include ../Makefile.deps
$(PAPERDIR)/api.aux: $(APIFILES)
- (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) api.dvi)
+ (cd $(PAPERDIR); $(MKAUX) api)
$(PAPERDIR)/ext.aux: $(EXTFILES)
- (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ext.dvi)
+ (cd $(PAPERDIR); $(MKAUX) ext)
$(PAPERDIR)/lib.aux: $(LIBFILES)
- (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) lib.dvi)
+ (cd $(PAPERDIR); $(MKAUX) lib)
$(PAPERDIR)/ref.aux: $(REFFILES)
- (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ref.dvi)
+ (cd $(PAPERDIR); $(MKAUX) ref)
$(PAPERDIR)/tut.aux: $(TUTFILES)
- (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) tut.dvi)
+ (cd $(PAPERDIR); $(MKAUX) tut)
# copy the icons/ directory over...
icons:
@@ -92,13 +95,13 @@ icons:
cp $(TOPDIR)/icons/*.gif icons/
-webcheck:
- $(WEBCHECKER) file:`pwd`/$(HTMLDIR)/api/
- $(WEBCHECKER) file:`pwd`/$(HTMLDIR)/ext/
- $(WEBCHECKER) -m290000 file:`pwd`/$(HTMLDIR)/lib/
- $(WEBCHECKER) file:`pwd`/$(HTMLDIR)/mac/
- $(WEBCHECKER) file:`pwd`/$(HTMLDIR)/ref/
- $(WEBCHECKER) file:`pwd`/$(HTMLDIR)/tut/
+webcheck: all
+ $(WEBCHECKER) $(HTMLBASE)/api/
+ $(WEBCHECKER) $(HTMLBASE)/ext/
+ $(WEBCHECKER) -m290000 $(HTMLBASE)/lib/
+ $(WEBCHECKER) $(HTMLBASE)/mac/
+ $(WEBCHECKER) $(HTMLBASE)/ref/
+ $(WEBCHECKER) $(HTMLBASE)/tut/
clean:
rm -rf icons/ @webchecker.pickle