From c88f81de2643ef14dbf9bde42055b468d85e45a1 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 10 Feb 2013 20:44:43 +0100 Subject: make building docs optional. use --enable-docs to build docs. --- Makefile.am | 2 +- configure.ac | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 2bfe1c6..21ad378 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,3 @@ -SUBDIRS = src vformat test doc +SUBDIRS = src vformat test $(DOC_SUB) diff --git a/configure.ac b/configure.ac index ab68899..9d46ceb 100644 --- a/configure.ac +++ b/configure.ac @@ -23,6 +23,20 @@ AC_FUNC_MKTIME AC_FUNC_STAT AC_CHECK_FUNCS([atexit memset strstr]) +AC_ARG_ENABLE([docs], + [AS_HELP_STRING([--enable-docs], + [build documentation (default is no)])], + [build_docs=true], + [build_docs=false]) +if test "$build_docs" = true; then + DOC_SUB=doc +else + DOC_SUB= +fi + +AM_CONDITIONAL([ENABLE_DOCS],[test "x$DOC_SUB" = "xdoc"]) +AC_SUBST([DOC_SUB]) + AC_OUTPUT([Makefile src/Makefile vformat/Makefile test/Makefile doc/Makefile]) #AC_CONFIG_FILES([]) -- cgit v1.1-32-gdbae