aboutsummaryrefslogtreecommitdiff
path: root/sim/common
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/common
parentcb9bdc02fdf1650341276861f6ca7e7a215a1ce6 (diff)
downloadgdb-63bf33ff90b1bf1e2278259648173bfebaac2e9c.zip
gdb-63bf33ff90b1bf1e2278259648173bfebaac2e9c.tar.gz
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/common')
-rw-r--r--sim/common/Make-common.in34
1 files changed, 1 insertions, 33 deletions
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in
index 18dcd36..c424fe7 100644
--- a/sim/common/Make-common.in
+++ b/sim/common/Make-common.in
@@ -59,21 +59,6 @@ endif
GNULIB_PARENT_DIR = ../..
include $(GNULIB_PARENT_DIR)/gnulib/Makefile.gnulib.inc
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-
-bindir = @bindir@
-
-libdir = @libdir@
-tooldir = $(libdir)/$(target_alias)
-
-datadir = @datadir@
-datarootdir = @datarootdir@
-mandir = @mandir@
-man1dir = $(mandir)/man1
-infodir = @infodir@
-includedir = @includedir@
-
# This can be referenced by the gettext configuration code.
top_builddir = ..
@@ -115,8 +100,6 @@ SIM_EXTRA_CFLAGS =
SIM_EXTRA_LIBS =
# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o
-# Dependency of `install' to install any extra files.
-SIM_EXTRA_INSTALL =
# Dependency of `clean' to clean any extra files.
SIM_EXTRA_CLEAN =
# Likewise `distclean'
@@ -322,23 +305,8 @@ stamp-modules: Makefile $(SIM_OBJS:.o=.c)
# Support targets.
-install: install-common $(SIM_EXTRA_INSTALL)
-
-install-common: installdirs
- a=`basename "$$(pwd)"`; \
- n=`echo run | sed '$(program_transform_name)'`; \
- [ "$(SIM_PRIMARY_TARGET)" = "$$a" ] || n="$$n-$$a"; \
- $(INSTALL_PROGRAM) run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
- n=`echo sim | sed '$(program_transform_name)'`; \
- a=`basename "$$(pwd)"`; \
- [ "$(SIM_PRIMARY_TARGET)" = "$$a" ] || n="$$n-$$a"; \
- n="lib$$n.a"; \
- $(INSTALL_DATA) libsim.a $(DESTDIR)$(libdir)/$$n ; \
- ( cd $(DESTDIR)$(libdir) ; $(RANLIB) $$n )
-
+install:
installdirs:
- $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir)
- $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir)
check: