aboutsummaryrefslogtreecommitdiffstats
path: root/help/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'help/Makefile.am')
-rw-r--r--help/Makefile.am9
1 files changed, 7 insertions, 2 deletions
diff --git a/help/Makefile.am b/help/Makefile.am
index a7b5181003..4c3e7fd10c 100644
--- a/help/Makefile.am
+++ b/help/Makefile.am
@@ -34,10 +34,15 @@ help_DATA = \
faq.txt \
overview.txt
-EXTRA_DIST = $(help_DATA) Makefile.nmake
+EXTRA_DIST = $(help_DATA) Makefile.nmake faq.py
-CLEANFILES =
+CLEANFILES = faq.txt
MAINTAINERCLEANFILES = \
Makefile.in
+# Try our best to convert the FAQ to text.
+faq.txt: faq.py
+ elinks -dump -dump-width 72 < $< > $@ || \
+ links -dump -width 72 < $< > $@ || \
+ lynx -dump -width=72 -nolist -stdin -force-html < $< > $@