Revision 5913
Added by Aaron Marcuse-Kubitza over 12 years ago
common.Makefile | ||
---|---|---|
23 | 23 |
*2Space = $(call _2Space,$*) |
24 | 24 |
|
25 | 25 |
# Filesystem |
26 |
wildcard/ = $(shell echo $(1)|grep -vF '*')# emulate `shopt -s nullglob`
|
|
26 |
wildcard/ = $(shell bash -c 'shopt -s nullglob; echo $(1)')
|
|
27 | 27 |
# needed because builtin $(wildcard) doesn't do / suffix correctly |
28 | 28 |
no/ = $(1:/=)# remove trailing / |
29 | 29 |
+w = $(wildcard $+)# existing items in $+ |
Also available in: Unified diff
lib/common.Makefile: Filesystem: $(wildcard/): Fixed bug where {} exprs weren't handled correctly when some branches contained *, by using `shopt -s nullglob` and bash directly instead of trying to emulate it with grep