help-make
[Top][All Lists]
Advanced

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

Re: Interating over Target List with Jobs?


From: Oleksandr Gavenko
Subject: Re: Interating over Target List with Jobs?
Date: Mon, 31 May 2010 09:36:38 +0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

On 2010.05.28 23:23, Erik Rull wrote:
Hi all,

I've a list of targets each in a different directory that was built and
now I want to clean them up. Each directory has a own "clean" make
target, so I wrote in the base directory makefile:

clean:
for MODULE in $(MODULE_LIST); do make -C $$MODULE clean; done

But this iterates only module by module and does not allow any jobserver
operation via "+ make".

I would like to make clean in parallel because there is not only
deleting of files in it but a bit more so it can be really parallelized.

A similar problem appears in if - statements they are all within the
same commandline and cannot be handled via "+ make" and the jobserver.

'clean' target usually removes files. If your fs is not on RAID
it  is scarcely probable getting speedup with parallel build.

--
С уважением, Александр Гавенко.



reply via email to

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