docbook: fix rm'ed files mentioned in .d build error
authorAndrei Pelinescu-Onciul <andrei@iptel.org>
Wed, 10 Mar 2010 09:42:15 +0000 (10:42 +0100)
committerAndrei Pelinescu-Onciul <andrei@iptel.org>
Wed, 10 Mar 2010 09:53:46 +0000 (10:53 +0100)
When some .xml include file is deleted or removed, but the .d
already exists, the build will fail trying to build the apparently
missing file, requiring a make proper.
This fix enclosed the prerequisites in $(wildcard ...), when
generating the .d file.

docbook/dep.xsl

index 0415f96..f65480d 100644 (file)
@@ -8,8 +8,9 @@
        <xsl:template match="/">
                <xsl:document href="{$output}" method="text" indent="no" 
                                          omit-xml-declaration="yes">
-                       <xsl:value-of select="concat($output, ': ')"/>
+                       <xsl:value-of select="concat($output, ':$(wildcard  ')"/>
                        <xsl:apply-templates mode="subroot"/>
+                       <xsl:text>)&#xA;</xsl:text>
                </xsl:document>
        </xsl:template>