X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=doc%2FMakefile.am;h=c61b67f9329cdf464a467e04ae8fb2b51b9aac41;hb=refs%2Fheads%2Fautodoc;hp=ca3e3e7da43cd83a8e2e1151ffe367b197c01e65;hpb=e8acedcba7a5ec937118060c9b8bc59d2337b97b;p=hvgrip.git diff --git a/doc/Makefile.am b/doc/Makefile.am index ca3e3e7..c61b67f 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,11 +1,33 @@ 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