List Info

Thread: RE: how to instruct gmake to read included fragmented makefiles paralally..




RE: how to instruct gmake to read included fragmented makefiles paralally..
country flaguser name
United States
2007-06-22 18:02:10
 

> -----Original Message-----
> From: David Boyce [mailto:dsbboyski.com] 
> Sent: Thursday, June 21, 2007 6:09 AM
> Subject: Re: how to instruct gmake to read included 
> fragmented makefiles paralally..
> 
> At 03:44 AM 6/21/2007, Philip Guenther wrote:
> >On 6/21/07, Divakar Venkata (divvenka)
<divvenkacisco.com> wrote:
> >>We use non-recursive make system with over
1000+ fragmented 
> makefiles 
> >>all over source code. We have seen make
spending lot of time in 
> >>reading these files and calculating dependency
graph before 
> starting 
> >>build.
> 
> I also agree with Philip, with a couple of additional
points:
> 
> 1. I measure the parsing phase by adding a phony target

> called "nothing". Then, running
> 
>          time make nothing
> 
> should, in theory, do a good job approximating the cost
of the first
> (parse) phase.
> 


It is pretty fast..less than a sec..!

<bash > time make nothing
calling target nothing

real    0m0.223s
user    0m0.100s
sys     0m0.000s

But we do not include all fragmented makefiles
in the targets given. We create a makefile_list
to include by parsing make arguments.. So in case
of nothing target we do not include any of makefiles
for components in source so it is pretty fast.

thanks for helping out..
Divakar


_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )