help-make
[Top][All Lists]
Advanced

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

Re: Problem generating dependency files


From: Philip Guenther
Subject: Re: Problem generating dependency files
Date: Thu, 6 May 2010 09:13:01 -0700

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
> elsewhere and at the end it looks into the path specified in the VPATH .
>
> What is going wrong here? any suggestions please??

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




reply via email to

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