summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-02-19 17:52:07 (GMT)
committerFred Drake <fdrake@acm.org>2001-02-19 17:52:07 (GMT)
commit653809c1228031b469c4a53afdf6248033c27e3e (patch)
treedaa8021a42aa1360a0eadfad566d64e119b3b2f2
parent5f52f7230cdce513de1dac1cafe210ee108a7169 (diff)
downloadcpython-653809c1228031b469c4a53afdf6248033c27e3e.zip
cpython-653809c1228031b469c4a53afdf6248033c27e3e.tar.gz
cpython-653809c1228031b469c4a53afdf6248033c27e3e.tar.bz2
Make the top-level index.html depend on the individual document index.html
files so that the date is properly updated on the front page.
-rw-r--r--Doc/html/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/html/Makefile b/Doc/html/Makefile
index 4cd8423..d47ac01 100644
--- a/Doc/html/Makefile
+++ b/Doc/html/Makefile
@@ -119,10 +119,14 @@ distclean realclean clobber: clean
# This is really ugly, but we're not dependent on $(RELEASE), which isn't
# defined here. It also maintains the proper dependency on boilerplate.tex.
+# index.html is dependent on $(INDEXFILES) since we want the date on
+# the front index to be updated whenever any of the child documents
+# are updated and boilerplate.tex uses \today as the date.
+
# It's at the end of the file since it wedges font-lock in XEmacs.
BOILERPLATE=$(TOPDIR)/texinputs/boilerplate.tex
-index.html: $(TOPDIR)/html/index.html.in $(BOILERPLATE)
+index.html: $(TOPDIR)/html/index.html.in $(BOILERPLATE) $(INDEXFILES)
REL=`grep '\\release{' $(BOILERPLATE) | sed 's/.*\\release{\(.*\)}.*$$/\1/'`; \
REL=`echo "$$REL" | sed 's/[$$]//g'`; \
sed "s/@RELEASE@/$$REL/g" $< >TEMP