[PATCH 3/5] build: add option to disable building documentation

thb at libreoffice.org thb at libreoffice.org
Tue Jan 30 15:18:08 CET 2018


From: Thorsten Behrens <Thorsten.Behrens at CIB.de>

Signed-off-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
---
 Makefile.am  |  8 +++++++-
 configure.ac | 10 ++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index e47ace50..5b081f20 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -27,13 +27,19 @@ EXTRA_DIST = autogen.sh autogen.rc gpgme.spec.in                   	\
              ChangeLog-2011 m4/ChangeLog-2011 contrib/ChangeLog-2011
 
 
+if BUILD_DOC
+doc = doc
+else
+doc =
+endif
+
 if RUN_GPG_TESTS
 tests = tests
 else
 tests =
 endif
 
-SUBDIRS = src ${tests} doc lang
+SUBDIRS = src ${tests} ${doc} lang
 
 # Fix the version of the spec file and create a file named VERSION
 # to be used for patch's Prereq: feature.
diff --git a/configure.ac b/configure.ac
index 608c376c..7ba8249d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -510,6 +510,16 @@ AC_DEFINE_UNQUOTED(BUILD_TIMESTAMP, "$BUILD_TIMESTAMP",
 
 
 #
+# Options to disable doc building
+#
+build_doc=yes
+AC_ARG_ENABLE([doc], AC_HELP_STRING([--disable-doc],
+                                    [do not build the documentation]),
+                     build_doc=$enableval, build_doc=yes)
+AM_CONDITIONAL([BUILD_DOC], [test "x$build_doc" != xno])
+
+
+#
 # Options to disable some regression tests
 #
 run_gpgconf_test="yes"
-- 
2.13.6




More information about the Gnupg-devel mailing list