Bug#213374: [Build-common-hackers] Resend: Two DocBook/XML files with articleinfo

Colin Walters Colin Walters <walters@verbum.org>, 213374@bugs.debian.org
Thu, 02 Oct 2003 09:47:57 -0400


On Thu, 2003-10-02 at 04:03, debacle wrote:
> New versions.  I added "editor" and "keywordset".  Both are
> useful, when generating PDF, because they show up e.g. in
> Acrobat.

Thanks, I've applied this in cvs!

> This is for the Makefile.am:
> 
> XSL=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/onechunk.xsl
> 
> %.html: %.dbk
>         xsltproc --nonet $(XSL) $< > $@

This didn't work at all for me...the stylesheet seemed to output to a
file called index.html.  So what I ended up doing was this:

noinst_dbkdocs_DATA = docs/why.dbk docs/cdbs.dbk
noinst_dbkdocsdir = $(docdir)
builtdbkdocs_DATA = $(noinst_dbkdocs_DATA:%.dbk=%.html)
BUILT_SOURCES += $(builtdbkdocs_DATA)
CLEANFILES += $(builtdbkdocs_DATA)
builtdbkdocsdir = $(docdir)

%.html: %.dbk
	xsltproc --nonet $(DBKXSL) $<
	mv index.html $@