[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Static pattern rules with more than one '%'
From: |
Alejandro Colomar |
Subject: |
Re: Static pattern rules with more than one '%' |
Date: |
Thu, 31 Aug 2023 00:08:44 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 |
Hi Dmitry,
On 2023-08-30 22:20, Dmitry Goncharov wrote:
> On Tuesday, August 29, 2023, Alejandro Colomar <alx@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
OpenPGP_signature
Description: OpenPGP digital signature