[RFA] Makefile.in (clean): rm -f $(DEPDIR)/*.

Doug Evans dje@google.com
Mon Mar 2 16:31:00 GMT 2009


On Sun, Mar 1, 2009 at 5:06 PM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Doug" == Doug Evans <dje@google.com> writes:
>
> Doug> make: *** No rule to make target `../../../src/gdb/signals/signals.c',
> Doug> needed by `signals.o'.  Stop.
> Doug> This is because signals.c has moved, but .deps/mumble still refers to
> Doug> the old location.
>
> Thanks, I see.
>
> Your patch is ok.
>
> It is interesting that I have never run across this particular failure
> before.  This style of dependency tracking has been in use for a long
> time...
>
> I think the underlying problem is a bug in gcc.  I think -MP ought to
> emit a dummy target for the primary source file as well.  I made a
> note to fix this in libcpp.

I don't disagree, but it seems like .deps should be cleared out with a
"make clean" regardless.  After a configure the build directory is
clean and .deps is empty (or doesn't exist).  For consistency sake, it
makes sense to have the same after a "make clean".



More information about the Gdb-patches mailing list