defs.mk: Remove subdirs without Makefile from FIND_SUBDIRS

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-04-24 17:43:46 +00:00
commit 7d176f84b7

View file

@ -254,7 +254,7 @@ AR ?= ar
endif
# makefile helpers
FIND_SUBDIRS = $(filter-out . .. ./nomake ./CVS $(addprefix ./,$(IGNORE_SUBDIRS)), $(shell find . -maxdepth 1 -type d))
FIND_SUBDIRS = $(filter-out . .. ./nomake ./CVS $(addprefix ./,$(IGNORE_SUBDIRS)), $(patsubst %/,%,$(dir $(shell find . -maxdepth 2 -mindepth 2 -iname Makefile))))
SUBDIRS_TO_ITERATE = $(filter-out $(IGNORE_SUBDIRS),$(SUBDIRS))
# compiler and linker