From: Daniel Jacobowitz Date: Wed, 18 May 2005 01:54:39 +0000 (+0000) Subject: * Make-common.in (install-common, installdirs): Honor $DESTDIR. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=149cfe5bb4a7ede3dabf1e9cee86472e408ec068;p=binutils-gdb.git * Make-common.in (install-common, installdirs): Honor $DESTDIR. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 1d18f7d3704..82281e3185a 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2005-05-17 Daniel Jacobowitz + + * Make-common.in (install-common, installdirs): Honor $DESTDIR. + 2005-04-20 Manoj Iyer * sim-types.h: Changed unsigned32 and unsigned64 to signed32 diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in index ed35cf6e109..37162c2b861 100644 --- a/sim/common/Make-common.in +++ b/sim/common/Make-common.in @@ -616,14 +616,14 @@ install: install-common $(SIM_EXTRA_INSTALL) install-common: installdirs n=`echo run | sed '$(program_transform_name)'`; \ - $(INSTALL_PROGRAM) run$(EXEEXT) $(bindir)/$$n$(EXEEXT) + $(INSTALL_PROGRAM) run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT) n=`echo libsim.a | sed s/libsim.a/lib$(target_alias)-sim.a/`; \ - $(INSTALL_DATA) libsim.a $(libdir)/$$n ; \ - ( cd $(libdir) ; $(RANLIB) $$n ) + $(INSTALL_DATA) libsim.a $(DESTDIR)$(libdir)/$$n ; \ + ( cd $(DESTDIR)$(libdir) ; $(RANLIB) $$n ) installdirs: - $(SHELL) $(srcdir)/../../mkinstalldirs $(bindir) - $(SHELL) $(srcdir)/../../mkinstalldirs $(libdir) + $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir) + $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir) check: cd ../testsuite && $(MAKE) check RUNTESTFLAGS="$(RUNTESTFLAGS)"