aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-02-27 17:31:54 -0700
committerTom Tromey <tom@tromey.com>2022-03-01 16:54:18 -0700
commitc675db743ec2634f1f5f185fa8a6e73eb59447f7 (patch)
tree8b8af145edb7e0632563b69569dfee94563309b1
parent17dccf103190198e985169b4f4e0e210e6b3a5aa (diff)
downloadfsf-binutils-gdb-c675db743ec2634f1f5f185fa8a6e73eb59447f7.zip
fsf-binutils-gdb-c675db743ec2634f1f5f185fa8a6e73eb59447f7.tar.gz
fsf-binutils-gdb-c675db743ec2634f1f5f185fa8a6e73eb59447f7.tar.bz2
Some "distclean" fixes in gdb
PR build/12440 points out that "make distclean" is broken in gdb. Most of the breakage comes from other projects in the tree, but we can fix some of the issues, which is what this patch does. Note that the yacc output files, like c-exp.c, are left alone. In a source distribution, these are included in the tarball, and if the user builds in-tree, we would not want to remove them. While that seems a bit obscure, it seems to me that "distclean" is only really useful for in-tree builds anyway -- out-of-tree I simply delete the entire build directory and start over. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=12440
-rw-r--r--gdb/Makefile.in2
-rw-r--r--gdb/testsuite/Makefile.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 6cbbc32..db0125b 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1959,7 +1959,7 @@ clean mostlyclean: $(CONFIG_CLEAN)
# functionality described is if the distributed files are unmodified.
distclean: clean
@$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(CLEANDIRS)" subdir_do
- rm -f nm.h config.status config.h stamp-h b jit-reader.h
+ rm -f nm.h config.status config.h stamp-h b jit-reader.h gcore stamp-nmh
rm -f gdb-gdb.py gdb-gdb.gdb
rm -f y.output yacc.acts yacc.tmp y.tab.h
rm -f config.log config.cache
diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in
index 0bfcbdc..790b9e0 100644
--- a/gdb/testsuite/Makefile.in
+++ b/gdb/testsuite/Makefile.in
@@ -353,7 +353,7 @@ clean mostlyclean:
distclean maintainer-clean realclean: clean
-rm -f *~ core
- -rm -f Makefile config.status *-init.exp
+ -rm -f Makefile config.status *-init.exp lib/pdtrace
-rm -fr *.log summary detail *.plog *.sum *.psum site.*
Makefile : Makefile.in config.status $(host_makefile_frag)