From: Yixun Lan Date: Mon, 1 Jun 2020 03:45:29 +0000 (+0800) Subject: provide a doc configure option X-Git-Tag: v0.8.15~5^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F539%2Fhead;p=thirdparty%2Fsnapper.git provide a doc configure option Give user an option to enable/disable building man helps Signed-off-by: Yixun Lan --- diff --git a/configure.ac b/configure.ac index 0c3b58f4..9287a511 100644 --- a/configure.ac +++ b/configure.ac @@ -126,6 +126,14 @@ AM_CONDITIONAL(HAVE_ZYPP, [test "x$with_zypp" = "xyes"]) AC_CHECK_LIB(btrfs, btrfs_read_and_process_send_stream) AC_CHECK_HEADERS([btrfs/version.h]) +AC_ARG_ENABLE([doc], AC_HELP_STRING([--disable-doc],[Disable Build DOC support]), + [enable_doc=$enableval],[enable_doc=yes]) +AM_CONDITIONAL(ENABLE_DOC, [test "x$enable_doc" = "xyes"]) + +if test "x$enable_doc" = "xyes"; then + AC_DEFINE(ENABLE_DOC, 1, [Enable Build DOC support]) +fi + AC_ARG_ENABLE([xattrs], AC_HELP_STRING([--disable-xattrs],[Disable extended attributes support]), [with_xattrs=$enableval],[with_xattrs=yes]) AM_CONDITIONAL(HAVE_XATTRS, [test "x$with_xattrs" = "xyes"]) diff --git a/doc/Makefile.am b/doc/Makefile.am index b26ec625..0e438b46 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -2,6 +2,7 @@ # Makefile.am for snapper/doc # +if ENABLE_DOC man_MANS = snapper.8 snapperd.8 snapper-configs.5 if HAVE_PAM @@ -29,6 +30,7 @@ html: $(man_MANS:%.5=%.html) $(man_MANS:%.8=%.html) EXTRA_DIST = dbus-protocol.txt manpages.xsl html.xsl selinux-readme.txt +endif clean-local: rm -f *.{5,8} *.html