Section 10.5.1 (
https://www.gnu.org/software/make/manual/make.html#Pattern-Rules:~:text=10.5.1-,Introduction%20to%20Pattern%20Rules,-A%20pattern%20rule
):

"A pattern rule contains the character ‘%’ (exactly one of them) in the
target"


On Sat, Oct 11, 2025 at 10:39 AM Pete Bennewitz via Users list for the GNU
implementation of make <[email protected]> wrote:

> Dear all,
>
> should the following work , please see attached example makefile - and I'm
> overlooking something ?
>
> 'make x.bar' works
> 'make d/x.foo' works too, and the dir is created before the touch, as
> planned.
>
> but 'make x/x.foo' doesn't, even if the subdir exists.
>
> So, using % twice in a target doesn't work  - or I'm overlooking the
> obvious ?
>
> TIA1e6, Pete
  • multiple ... Pete Bennewitz via Users list for the GNU implementation of make
    • Re: ... DSB

Reply via email to