Hi Dmitry,

On 2023-08-30 22:20, Dmitry Goncharov wrote:
> On Tuesday, August 29, 2023, Alejandro Colomar <a...@kernel.org> wrote:
> 
>> Hi Paul,
>>
>> On 2023-08-29 14:45, Paul Smith wrote:
>>> On Tue, 2023-08-29 at 11:32 +0200, Alejandro Colomar wrote:
>>>> Am I missing something?  Is something like that allowed anyhow?
>>>
>>> Multiple "%" are allowed, in that they won't throw an error.  But, only
>>> the first "%" is replaced.  The second (and subsequent) "%" are just
>>> normal characters, not pattern matching.
>>
>> Thanks!  That was my expectation before reading the docs.  Maybe you
>> could reword it to be explicit that only one % is used as a wildcard.
> 
> 
> Good morning.
> 
> The same paragraph says that after matching % the rest of the name must
> match exactly.
> However, be careful if you want to rely on this. We fixed it just recently.
> 4.3 and earlier would replace all %,

I ended up using $(foreach ... $(eval ...)).  I didn't know about $(eval)
before reading Paul's troubleshooting guide, and it was mind opening.  It
solves a limitation I thought GNU Make had but really hadn't.  :)

Cheers,
Alex

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to