help-make
[Top][All Lists]
Advanced

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

Re: how to suppress the included makefile not found warning?


From: Greg Chicares
Subject: Re: how to suppress the included makefile not found warning?
Date: Wed, 11 Feb 2004 15:15:16 -0500

David Wuertele wrote:
> 
> My makefile generates a dependency makefile automatically.  When it
> discovers the need to do this, it prints something like this:
> 
>   my.mk:65: targetdeps.mk: No such file or directory
> 
> This is not an error condition, and I don't really want to know about
> it.

Consider using this approach instead:
  http://make.paulandlesley.org/autodep.html

> I want to stop make from printing out this warning, but I don't want
> to stop make from automatically generating the targetdeps.mk file.  Is
> there a way to just silence the warning?

Prefix the 'include' directive with a hyphen.

Of course, when that prevents a warning, any dependency
file that gets generated later won't get included later,
which might be a problem.




reply via email to

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