bug-make
[Top][All Lists]
Advanced

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

Re: feature request - order only deps


From: Matěj Týč
Subject: Re: feature request - order only deps
Date: Sat, 02 Feb 2013 18:38:44 +0100

On So, 2013-02-02 at 18:14 +0100, Sebastian Pipping wrote:
> On 02.02.2013 16:19, Matěj Týč wrote:
> > [...]
> 
> How about something like this?
> 
>   bar_deps = foo1 foo2
> 
>   bar: $(bar_deps)
> 
>   $(bar_deps):
>       $(MAKE) cache-foo
>       touch $@
> 
>   %:
>       touch $@
> 
> Now cache-foo is remade iff at least one of $(bar_deps) needs a rebuild.
> 
> Best,
> 
> 
> 
> Sebastian
> 

I have also thought of that, but this can work well reliably only in the
case if there is only one make job. If I specify -j4, it may happen that
all jobs will attempt to load the same cache simultaneously, which I
have to avoid :-(




reply via email to

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