Here's what I have so far related to the Mage build tool.
[mgear/mgear.git] / experiments / flist.mk
1 # Seeing how long it takes Make to recursively list a directory.
2
3 define flist1
4 $(if $3,$(foreach 4,$3,$(call flist,$1,$4)),$(info $(2:$1/%=%)))
5 endef
6
7 define flist
8 $(call flist1,$1,$2,$(filter-out %/. %/..,$(wildcard $2/.* $2/*)))
9 endef
10
11 flist-%:
12         $(call flist,$*,$*)
13
14 flist-.: