From patchwork Thu Mar 10 15:51:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 8558581 Return-Path: X-Original-To: patchwork-linux-nvdimm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CAF33C0553 for ; Thu, 10 Mar 2016 15:51:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C4FFC20376 for ; Thu, 10 Mar 2016 15:51:43 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 47B2520375 for ; Thu, 10 Mar 2016 15:51:42 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 09A221A1F6B; Thu, 10 Mar 2016 07:51:57 -0800 (PST) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by ml01.01.org (Postfix) with ESMTP id 72FFC1A1F6B for ; Thu, 10 Mar 2016 07:51:56 -0800 (PST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP; 10 Mar 2016 07:51:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,316,1455004800"; d="scan'208";a="63615503" Received: from dwillia2-desk3.jf.intel.com ([10.54.39.14]) by fmsmga004.fm.intel.com with ESMTP; 10 Mar 2016 07:51:42 -0800 Subject: [ndctl PATCH] ndctl: add '--disable-docs' option to configure From: Dan Williams To: linux-nvdimm@lists.01.org Date: Thu, 10 Mar 2016 07:51:15 -0800 Message-ID: <20160310155115.29036.52353.stgit@dwillia2-desk3.jf.intel.com> User-Agent: StGit/0.17.1-9-g687f MIME-Version: 1.0 Cc: Arjan van de Ven X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For environments that want to build without the documentation add an option to omit the Documentation/ sub-directory. Reported-by: Arjan van de Ven Signed-off-by: Dan Williams --- Makefile.am | 2 ++ configure.ac | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/Makefile.am b/Makefile.am index ce97a15c7c0d..84582771e97d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,7 @@ EXTRA_DIST = +if ENABLE_DOCS SUBDIRS = . Documentation +endif CLEANFILES = ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} AM_MAKEFLAGS = --no-print-directory diff --git a/configure.ac b/configure.ac index 9506e8e7dd25..96a02d9f9972 100644 --- a/configure.ac +++ b/configure.ac @@ -58,6 +58,15 @@ AS_IF([test "x$enable_logging" = "xyes"], [ AC_DEFINE(ENABLE_LOGGING, [1], [System logging.]) ]) +AC_ARG_ENABLE([docs], + AS_HELP_STRING([--disable-docs], + [disable documentation build @<:@default=enabled@:>@]), + [], enable_docs=yes) +AS_IF([test "x$enable_docs" = "xyes"], [ + AC_DEFINE(ENABLE_DOCS, [1], [Documentation / man pages.]) +]) +AM_CONDITIONAL([ENABLE_DOCS], [test "x$enable_docs" = "xyes"]) + AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]), [], [enable_debug=no])