Revision 14760
Added by Aaron Marcuse-Kubitza about 10 years ago
trunk/lib/common.Makefile | ||
---|---|---|
29 | 29 |
ci = $(1) $(ucase) |
30 | 30 |
|
31 | 31 |
# Filesystem |
32 |
wildcard/ = $(shell bash -c 'shopt -s nullglob; echo $(1)')
|
|
32 |
wildcard/ = $(wildcard $(shell bash -c 'shopt -s nullglob; echo $(1)'))
|
|
33 | 33 |
# needed because builtin $(wildcard) doesn't do / suffix correctly |
34 |
# need final pass with $(wildcard) to support inputs without wildcard chars |
|
34 | 35 |
no/ = $(1:/=)# remove trailing / |
35 | 36 |
+w = $(wildcard $+)# existing items in $+ |
36 | 37 |
CP := cp -p |
Also available in: Unified diff
bugfix: lib/common.Makefile: $(wildcard/): need final pass with $(wildcard) to support inputs without wildcard chars