aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cornelssen <ccorn@cs.tu-berlin.de>2003-01-09 09:10:57 +0100
committerAndreas Jaeger <aj@gcc.gnu.org>2003-01-09 09:10:57 +0100
commitd7082cd71291faf2600cf106765a173f239d92ef (patch)
tree997126a9e65d3ca3fc277a61a7b7c03d6f10e3d7
parent90e5b39f8eea82c980f33fe9be55f79a35a2b1b5 (diff)
downloadgcc-d7082cd71291faf2600cf106765a173f239d92ef.zip
gcc-d7082cd71291faf2600cf106765a173f239d92ef.tar.gz
gcc-d7082cd71291faf2600cf106765a173f239d92ef.tar.bz2
Makefile.in (install_to_libdir, [...]): Add a mkinstalldirs command.
2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de> * Makefile.in (install_to_libdir, install_to_tooldir): Add a mkinstalldirs command. From-SVN: r61083
-rw-r--r--libiberty/ChangeLog3
-rw-r--r--libiberty/Makefile.in2
2 files changed, 5 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 8a756b0..3b236b0 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -2,6 +2,9 @@
* Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
+ * Makefile.in (install_to_libdir, install_to_tooldir): Add a
+ mkinstalldirs command.
+
2002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
* make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
index 9e913ee..1af4c32 100644
--- a/libiberty/Makefile.in
+++ b/libiberty/Makefile.in
@@ -262,6 +262,7 @@ INSTALL_DEST = @INSTALL_DEST@
install: install_to_$(INSTALL_DEST) install-subdir
install_to_libdir: all
+ ${mkinstalldirs} $(DESTDIR)$(libdir)$(MULTISUBDIR)
$(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n
( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
mv -f $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)
@@ -278,6 +279,7 @@ install_to_libdir: all
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
install_to_tooldir: all
+ ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)
$(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)n
( cd $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
mv -f $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)