On 19 April 2007 14:19, Dave Korn wrote:
>> COMMA = ,
>> LIST_WITHOUT_COMMAS:=$(filter-out $(COMMA),$(LIST_WITH_COMMAS))
>
> Doesn't actually work in practice: as Danny pointed out, filter-out only
> matches entire words, but using a variable enabled subst to work.
Of course,
__lib_comma:=,
LIST_NOCOMMAS:=$(patsubst %$(__lib_comma),%,$(LIST))
works just as well.
cheers,
DaveK
--
Can't think of a witty .sigline today....
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make