I've recently come up with a nifty way to detect subdirectories:
ALLFILES := $(notdir $(wildcard $(d)/*))
# figure out which files are subdirs by wildcarding on /.
SUBDIRS := $(notdir $(patsubst %/.,%,$(wildcard $(addprefix
$(d)/,$(addsuffix /.,$(ALLFILES))
This is useful for scanning whole d
I've recently come up with a nifty way to detect subdirectories:
ALLFILES := $(notdir $(wildcard $(d)/*))
# figure out which files are subdirs by wildcarding on /.
SUBDIRS := $(notdir $(patsubst %/.,%,$(wildcard $(addprefix
$(d)/,$(addsuffix /.,$(ALLFILES))
This is useful for scanning whole d