Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4d33e4e

Browse files
committed
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.
1 parent efa641c commit 4d33e4e

1 file changed

Lines changed: 21 additions & 18 deletions

File tree

Doc/html/Makefile

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,18 @@ PAPERDIR=$(TOPDIR)/paper-$(PAPER)
1313
TEXINPUTS=$(TOPDIR)/paper-$(PAPER):$(TOPDIR)/texinputs:
1414

1515
# Where are the various programs?
16-
PYTHON= python
17-
WEBCHECKER= $(PYTHON) $(TOPDIR)/../Tools/webchecker/webchecker.py
18-
MKHTML= PAPER=$(PAPER) $(TOOLSDIR)/mkhtml.sh
19-
KPSEWHICH= TEXINPUTS=$(TEXINPUTS) kpsewhich tex
16+
PYTHON= python
17+
WEBCHECKER=$(PYTHON) $(TOPDIR)/../Tools/webchecker/webchecker.py
18+
MKAUX= PAPER=$(PAPER) TEXINPUTS=$(TEXINPUTS) $(TOOLSDIR)/mkdvi.sh --aux
19+
MKHTML= PAPER=$(PAPER) $(TOOLSDIR)/mkhtml.sh
20+
KPSEWHICH= TEXINPUTS=$(TEXINPUTS) kpsewhich tex
2021

21-
BUILDINDEX= $(TOOLSDIR)/buildindex.py
22+
BUILDINDEX=$(TOOLSDIR)/buildindex.py
2223

2324
# make it clear to l2h, since our support only generates HTML 4.0
24-
L2HARGS= -html_version 4.0
25+
L2HARGS= -html_version 4.0
26+
27+
HTMLBASE= file:`pwd`
2528

2629
INDEXFILES=api/api.html \
2730
ext/ext.html \
@@ -72,33 +75,33 @@ tut/tut.html: $(PAPERDIR)/tut.aux
7275
include ../Makefile.deps
7376

7477
$(PAPERDIR)/api.aux: $(APIFILES)
75-
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) api.dvi)
78+
(cd $(PAPERDIR); $(MKAUX) api)
7679

7780
$(PAPERDIR)/ext.aux: $(EXTFILES)
78-
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ext.dvi)
81+
(cd $(PAPERDIR); $(MKAUX) ext)
7982

8083
$(PAPERDIR)/lib.aux: $(LIBFILES)
81-
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) lib.dvi)
84+
(cd $(PAPERDIR); $(MKAUX) lib)
8285

8386
$(PAPERDIR)/ref.aux: $(REFFILES)
84-
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ref.dvi)
87+
(cd $(PAPERDIR); $(MKAUX) ref)
8588

8689
$(PAPERDIR)/tut.aux: $(TUTFILES)
87-
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) tut.dvi)
90+
(cd $(PAPERDIR); $(MKAUX) tut)
8891

8992
# copy the icons/ directory over...
9093
icons:
9194
mkdir icons/
9295
cp $(TOPDIR)/icons/*.gif icons/
9396

9497

95-
webcheck:
96-
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/api/
97-
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/ext/
98-
$(WEBCHECKER) -m290000 file:`pwd`/$(HTMLDIR)/lib/
99-
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/mac/
100-
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/ref/
101-
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/tut/
98+
webcheck: all
99+
$(WEBCHECKER) $(HTMLBASE)/api/
100+
$(WEBCHECKER) $(HTMLBASE)/ext/
101+
$(WEBCHECKER) -m290000 $(HTMLBASE)/lib/
102+
$(WEBCHECKER) $(HTMLBASE)/mac/
103+
$(WEBCHECKER) $(HTMLBASE)/ref/
104+
$(WEBCHECKER) $(HTMLBASE)/tut/
102105

103106
clean:
104107
rm -rf icons/ @webchecker.pickle

0 commit comments

Comments
 (0)