From 2cd4a37078f416ff848c62b9df2239e21406aab8 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 18 Jan 2012 22:06:58 -0500 Subject: [PATCH] build: Add --disable-documentation option This helps operating system builders. --- Makefile.am | 9 ++++++++- configure.ac | 5 +++++ 2 files changed, 13 insertions(+), 1 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9187597..64673bd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,13 @@ DEF_SUBDIRS = icons lib applet wizard sendto docs po help -SUBDIRS = icons lib applet wizard sendto $(MOBLIN_DIR) docs po help +SUBDIRS = icons lib applet wizard sendto docs po +DIST_SUBDIRS = + +if ENABLE_DOCUMENTATION +SUBDIRS += help +else +DIST_SUBDIRS += help +endif EXTRA_DIST = intltool-extract.in intltool-update.in intltool-merge.in ChangeLog.pre-2.27 gtk-doc.make gnome-doc-utils.make diff --git a/configure.ac b/configure.ac index 869e3ed..6f2b5be 100644 --- a/configure.ac +++ b/configure.ac @@ -146,6 +146,11 @@ GNOME_COMPILE_WARNINGS([maximum]) GNOME_CXX_WARNINGS GNOME_MAINTAINER_MODE_DEFINES +AC_ARG_ENABLE([documentation], + AS_HELP_STRING([--enable-documentation], [enable man pages and HTML]), + [], [enable_documentation=yes]) +AM_CONDITIONAL(ENABLE_DOCUMENTATION, test x$enable_documentation = xyes) + GNOME_DOC_INIT AC_OUTPUT(Makefile -- 1.7.6.5