[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: how to instruct gmake to read included fragmented makefiles paralall
From: |
Divakar Venkata (divvenka) |
Subject: |
RE: how to instruct gmake to read included fragmented makefiles paralally.. |
Date: |
Sat, 23 Jun 2007 04:32:10 +0530 |
> -----Original Message-----
> From: David Boyce [mailto:address@hidden
> 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) <address@hidden> 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