apps/builtin/Makefile: Move the RWILDCARD function definition from apps/builtin/Makefile to nuttx/tools/Config.mk. It may have a broader usage than it does now.

This commit is contained in:
Gregory Nutt 2018-08-15 18:46:04 -06:00
parent 904d68cd1f
commit 9e9072bd00

View File

@ -60,12 +60,6 @@ endif
ROOTDEPPATH = --dep-path . ROOTDEPPATH = --dep-path .
VPATH = VPATH =
# RWILDCARD - Recursive wildcard used to get lists of files
define RWILDCARD
$(foreach d,$(wildcard $1/*),$(call RWILDCARD,$d/)$(filter $(subst *,%,$2),$d))
endef
# Registry entry lists # Registry entry lists
PDATLIST = $(call RWILDCARD, registry, *.pdat) PDATLIST = $(call RWILDCARD, registry, *.pdat)