aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32/local.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-11-05 14:35:00 +0700
committerMike Frysinger <vapier@gentoo.org>2022-11-05 16:26:08 +0700
commit63bf33ff90b1bf1e2278259648173bfebaac2e9c (patch)
treea5844e430999ddf4bc12c61da51a9afafb5ec843 /sim/erc32/local.mk
parentcb9bdc02fdf1650341276861f6ca7e7a215a1ce6 (diff)
downloadfsf-binutils-gdb-63bf33ff90b1bf1e2278259648173bfebaac2e9c.zip
fsf-binutils-gdb-63bf33ff90b1bf1e2278259648173bfebaac2e9c.tar.gz
fsf-binutils-gdb-63bf33ff90b1bf1e2278259648173bfebaac2e9c.tar.bz2
sim: build: move install steps to the top-level
We still have to maintain custom install rules due to how we rename arch-specific files with an arch prefix in their name, but we can at least unify the logic in the common dir.
Diffstat (limited to 'sim/erc32/local.mk')
-rw-r--r--sim/erc32/local.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/sim/erc32/local.mk b/sim/erc32/local.mk
index cf88a71..3b858a6 100644
--- a/sim/erc32/local.mk
+++ b/sim/erc32/local.mk
@@ -17,3 +17,9 @@
%C%docdir = $(docdir)/%C%
%C%doc_DATA = %D%/README.erc32 %D%/README.gdb %D%/README.sis
+
+SIM_INSTALL_EXEC_LOCAL_DEPS += sim-%D-install-exec-local
+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)