help-make
[Top][All Lists]
Advanced

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

RE: how to allow multiple empty commands?


From: Mark Galeck (CW)
Subject: RE: how to allow multiple empty commands?
Date: Thu, 4 Feb 2010 08:46:15 -0800

> seems to be a completely arbitrary and nonsensical
special case.

Hmm,  here is why I intended to use this.  I have lots of source and header 
files, 10's of thousands, each source depending on thousands of headers, and 
speed of compilation counts (developer cycle turnaround time).  One of the 
things that take time, I think, is make trying to "build" all those source and 
header files, every time it encounters a header file prerequisite 
(automatically generated) for an object file, and for each object file 
typically there are thousands, each time, it tries to find implicit rules for 
that header file.  

So I thought, the best way to tell make, to not look for implicit rules for 
header files, is to have lines like 

foobar.h:;

in all my automatically generated dependency makefiles.  The problem is, 
thousands of those makefiles are always included, and they have all those 
duplicate lines, each header file, is present in many of them.  


I know there are other ways to collect all the sources in one place etc.. but I 
also have to look at the cost of rebuilding the dependencies (Perl) and all 
that, and from what I can see, the fastest turnaround time would be to do the 
above.  But I can't due to make complaining.  Well I can, it's just that I have 
to dump the warnings into a devnull. Somehow this doesn't seem right :) 






reply via email to

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