[dconf] build: Add --disable-man
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] build: Add --disable-man
- Date: Mon, 22 Oct 2012 22:02:28 +0000 (UTC)
commit 390126b07492faa53c36b42bff4cd0d92b5f5e52
Author: Colin Walters <walters verbum org>
Date: Tue Aug 7 10:58:23 2012 -0400
build: Add --disable-man
1) For embedded systems, it makes no sense to include documentation
of this kind on each image. So we might as well not even build
it.
2) For people bootstrapping systems from source code, documentation
is the source of many cyclical build loops. Allowing it to
be disabled helps cut these loops.
3) The Docbook stylesheets are distributed as Zip files, and
the gnome-ostree builder only consumes git repositories.
https://bugzilla.gnome.org/show_bug.cgi?id=681385
configure.ac | 13 ++++++++++++-
docs/Makefile.am | 6 +++++-
2 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c411c27..1932485 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,7 +20,18 @@ fi
AC_PROG_CC
AM_PROG_VALAC([0.17.0])
AC_PROG_RANLIB
-AC_PATH_PROG([XSLTPROC], [xsltproc])
+AC_ARG_ENABLE(man,
+ [AS_HELP_STRING([--enable-man],
+ [generate man pages [default=yes]])],,
+ enable_man=yes)
+
+AS_IF([test "$enable_man" != no], [
+ AC_PATH_PROG([XSLTPROC], [xsltproc])
+ AS_IF([test -z "$XSLTPROC"], [
+ AC_MSG_ERROR([xsltproc is required for --enable-man])
+ ])
+])
+AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
# Use GSettings
GLIB_GSETTINGS
diff --git a/docs/Makefile.am b/docs/Makefile.am
index d4f9ec7..e5d2871 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -32,11 +32,15 @@ dconf.1: dconf-tool.xml
dconf.7: dconf-overview.xml
$(AM_V_GEN) $(XSLTPROC) $(XSLTPROC_MAN_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
-man_MANS = \
+man_MANS =
+
+if ENABLE_MAN
+man_MANS += \
dconf-service.1 \
dconf-editor.1 \
dconf.1 \
dconf.7
+endif
EXTRA_DIST += dconf-service.xml dconf-editor.xml dconf-tool.xml dconf-overview.xml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]