On Tue, Jan 27, 2009 at 8:59 PM, willard <pie...@willard.com> wrote:
> When using the "-include filename"(instead of just "include filename"), if
> this filename includes dependencies that are missing, makefile does not show
> those missing dependencies...
>
> For example, if using:
>
> -include foo.d
>
> with foo.d being:
>
> foo.o: foo.c xxx.h
>
> Let's say xxx.h does not exist (and cannot be generated) , the make fails,
> but it does not say it's because of xxx.h missing.

Well, what _does_ it say?  When I set up things to match your
description, it mentions xxx.h for me:

$ ls
Makefile foo.c    foo.d
$ cat Makefile
all: foo
-include foo.d
$ cat foo.d
foo.o: foo.c xxx.h
$ make
make: *** No rule to make target `xxx.h', needed by `foo.o'.  Stop.
$ make --version | head -1
GNU Make 3.81


Philip Guenther


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to