addprefix % ??
David Holmes
david.holmes at oracle.com
Wed Aug 29 00:53:17 PDT 2012
Hi Erik,
On 29/08/2012 5:05 PM, Erik Joelsson wrote:
> The % character is a wildcard for the filter-out function.
Ah I see - the light dawns. :) The addprefix does literally add the %
which then acts as the wildcard. I hadn't made the connection because
filter-out doesn't describe the pattern format (you have to read patsubst).
> By prepending
> it to all the filenames in NOT_JRE_LIB_FILES, that list can be used to
> filter the full path list in ALL_LIB_LIST.
Got it.
Thanks,
David
>
> /Erik
>
> On 2012-08-29 07:31, David Holmes wrote:
>> In the following:
>>
>> JDKJRE_LIB_LIST := $(filter-out $(addprefix
>> %,$(NOT_JRE_LIB_FILES)),$(ALL_LIB_LIST))
>>
>> what does the % do as part of the add prefix? Does it literally add a
>> % character? If so how is that then used? If I print out the variable
>> there are no % values.
>>
>> ???
>>
>> Thanks,
>> David
More information about the build-infra-dev
mailing list