aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/Makefile.in
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2021-10-19 12:44:56 -0600
committerTom Tromey <tromey@adacore.com>2021-10-22 12:29:04 -0600
commitaab00c2dff7511883e46735ef5e4582acd4d9911 (patch)
tree5419298cf12aa550acf75bb52576ef854f6bb415 /gdbserver/Makefile.in
parent63b868ddf8798c69d7b695952cf602e610183fef (diff)
downloadgdb-aab00c2dff7511883e46735ef5e4582acd4d9911.zip
gdb-aab00c2dff7511883e46735ef5e4582acd4d9911.tar.gz
gdb-aab00c2dff7511883e46735ef5e4582acd4d9911.tar.bz2
Fix 'uninstall' target
This adds some missing code to the 'uninstall' targets in gdb and gdbserver. It also changes gdb's uninstall target so that it no longer tries to remove any man page -- this is already done (and more correctly) by doc/Makefile.in. I tested this with 'make install' followed by 'make uninstall', then examining the install tree for regular files. Only the 'dir' file remains, but this appears to just be how 'install-info' is intended to work.
Diffstat (limited to 'gdbserver/Makefile.in')
-rw-r--r--gdbserver/Makefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in
index a9ca88a..0a2381b 100644
--- a/gdbserver/Makefile.in
+++ b/gdbserver/Makefile.in
@@ -326,7 +326,10 @@ install-strip:
uninstall: force
n=`echo gdbserver | sed '$(program_transform_name)'`; \
if [ x$$n = x ]; then n=gdbserver; else true; fi; \
- rm -f $(DESTDIR)/$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(man1dir)/$$n.1
+ if [ x"$(IPA_DEPFILES)" != x ]; then \
+ rm -f $(DESTDIR)$(libdir)/$(IPA_LIB); \
+ fi; \
+ rm -f $(DESTDIR)/$(bindir)/$$n$(EXEEXT)
installcheck:
check: