]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
provide a doc configure option 539/head
authorYixun Lan <dlan@gentoo.org>
Mon, 1 Jun 2020 03:45:29 +0000 (11:45 +0800)
committerYixun Lan <dlan@gentoo.org>
Mon, 1 Jun 2020 03:49:57 +0000 (11:49 +0800)
Give user an option to enable/disable building man helps

Signed-off-by: Yixun Lan <dlan@gentoo.org>
configure.ac
doc/Makefile.am

index 0c3b58f4ead0d0791b32c6f6376bc9da0e854cc5..9287a511fd551293e7190d82f49949b188877a80 100644 (file)
@@ -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"])
index b26ec6251e2dce207690e31a9f8c04e01ce1ec3e..0e438b46701485ff1a0adce12b768780f48c7b2d 100644 (file)
@@ -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