* Make-common.in (install-common, installdirs): Honor $DESTDIR.
authorDaniel Jacobowitz <drow@false.org>
Wed, 18 May 2005 01:54:39 +0000 (01:54 +0000)
committerDaniel Jacobowitz <drow@false.org>
Wed, 18 May 2005 01:54:39 +0000 (01:54 +0000)
sim/common/ChangeLog
sim/common/Make-common.in

index 1d18f7d3704fe79ae80edfc97e45bdb3de99b2e6..82281e3185ab232f6b217190e3df4fc1c0c334ec 100644 (file)
@@ -1,3 +1,7 @@
+2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * Make-common.in (install-common, installdirs): Honor $DESTDIR.
+
 2005-04-20  Manoj Iyer  <manjo@austin.ibm.com>
 
        * sim-types.h: Changed unsigned32 and unsigned64 to signed32
index ed35cf6e109a6d40e140db2d9d51837b854e8dff..37162c2b8619394274441d37f0c57dade273c6c1 100644 (file)
@@ -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)"