summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-01-14 22:08:48 -0500
committerColin Walters <walters@verbum.org>2012-01-14 22:09:46 -0500
commit8a9c168c8b9f58cfcfdb021e45fb5a16674a3969 (patch)
tree58828354ba68c8c6ddcc8cafda75c458f1ae4f26
parent635d28cbf635d89b8bbbb008bf86cc864b8dabb7 (diff)
downloadgconf-8a9c168c8b9f58cfcfdb021e45fb5a16674a3969.tar.gz
build: Add --disable-documentation configure option
Documentation is the source of many cyclical build loops. Allow operating system builders to manually cut these cycles initially by disabling documentation for a first pass.
-rw-r--r--configure.in5
-rw-r--r--gsettings/Makefile.am6
2 files changed, 10 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 9dad0368..93253a43 100644
--- a/configure.in
+++ b/configure.in
@@ -139,6 +139,11 @@ fi
GTK_DOC_CHECK([1.0])
+AC_ARG_ENABLE([documentation],
+ AS_HELP_STRING([--enable-documentation], [enable documentation generated via XSLT]),
+ [], [enable_documentation=yes])
+AM_CONDITIONAL(ENABLE_DOCUMENTATION, test x$enable_documentation = xyes)
+
AC_MSG_CHECKING([which gtk+ version to compile against])
AC_ARG_WITH([gtk],
[AS_HELP_STRING([--with-gtk=2.0|3.0],[which gtk+ version to compile against (default: 3.0)])],
diff --git a/gsettings/Makefile.am b/gsettings/Makefile.am
index 83eb74a7..8bc9321e 100644
--- a/gsettings/Makefile.am
+++ b/gsettings/Makefile.am
@@ -42,10 +42,14 @@ autostartdir = $(sysconfdir)/xdg/autostart
autostart_in_files = gsettings-data-convert.desktop.in
autostart_DATA = $(autostart_in_files:.desktop.in=.desktop)
-man_MANS = \
+man_MANS =
+
+if ENABLE_DOCUMENTATION
+man_MANS += \
gsettings-schema-convert.1 \
gsettings-data-convert.1 \
$(NULL)
+endif
%.1 : %.xml
xsltproc -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<