From 8a9c168c8b9f58cfcfdb021e45fb5a16674a3969 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sat, 14 Jan 2012 22:08:48 -0500 Subject: 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. --- configure.in | 5 +++++ gsettings/Makefile.am | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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 $< -- cgit v1.2.1