Project

General

Profile

« Previous | Next » 

Revision 14760

bugfix: lib/common.Makefile: $(wildcard/): need final pass with $(wildcard) to support inputs without wildcard chars

View differences:

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