diff options
Diffstat (limited to 'docs/Makefile.am')
| -rw-r--r-- | docs/Makefile.am | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/docs/Makefile.am b/docs/Makefile.am new file mode 100644 index 0000000..1c4917e --- /dev/null +++ b/docs/Makefile.am @@ -0,0 +1,52 @@ +SUBDIRS = + +REF_VERSION = $(PYGOBJECT_MAJOR_VERSION).$(PYGOBJECT_MINOR_VERSION) + +XSLFILES = \ + common.xsl \ + devhelp.xsl \ + html.xsl \ + ref-html-style.xsl \ + pdf-style.xsl \ + pdf.xsl + +XMLFILES = \ + reference/pygobject-ref.xml \ + reference/pygobject-classes.xml \ + reference/pygobject-constants.xml \ + reference/pygobject-functions.xml \ + reference/pygobject-gboxed.xml \ + reference/pygobject-ginterface.xml \ + reference/pygobject-gpointer.xml \ + reference/pygobject-maincontext.xml \ + reference/pygobject-mainloop.xml + +HTMLdir = $(datadir)/devhelp/books/pygobject-$(REF_VERSION) +HTML_DATA = \ + html/class-gobjectgboxed.html \ + html/class-gobjectginterface.html \ + html/class-gobjectgpointer.html \ + html/class-gobject.html \ + html/class-gobjectmaincontext.html \ + html/class-gobjectmainloop.html \ + html/gobject-class-reference.html \ + html/gobject-constants.html \ + html/gobject-functions.html \ + html/index.html \ + html/index.sgml \ + html/pygobject-$(REF_VERSION).devhelp + +BUILT_SOURCES = $(HTML_DATA) +CLEANFILES = $(HTML_DATA) + +%.html: reference ${XMLFILES} ${XSLFILES} + xsltproc --nonet --xinclude -o html/ \ + --stringparam gtkdoc.bookname "pygobject-$(REF_VERSION)" \ + --stringparam gtkdoc.version ${REF_VERSION} \ + ref-html-style.xsl reference/pygobject-ref.xml + +pdf: reference ${XMLFILES} ${XSLFILES} + xsltproc --nonet --xinclude -o pygobject-ref.fo pdf-style.xsl \ + reference/pygobject-ref.xml + pdfxmltex pygobject-ref.fo >output </dev/null + |
