Revision 14899
Added by Aaron Marcuse-Kubitza about 10 years ago
trunk/lib/common.Makefile | ||
---|---|---|
32 | 32 |
wildcard/ = $(wildcard $(shell bash -c 'shopt -s nullglob; echo $(1)')) |
33 | 33 |
# needed because builtin $(wildcard) doesn't do / suffix correctly |
34 | 34 |
# need final pass with $(wildcard) to support inputs without wildcard chars |
35 |
wildcard+suffix = $(wildcard/:%=%$(2)) |
|
36 |
# on Linux, builtin $(wildcard) doesn't handle suffixes that don't exist |
|
35 | 37 |
no/ = $(1:/=)# remove trailing / |
36 | 38 |
+w = $(wildcard $+)# existing items in $+ |
37 | 39 |
CP := cp -p |
Also available in: Unified diff
lib/common.Makefile: added $(wildcard+suffix), needed because on Linux, builtin $(wildcard) doesn't handle suffixes that don't exist