From patchwork Sat Aug 30 12:48:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 4813401 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B551F9F38C for ; Sat, 30 Aug 2014 12:48:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B96682013A for ; Sat, 30 Aug 2014 12:48:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9E52620136 for ; Sat, 30 Aug 2014 12:48:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751228AbaH3MsU (ORCPT ); Sat, 30 Aug 2014 08:48:20 -0400 Received: from top.free-electrons.com ([176.31.233.9]:52839 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751032AbaH3MsQ (ORCPT ); Sat, 30 Aug 2014 08:48:16 -0400 Received: by mail.free-electrons.com (Postfix, from userid 106) id DF44775E; Sat, 30 Aug 2014 14:48:16 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from localhost (189.64.128.77.rev.sfr.net [77.128.64.189]) by mail.free-electrons.com (Postfix) with ESMTPSA id 915D0E8; Sat, 30 Aug 2014 14:48:16 +0200 (CEST) From: Thomas Petazzoni To: linux-btrfs@vger.kernel.org Cc: Gustavo Zacarias , Thomas Petazzoni Subject: [PATCH 1/2] Add support for DISABLE_DOCUMENTATION Date: Sat, 30 Aug 2014 14:48:09 +0200 Message-Id: <1409402890-22860-2-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1409402890-22860-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1409402890-22860-1-git-send-email-thomas.petazzoni@free-electrons.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Zacarias This commit adds the support for a make variable named "DISABLE_DOCUMENTATION", which allows to disable the build of the documentation. This is useful in contexts where the tools needed to build the documentation are not necessarily available. Signed-off-by: Gustavo Zacarias Signed-off-by: Thomas Petazzoni --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e721e99..926885f 100644 --- a/Makefile +++ b/Makefile @@ -57,10 +57,15 @@ btrfs_image_libs = -lpthread btrfs_fragments_libs = -lgd -lpng -ljpeg -lfreetype SUBDIRS = -BUILDDIRS = $(patsubst %,build-%,$(SUBDIRS)) build-Documentation -INSTALLDIRS = $(patsubst %,install-%,$(SUBDIRS)) install-Documentation +BUILDDIRS = $(patsubst %,build-%,$(SUBDIRS)) +INSTALLDIRS = $(patsubst %,install-%,$(SUBDIRS)) CLEANDIRS = $(patsubst %,clean-%,$(SUBDIRS)) +ifneq ($(DISABLE_DOCUMENTATION),1) +BUILDDIRS += build-Documentation +INSTALLDIRS += install-Documentation +endif + .PHONY: $(SUBDIRS) .PHONY: $(BUILDDIRS) .PHONY: $(INSTALLDIRS)