summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--doc/Makefile.am4
2 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 52881126..43e9f0af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,6 +77,7 @@ AC_ARG_ENABLE(debug,
AC_CHECK_PROG([ASCIIDOC], [asciidoc], [asciidoc])
AC_CHECK_PROG([PYGMENTIZE], [pygmentize], [pygmentize])
+AM_CONDITIONAL([BUILD_MANUAL], [test "x$ASCIIDOC" != x && test "x$PYGMENTIZE" != x])
dnl write output files
AC_OUTPUT([
diff --git a/doc/Makefile.am b/doc/Makefile.am
index e3333ed8..dad60626 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -39,9 +39,13 @@ CLEANFILES = $(OUT_FILES)
EXTRA_DIST = $(IN_FILES)
+if BUILD_MANUAL
+
doc_DATA = $(OUT_FILES)
SUFFIXES = .html .adoc
.adoc.html:
$(ASCIIDOC) -b $(OUTPUT) $(OPTIONS) -o $@ $<
+
+endif