From 4246765f4c9ea58a70b1e34d787bd55223407546 Mon Sep 17 00:00:00 2001 From: John Finlay Date: Thu, 10 Aug 2006 23:47:01 +0000 Subject: Use builddate.xml for the builddate entity and have builddate.xml be * docs/reference/entities.docbook.in: * docs/reference/pygobject-ref.xml: * docs/Makefile.am: * configure.ac: Use builddate.xml for the builddate entity and have builddate.xml be updated when the docs are built not during configure time. --- docs/Makefile.am | 9 +++++++-- docs/reference/entities.docbook.in | 1 - docs/reference/pygobject-ref.xml | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/Makefile.am b/docs/Makefile.am index 3195884..085c7db 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -47,11 +47,13 @@ HTML_DATA = \ BUILT_SOURCES = \ build_stamp \ + reference/builddate.xml \ $(HTML_DATA) CLEANFILES = \ build_stamp \ pygobject-ref.* \ + reference/builddate.xml \ $(HTML_DATA) EXTRA_DIST = \ @@ -65,7 +67,10 @@ REFERENCE_DEPS = \ $(HTML_DATA): build_stamp -build_stamp: $(REFERENCE_DEPS) +reference/builddate.xml: $(REFERENCE_DEPS) + $(PYTHON) -c 'import datetime; print datetime.date.today()' > $@ + +build_stamp: $(REFERENCE_DEPS) reference/builddate.xml xsltproc --nonet --xinclude -o $(BUILDDIR)/html/ \ --path $(BUILDDIR)/reference:$(srcdir)/reference \ --stringparam gtkdoc.bookname "pygobject" \ @@ -74,7 +79,7 @@ build_stamp: $(REFERENCE_DEPS) $(srcdir)/reference/pygobject-ref.xml touch $@ -pdf: $(REFERENCE_DEPS) +pdf: $(REFERENCE_DEPS) reference/builddate.xml xsltproc --nonet --xinclude -o pygobject-ref.fo xsl/pdf-style.xsl \ reference/pygobject-ref.xml pdfxmltex pygobject-ref.fo >output diff --git a/docs/reference/pygobject-ref.xml b/docs/reference/pygobject-ref.xml index 325367b..2f5af03 100644 --- a/docs/reference/pygobject-ref.xml +++ b/docs/reference/pygobject-ref.xml @@ -3,6 +3,7 @@ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ %entities; + ]> -- cgit