[Top][All Lists]

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

Re: Interating over Target List with Jobs?

From: Erik Rull
Subject: Re: Interating over Target List with Jobs?
Date: Mon, 31 May 2010 00:30:33 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20100317 SeaMonkey/2.0.4

Hi Per,

Per Jessen wrote:
Erik Rull wrote:
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:

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".

Any ideas how to approach that?

         make -C mod1 clean
         make -C mod2 clean
         make -C mod2 clean
         make -C mod2 clean
         make -C mod2 clean

clean: clean1 clean2 clean3 clean4 clean5

/Per Jessen, Z├╝rich

Hm, well, yes - this could be possbile - but quite brute-force ;-)
If I add a new module, just the list of targets gets extended and I've nothing to change in the makefile - with your approach a new clean rule must be added manually.

Best regards,


reply via email to

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