X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=doc%2FMakefile.am;h=c61b67f9329cdf464a467e04ae8fb2b51b9aac41;hb=bb7245b484c029add89a46816d1ee1ee4dfb61be;hp=ecb68806112c86a50674add3ce2cc0d03f3352dc;hpb=959fd8dec4cebda6f1e46e1e4f306ab5ee53493b;p=hvgrip.git diff --git a/doc/Makefile.am b/doc/Makefile.am index ecb6880..c61b67f 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,11 +1,35 @@ SUBDIRS = images +XSLTPROC=xsltproc +XSLTPROC_FLAGS= +XHTML_STYLESHEET="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl" +#XHTML_STYLESHEET="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl" +XML_CATALOG_FILES=/etc/xml/catalog + @PACKAGE@_helpdir = $(docdir) @PACKAGE@_help_DATA = \ + @PACKAGE@.html \ @PACKAGE@.xml +if have_docbook + +@PACKAGE@.html: ${top_srcdir}/doc/@PACKAGE@.xml + XML_CATALOG_FILES=$(XML_CATALOG_FILES) $(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ $(XHTML_STYLESHEET) $< + +##.xml.html: +# XSLTPROC_OPTS=/usr/share/xml/docbook/xsl-stylesheets-/xhtml/docbook.xsl +### $(XSLTPROC) --output $@ --nonet $(docbook_styles)/docbook.xsl $< + +else + +@PACKAGE@.html: + touch $@ + +endif + EXTRA_DIST = \ + @PACKAGE@.html \ @PACKAGE@.xml CLEANFILES = *~