gdbserver: Clear .deps on clean
authorSimon Marchi <simon.marchi@ericsson.com>
Tue, 4 Apr 2017 14:48:24 +0000 (10:48 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 4 Apr 2017 14:50:01 +0000 (10:50 -0400)
In some situations, the dependency tracking files in .deps can refer to
source files that were removed or renamed, leading to errors like:

  make: *** No rule to make target `version.c', needed by `version.o'. Stop.

This patch makes the clean target clear the .deps directory, which gives
the user a chance to recover from the error wihtout knowing about the
internals of the build system.

It is already done for GDB.  See here for more details:

  https://sourceware.org/ml/gdb-patches/2009-03/msg00000.html

gdb/gdbserver/ChangeLog:

* Makefile.in (clean): Clear .deps.

gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in

index 7ad841880edf8c7e2124d0331f7c5d07c0bd9eab..39aea2fe0dbc13c7572c6e8d4488c179ba7b073a 100644 (file)
@@ -1,3 +1,7 @@
+2017-04-04  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * Makefile.in (clean): Clear .deps.
+
 2017-03-31  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * .gitignore: Remove generated files, replace with wildcard.
index 6af7c402f8a07837a3e61d3bc41e62c83118da81..01dfdc0b890306e7e8a426e1ef9e56e03e0e6078 100644 (file)
@@ -417,6 +417,7 @@ clean:
        rm -f $(IPA_LIB)
        rm -f *-generated.c
        rm -f stamp-xml
+       rm -f $(DEPDIR)/*.Po
        @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
 
 maintainer-clean realclean distclean: clean
This page took 0.03512 seconds and 4 git commands to generate.