# Seeing how long it takes Make to recursively list a directory. define flist1 $(if $3,$(foreach 4,$3,$(call flist,$1,$4)),$(info $(2:$1/%=%))) endef define flist $(call flist1,$1,$2,$(filter-out %/. %/..,$(wildcard $2/.* $2/*))) endef flist-%: $(call flist,$*,$*) flist-.: