From: Julien Grall Subject: [PATCH 1/2] docs: Look for documentation in sub-directories Date: Sat, 20 Jun 2015 12:37:13 +0100 Message-ID: <1434800234-9268-2-git-send-email-julien.grall@citrix.com> References: <1434800234-9268-1-git-send-email-julien.grall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z6H64-0001zI-ER for xen-devel@lists.xenproject.org; Sat, 20 Jun 2015 11:38:04 +0000 In-Reply-To: <1434800234-9268-1-git-send-email-julien.grall@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: keir@xen.org, ian.campbell@citrix.com, ian.jackson@eu.citrix.com, tim@xen.org, Julien Grall , jbeulich@suse.com List-Id: xen-devel@lists.xenproject.org The ARM documentation is living in a specific folder under misc. Until now, it was skipped during building. In order to avoid missing future directory, use find to look for a specific file pattern through all the directory. Note the we already use find in other Makefile. Signed-off-by: Julien Grall --- I found some solution based on wildcard (**/*.cfg) but it seems that it's no compatible with every version of gmake. This patch is candidate for a backport to Xen 4.5 and Xen 4.4 (first official ARM release) where the ARM documentations is not exported for now. --- docs/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index 60bc541..0ee6808 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -7,16 +7,16 @@ VERSION := $(shell $(MAKE) -C $(XEN_ROOT)/xen --no-print-directory xenversion) DOC_ARCHES := arm x86_32 x86_64 # Documentation sources to build -MAN1SRC-y := $(sort $(wildcard man/xl*.pod.1)) -MAN1SRC-y += $(sort $(wildcard man/xenstore*.pod.1)) +MAN1SRC-y += $(sort $(shell find man -name 'xl*.pod.1' -print)) +MAN1SRC-y += $(sort $(shell find man -name 'xenstore*.pod.1' -print)) -MAN5SRC-y := $(sort $(wildcard man/xl*.pod.5)) +MAN5SRC-y := $(sort $(shell find man 'xl*.pod.5' -print)) -MARKDOWNSRC-y := $(sort $(wildcard misc/*.markdown)) +MARKDOWNSRC-y := $(sort $(shell find misc '*.markdown' -print)) -TXTSRC-y := $(sort $(wildcard misc/*.txt)) +TXTSRC-y := $(sort $(shell find misc -name '*.txt' -print)) -PANDOCSRC-y := $(sort $(wildcard specs/*.pandoc)) +PANDOCSRC-y := $(sort $(shell find specs -name '*.pandoc' -print)) # Documentation targets DOC_MAN1 := $(patsubst man/%.pod.1,man1/%.1,$(MAN1SRC-y)) -- 2.1.4