On Thu, May 6, 2010 at 2:02 AM, nature <[email protected]> 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


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to