help-make
[Top][All Lists]
Advanced

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

Re: improvements for parallel makes ?


From: Alexey Neyman
Subject: Re: improvements for parallel makes ?
Date: Thu, 6 Apr 2006 12:40:07 +0400
User-agent: KMail/1.6.2

Boris,

I'll refresh the patch as soon as I'll be able to; expect next week.

Regards,
Alexey.

On Thursday 06 April 2006 12:20, Boris Kolpackov wrote:
> Alexey,
> 
> Alexey Neyman <address@hidden> writes:
> 
> > Ok, let's consider the following makefile fragment:
> >
> > <<<<<<
> > local_objects = a.o b.o c.o d.o
> >
> > all: all-recursive all-local
> >
> > all-recursive:
> >     $(MAKE) -C subdir all
> >
> > all-local: % all-recursive
> >
> > all-local: $(local_objects)
> > <<<<<<
> >
> > The intention is clear: the recursive make in subdirectories shall 
be
> > finished before local objects are remade. However, with this
> > makefile, make will behave as follows:
> >
> > 1. make will start a job for "all-recursive" target
> > 2. make will notice that it has spare jobs, and will consider the
> > target all-local.
> > 3. all-local target has dependencies, and before making all-local
> > target itself, make will update its dependencies - in parallel 
with
> > the running "all-recursive" job.
> 
> Thanks for refreshing my memory. I guess you are right about the
> further relaxed order-only prerequisites being too low-level.
> Maybe it is a good idea to implement .WAIT in terms of them, as
> you have suggested.
> 
> -boris
> 
> 
> 
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make
> 

-- 
We are intelligent and clever, though you would never call us cunning.
                        -- Spathi, SC2




reply via email to

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