Matt McCutchen's Web Site
/
mgear
/
mgear.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
More experimentation with obfuscation. Wondering why it is slow.
[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-.: