aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-11-05 14:44:15 +0700
committerMike Frysinger <vapier@gentoo.org>2022-11-05 16:26:15 +0700
commit59d8576e4ff7e6467fab3ea894baa72c8400e22a (patch)
tree7d4c766b4c8eb7349f23c87a435615914c463393 /sim/erc32
parent63bf33ff90b1bf1e2278259648173bfebaac2e9c (diff)
downloadgdb-59d8576e4ff7e6467fab3ea894baa72c8400e22a.zip
gdb-59d8576e4ff7e6467fab3ea894baa72c8400e22a.tar.gz
gdb-59d8576e4ff7e6467fab3ea894baa72c8400e22a.tar.bz2
sim: build: add uninstall support
This never worked before, but adding it to the common top-level dir is pretty easy to do now that we're unified.
Diffstat (limited to 'sim/erc32')
-rw-r--r--sim/erc32/local.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/erc32/local.mk b/sim/erc32/local.mk
index 3b858a6..36baeb9 100644
--- a/sim/erc32/local.mk
+++ b/sim/erc32/local.mk
@@ -23,3 +23,7 @@ sim-%D-install-exec-local: installdirs
$(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
n=`echo sis | sed '$(program_transform_name)'`; \
$(INSTALL_PROGRAM) %D%/sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
+
+SIM_UNINSTALL_LOCAL_DEPS += sim-%D%-uninstall-local
+sim-%D%-uninstall-local:
+ rm -f $(DESTDIR)$(bindir)/sis