diff options
Diffstat (limited to 'make/subdir.mk')
-rw-r--r-- | make/subdir.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/make/subdir.mk b/make/subdir.mk index b0981dcb..900f7e6a 100644 --- a/make/subdir.mk +++ b/make/subdir.mk @@ -74,7 +74,11 @@ endif endef # Evaluate this now so we do not have to worry about order of evaluation. -SubDirsList := $(SubDirs:%=$(Dir)/%) + +SubDirsList := $(strip \ + $(if $(call streq,.,$(Dir)),\ + $(SubDirs),\ + $(SubDirs:%=$(Dir)/%))) ifeq ($(SubDirsList),) else ifneq ($(DEBUGMAKE),) |