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

Skip to content

Commit 501b926

Browse files
committed
Move common parameters to mkhowto to a variable, add up-link from the
generated documents to the document index.
1 parent dfa539d commit 501b926

1 file changed

Lines changed: 13 additions & 19 deletions

File tree

Doc/html/Makefile

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ TEXINPUTS=$(TOPDIR)/paper-$(PAPER):$(TOPDIR)/texinputs:
1212
# Where are the various programs?
1313
PYTHON= python
1414
WEBCHECKER=$(PYTHON) $(TOPDIR)/../Tools/webchecker/webchecker.py
15-
MKHOWTO= $(TOOLSDIR)/mkhowto
15+
MKHOWTO= $(TOOLSDIR)/mkhowto --about $(TOPDIR)/html/stdabout.dat \
16+
--up-link ../index.html --up-title "Document Index" \
17+
--address $(PYTHONDOCS)
18+
MKHTML= $(MKHOWTO) --html
1619

1720
BUILDINDEX=$(TOOLSDIR)/buildindex.py
1821

@@ -62,41 +65,32 @@ modindex.html: lib/lib.html mac/mac.html $(TOOLSDIR)/mkmodindex
6265
lib/modindex.html mac/modindex.html
6366

6467
api/api.html: $(APIFILES) $(BUILDINDEX)
65-
$(MKHOWTO) --about stdabout.dat --address $(PYTHONDOCS) \
66-
--html $(TOPDIR)/api/api.tex
68+
$(MKHTML) $(TOPDIR)/api/api.tex
6769

6870
doc/doc.html: $(DOCFILES) $(BUILDINDEX)
69-
$(MKHOWTO) --about stdabout.dat --address $(PYTHONDOCS) \
70-
--html $(TOPDIR)/doc/doc.tex
71+
$(MKHTML) $(TOPDIR)/doc/doc.tex
7172

7273
ext/ext.html: $(EXTFILES)
7374
echo $(EXTFILES)
74-
$(MKHOWTO) --about stdabout.dat --address $(PYTHONDOCS) \
75-
--html $(TOPDIR)/ext/ext.tex
75+
$(MKHTML) $(TOPDIR)/ext/ext.tex
7676

7777
lib/lib.html: $(LIBFILES) $(BUILDINDEX)
78-
$(MKHOWTO) --about stdabout.dat --address $(PYTHONDOCS) \
79-
--html $(TOPDIR)/lib/lib.tex
78+
$(MKHTML) $(TOPDIR)/lib/lib.tex
8079

8180
mac/mac.html: $(MACFILES) $(BUILDINDEX)
82-
$(MKHOWTO) --about stdabout.dat --address $(PYTHONDOCS) \
83-
--html $(TOPDIR)/mac/mac.tex
81+
$(MKHTML) $(TOPDIR)/mac/mac.tex
8482

8583
ref/ref.html: $(REFFILES) $(BUILDINDEX)
86-
$(MKHOWTO) --about stdabout.dat --address $(PYTHONDOCS) \
87-
--html $(TOPDIR)/ref/ref.tex
84+
$(MKHTML) $(TOPDIR)/ref/ref.tex
8885

8986
tut/tut.html: $(TUTFILES) $(TOOLSDIR)/mkhowto
90-
$(MKHOWTO) --about stdabout.dat --address $(PYTHONDOCS) \
91-
--html --numeric --split 3 $(TOPDIR)/tut/tut.tex
87+
$(MKHTML) --numeric --split 3 $(TOPDIR)/tut/tut.tex
9288

9389
inst/inst.html: $(INSTFILES) $(TOPDIR)/perl/distutils.perl
94-
$(MKHOWTO) --about stdabout.dat --address $(PYTHONDOCS) \
95-
--html $(TOPDIR)/inst/inst.tex
90+
$(MKHTML) $(TOPDIR)/inst/inst.tex
9691

9792
dist/dist.html:$(DISTFILES) $(TOPDIR)/perl/distutils.perl
98-
$(MKHOWTO) --about stdabout.dat --address $(PYTHONDOCS) \
99-
--html $(TOPDIR)/dist/dist.tex
93+
$(MKHTML) $(TOPDIR)/dist/dist.tex
10094

10195
webcheck: all
10296
$(WEBCHECKER) $(HTMLBASE)/api/

0 commit comments

Comments
 (0)