ndctl: add '--disable-docs' option to configure
Subsystems (2)
PATCH 1/1 ndctl: add '--disable-docs' option to configure
For environments that want to build without the documentation add an option to omit the Documentation/ sub-directory.
Reported-by Arjan van de Ven <[email protected]>
Signed-off-by Dan Williams <[email protected]>
--- Makefile.am | 2 ++ configure.ac | 9 +++++++++ 2 files changed, 11 insertions(+)
Makefile.am +2 -0
@@ -1,5 +1,7 @@ EXTRA_DIST = +if ENABLE_DOCS SUBDIRS = . Documentation +endif CLEANFILES = ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} AM_MAKEFLAGS = --no-print-directory
configure.ac +9 -0
@@ -58,6 +58,15 @@ AS_IF([test "x$enable_logging" = "xyes"], [ AC_DEFINE(ENABLE_LOGGING, [1], [System logging.]) ]) +AC_ARG_ENABLE([docs], + AS_HELP_STRING([--disable-docs], + [disable documentation build @<:@default=enabled@:>@]), + [], enable_docs=yes) +AS_IF([test "x$enable_docs" = "xyes"], [ + AC_DEFINE(ENABLE_DOCS, [1], [Documentation / man pages.]) +]) +AM_CONDITIONAL([ENABLE_DOCS], [test "x$enable_docs" = "xyes"]) + AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]), [], [enable_debug=no])
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm