docs: Look for documentation in sub-directories
authorJulien Grall <julien.grall@citrix.com>
Sat, 20 Jun 2015 11:37:13 +0000 (12:37 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 25 Jun 2015 10:00:26 +0000 (11:00 +0100)
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 <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
docs/Makefile

index 60bc54100ace9375f55703770a8bdab75ab3168c..0ee6808ade6f07d5960544a0786480c94052c22f 100644 (file)
@@ -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))