summaryrefslogtreecommitdiffstats
path: root/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index f8b1a6b..e430b92 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -737,6 +737,8 @@ define TXT_template
txt-$(1) text-$(1):: ${DOCBASE}-$(1).txt
${DOCBASE}-$(1).txt:: ${XMLFILES-${1}} ${XMLDEPFILES-${1}}
+# Not pretty, but it's what we've got.
+ test -f /usr/bin/w3m || ( echo 'Missing w3m package.' && exit 1 )
${XMLLINT} ${XMLLINTOPT} $(1)/$(DOCBASE).xml > $(1)/$(DOCBASE).lint.xml
${XSLTPROC} $(FDPCOMMONDIR)/packaging/strip-for-txt.xsl \
$(1)/$(DOCBASE).lint.xml > $(1)/$(DOCBASE).stripped.xml