This is the mail archive of the gdb-patches@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]

[obv] Fix an error in `make distclean'.


gnulib Makefile needs gdbserver's Makefile and config.status.  We can
only remove them after executing make in gnulib/, otherwise, we'll get
the following error,

 rm -f Makefile
 make[1]: Entering directory `/home/yao/SourceCode/gnu/gdb/cvs/src/gdb/gdbserver/gnulib'
 cd .. && make  am--refresh
 make[2]: Entering directory `/home/yao/SourceCode/gnu/gdb/cvs/src/gdb/gdbserver'
 make[2]: *** No rule to make target `am--refresh'.  Stop.
 make[2]: Leaving directory `/home/yao/SourceCode/gnu/gdb/cvs/src/gdb/gdbserver'
 make[1]: *** [../config.status] Error 2
 make[1]: Leaving directory `/home/yao/SourceCode/gnu/gdb/cvs/src/gdb/gdbserver/gnulib'
 make: *** [distclean] Error 2

Committed as obvious.

gdb/gdbserver:

2012-04-14  Yao Qi  <yao@codesourcery.com>

	* Makefile.in (maintainer-clean, realclean, distclean): Remove
	Makefile config.status at last.
---
 gdb/gdbserver/Makefile.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index 710129d..6225e65 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -319,9 +319,9 @@ clean:
 	@cd gnulib; $(MAKE) $(FLAGS_TO_PASS) $(GNULIB_FLAGS_TO_PASS) clean
 
 maintainer-clean realclean distclean: clean
-	rm -f nm.h tm.h xm.h config.status config.h stamp-h config.log
-	rm -f Makefile
+	rm -f nm.h tm.h xm.h config.h stamp-h config.log
 	@cd gnulib; $(MAKE) $(FLAGS_TO_PASS) $(GNULIB_FLAGS_TO_PASS) $@
+	rm -f Makefile config.status
 
 config.h: stamp-h ; @true
 stamp-h: config.in config.status
-- 
1.7.0.4


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