diff options
author | Adrian Thurston <thurston@colm.net> | 2017-07-19 12:17:04 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2017-07-19 12:17:04 -0400 |
commit | bbfc82738f34d3fa45c64333b3d02550c93849f9 (patch) | |
tree | c7abf572c2174bdbdcdafb8d85cbbf240ed4cc16 | |
parent | 152832c0bb3c4bcd19709f02e0e70dee12c4c413 (diff) | |
download | colm-bbfc82738f34d3fa45c64333b3d02550c93849f9.tar.gz |
try to build manual only if we have asciidoc and pygments
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | doc/Makefile.am | 4 |
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 |