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 :-(


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to