|
From: | arvind raju |
Subject: | Re: Problem generating dependency files |
Date: | Sat, 8 May 2010 11:30:29 +0530 |
On Thu, May 6, 2010 at 2:02 AM, nature <address@hidden> wrote:
> I got away with the problem by making use of the compiler switch "-MD" to
> get the dependency files during compilation itself .
> When i included this .d files, make takes lot of time to build (its almost
> hung).
> Even before this change ,build was slow, but after this change its worst.
> I run make in the debug mode to find out where the problem is and was
> surprised to see the log message.
> Inspite of using VPATH to find for the source files, make searches it> What is going wrong here? any suggestions please??
> elsewhere and at the end it looks into the path specified in the VPATH .
>
Try adding rules for the Makefile and dependency files that do nothing, ala:
Makefile:
%.d:
Those will short-circuit make's "how do I build this make file?" search.
(If you actually build your Makefile, perhaps from RCS or similar,
then you should obviously not use an empty rule for it.)
Philip Guenther
[Prev in Thread] | Current Thread | [Next in Thread] |