help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about pattern rule with multiple targets


From: Paul Smith
Subject: Re: Question about pattern rule with multiple targets
Date: Fri, 27 Jun 2014 17:47:07 -0400

On Fri, 2014-06-27 at 14:20 -0400, Tom Varga wrote:

> If there is a more appropriate forum for asking gnumake questions,
> please let me know.  However, I'm hoping that this is a short enough
> question, that you might be able to quickly answer it for me.

It's best to use either address@hidden or address@hidden rather
than email me directly.

> %.bar1 %.bar2 : %.foo
>         touch $(*F).bar1
>         touch $(*F).bar2
> 
> > touch a.foo
> > make a.bar1
> touch a.bar1
> touch a.bar2
> > make a.bar1
> make: 'a.bar1' is up to date.
> > rm a.bar2
> > make a.bar1
> make: 'a.bar1' is up to date.
> > make a.bar2
> touch a.bar1
> touch a.bar2
> 
> What I was really hoping is that make would consider both a.bar1 and
> a.bar2 to be required outputs of the rule and if one of them is
> deleted, then both the .bar1 and .bar2 targets should be considered
> out-of-date.

I believe it's supposed to work this way, but there's a bug; I think
it's https://savannah.gnu.org/bugs/?12078

Unfortunately it got lost on the stack for a really long time as you can
see.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]