# ** stylesheet for testing whether a file has a refentry
# -----------------------------------------------------------------
REFENTRY_CHECK := <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" \
- version="1.0"> \
+ version="1.0" \
+ xmlns:db="http://docbook.org/ns/docbook" \
+ > \
<xsl:output method="text"/> \
<xsl:template match="/"> \
- <xsl:if test="//*[local-name() = 'refentry']"> \
+ <xsl:if test="//refentry|//db:refentry"> \
<xsl:text>true</xsl:text> \
</xsl:if> \
</xsl:template> \
# ** TARGETS START HERE **
# -----------------------------------------------------------------
# prevents make from deleting, e.g. foo.1, after making foo.1.pdf
-# and foo.1.txt from it, or foo.html after making foo.txt
-.PRECIOUS: %.1 %.2 %.3 %.4 %.5 %.6 %.7 %.8 %.9 %.html
+# and foo.1.txt from it.
+.PRECIOUS: %.1 %.2 %.3 %.4 %.5 %.6 %.7 %.8 %.9
docbook: $(DOCBOOK_OUTPUT_FORMATS)