summaryrefslogtreecommitdiff
path: root/doc/faq
diff options
context:
space:
mode:
Diffstat (limited to 'doc/faq')
-rw-r--r--doc/faq/Makefile.am16
1 files changed, 10 insertions, 6 deletions
diff --git a/doc/faq/Makefile.am b/doc/faq/Makefile.am
index 3370a4c5f..d57e08cf9 100644
--- a/doc/faq/Makefile.am
+++ b/doc/faq/Makefile.am
@@ -21,10 +21,11 @@ dist-hook:
faq.sgml: $(srcdir)/faq.sgml
cp $^ .
+if HAVE_SGMLTOOLS
+faq.html: faq.sgml
+ $(SGMLTOOLS) -b onehtml faq.sgml;
+else
faq.html: faq.sgml
- @if test "$(SGMLTOOLS)" != "no"; then \
- $(SGMLTOOLS) -b onehtml faq.sgml; \
- else \
if test "$(fail_if_missing)" = "yes"; then \
echo "Please install sgmltools-lite."; \
exit 1; \
@@ -34,11 +35,13 @@ faq.html: faq.sgml
touch $^; \
fi; \
fi
+endif
+if HAVE_SGMLTOOLS
+faq.txt: faq.sgml
+ $(SGMLTOOLS) -b txt faq.sgml;
+else
faq.txt: faq.sgml
- @if test "$(SGMLTOOLS)" != "no"; then \
- $(SGMLTOOLS) -b txt faq.sgml; \
- else \
if test "$(fail_if_missing)" = "yes"; then \
echo "Please install sgmltools-lite."; \
exit 1; \
@@ -48,3 +51,4 @@ faq.txt: faq.sgml
touch $^; \
fi; \
fi
+endif