From 3985c929aead162304e70900ee4fb22b6add707c Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sat, 29 Jun 2019 19:09:08 +0000 Subject: [PATCH] topdir.mk: Ignore SUBDIRS without Makefile Signed-off-by: Jan Lindemann --- make/topdir.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/make/topdir.mk b/make/topdir.mk index efeca9db..460db685 100644 --- a/make/topdir.mk +++ b/make/topdir.mk @@ -6,9 +6,10 @@ config: mrproper:distclean topdir.mrproper ifeq ($(ORDERED_SUBDIRS),) -SUBDIRS ?= $(wildcard inst/pre make scripts contrib src libsrc \ - tools include lib bin util exe plugins conf config cfg \ - images htdocs tmpl doc test inst/post) +SUBDIRS ?= $(dir $(wildcard $(addsuffix /Makefile,\ + inst/pre make scripts contrib src libsrc \ + tools include lib bin util exe plugins conf config cfg \ + images htdocs tmpl doc test inst/post))) endif ifeq ($(USE_USER_URL),true)