2
0
Эх сурвалжийг харах

docbook: fix rm'ed files mentioned in .d build error

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.
(cherry picked from commit 111a87fef0868021d6585d32b879bac6cb07b310)
Andrei Pelinescu-Onciul 15 жил өмнө
parent
commit
6f8a76343d
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      docbook/dep.xsl

+ 2 - 1
docbook/dep.xsl

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