diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/Makefile.am | 9 | ||||
| -rw-r--r-- | docs/reference/entities.docbook.in | 1 | ||||
| -rw-r--r-- | docs/reference/pygobject-ref.xml | 1 |
3 files changed, 8 insertions, 3 deletions
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 </dev/null diff --git a/docs/reference/entities.docbook.in b/docs/reference/entities.docbook.in index cc855cf..be788f8 100644 --- a/docs/reference/entities.docbook.in +++ b/docs/reference/entities.docbook.in @@ -1,2 +1 @@ -<!ENTITY builddate "@BUILDDATE@"> <!ENTITY version "@PACKAGE_VERSION@"> 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" [ <!ENTITY % entities SYSTEM "entities.docbook"> %entities; +<!ENTITY builddate SYSTEM "builddate.xml"> ]> <book id="pygobject-reference" xmlns:xi="http://www.w3.org/2001/XInclude"> |
