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

Skip to content

Commit 664c72f

Browse files
committed
Move index.html rules to the end since it wedges font-lock.
Remember to delete index.html for clobber since it is now generated..
1 parent d09120b commit 664c72f

1 file changed

Lines changed: 19 additions & 13 deletions

File tree

Doc/html/Makefile

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,13 @@ tut: tut/tut.html
5454

5555
$(INDEXFILES): $(COMMONPERL) $(TOPDIR)/html/about.dat
5656

57+
# The index.html target is at the end since it screws up font-lock.
58+
5759
modindex.html: lib/lib.html mac/mac.html $(TOOLSDIR)/mkmodindex
5860
$(TOOLSDIR)/mkmodindex --columns 4 --output modindex.html \
5961
--address $(PYTHONDOCS) \
6062
lib/modindex.html mac/modindex.html
6163

62-
# This is really ugly, but we're not dependent on $(RELEASE), which isn't
63-
# defined here. It also maintains the proper dependency on boilerplate.tex.
64-
65-
BOILERPLATE=$(TOPDIR)/texinputs/boilerplate.tex
66-
index.html: index.html.in $(BOILERPLATE)
67-
REL=`grep '\\release{' $(BOILERPLATE) | sed 's/.*\\release{\(.*\)}.*$$/\1/'` ; \
68-
sed "s/@RELEASE@/$$REL/g" $< >TEMP
69-
DATE=`grep '\\date{' $(BOILERPLATE) | sed 's/.*\\date{\(.*\)}.*$$/\1/'` ; \
70-
sed "s/@DATE@/$$DATE/g" TEMP >$@
71-
rm -f TEMP
72-
7364
api/api.html: $(PAPERDIR)/api.aux $(BUILDINDEX)
7465
$(MKHTML) api $(L2HARGS)
7566

@@ -93,7 +84,7 @@ ref/ref.html: $(PAPERDIR)/ref.aux $(BUILDINDEX)
9384
$(MKHTML) ref $(L2HARGS)
9485

9586
tut/tut.html: $(PAPERDIR)/tut.aux
96-
$(MKHTML) tut $(L2HARGS)
87+
$(MKHTML) tut $(L2HARGS) -split 4
9788

9889

9990
include ../Makefile.deps
@@ -127,4 +118,19 @@ clean:
127118
rm -rf @webchecker.pickle
128119

129120
clobber: clean
130-
rm -rf api/ doc/ ext/ lib/ mac/ ref/ tut/
121+
rm -rf index.html api/ doc/ ext/ lib/ mac/ ref/ tut/
122+
123+
124+
# This is really ugly, but we're not dependent on $(RELEASE), which isn't
125+
# defined here. It also maintains the proper dependency on boilerplate.tex.
126+
127+
# It's at the end of the file since it wedges font-lock in XEmacs.
128+
129+
BOILERPLATE=$(TOPDIR)/texinputs/boilerplate.tex
130+
index.html: index.html.in $(BOILERPLATE)
131+
REL=`grep '\\release{' $(BOILERPLATE) | sed 's/.*\\release{\(.*\)}.*$$/\1/'` ; \
132+
sed "s/@RELEASE@/$$REL/g" $< >TEMP
133+
DATE=`grep '\\date{' $(BOILERPLATE) | sed 's/.*\\date{\(.*\)}.*$$/\1/'` ; \
134+
sed "s/@DATE@/$$DATE/g" TEMP >$@
135+
rm -f TEMP
136+

0 commit comments

Comments
 (0)