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.


_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to