This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] gdbserver: Clear .deps on clean


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=65dd1e590e519eba10bc29fb6e952271e0604c9b

commit 65dd1e590e519eba10bc29fb6e952271e0604c9b
Author: Simon Marchi <simon.marchi@ericsson.com>
Date:   Tue Apr 4 10:48:24 2017 -0400

    gdbserver: Clear .deps on clean
    
    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.

Diff:
---
 gdb/gdbserver/ChangeLog   | 4 ++++
 gdb/gdbserver/Makefile.in | 1 +
 2 files changed, 5 insertions(+)

diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 7ad8418..39aea2f 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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.
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index 6af7c40..01dfdc0 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]