* Makefile.in (program_transform_name): New variable.
authorIan Lance Taylor <ian@airs.com>
Tue, 6 Feb 1996 17:27:44 +0000 (17:27 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 6 Feb 1996 17:27:44 +0000 (17:27 +0000)
(install): Transform library name before installing it.

bfd/ChangeLog
bfd/Makefile.in

index 41a276feeb628dd31cab9b61a1b6c183bca702c8..b0c056886f772e7056495d35f302376860cf4047 100644 (file)
@@ -1,3 +1,8 @@
+Tue Feb  6 12:12:22 1996  Ian Lance Taylor  <ian@cygnus.com>
+
+       * Makefile.in (program_transform_name): New variable.
+       (install): Transform library name before installing it.
+
 Mon Feb  5 10:38:27 1996  Ian Lance Taylor  <ian@cygnus.com>
 
        * archures.c (bfd_mach_i960_hx): Define.
index b3bc75070b517b682739584a0d4dcfaf378fe07b..0da4cbbeb9f35fc01bf1bd32b9f2b46aeb8ec2fb 100644 (file)
@@ -24,6 +24,7 @@ srcdir = @srcdir@
 
 prefix = @prefix@
 
+program_transform_name = @program_transform_name@
 exec_prefix = @exec_prefix@
 bindir = $(exec_prefix)/bin
 libdir = $(exec_prefix)/lib
@@ -625,15 +626,17 @@ force:
 
 install: $(ALLLIBS)
        for f in $(ALLLIBS); do \
-         rm -f $(libdir)/$$f; \
+         tf=lib`echo $$f | sed -e 's/^lib//' | sed '$(program_transform_name)'`; \
+         rm -f $(libdir)/$$tf; \
          if [ "$$f" = "$(SHLINK)" ]; then \
-           ln -sf $(SHLIB) $(libdir)/$$f; \
+           ts=lib`echo $(SHLIB) | sed -e 's/^lib//' | sed '$(program_transform_name)'`; \
+           ln -sf $$ts $(libdir)/$$tf; \
          elif [ "$$f" = "$(SHLIB)" ]; then \
-           $(INSTALL_PROGRAM) $$f $(libdir)/$$f; \
+           $(INSTALL_PROGRAM) $$f $(libdir)/$$tf; \
          else \
-           $(INSTALL_DATA) $$f $(libdir)/$$f; \
-           $(RANLIB) $(libdir)/$$f; \
-           chmod a-x $(libdir)/$$f; \
+           $(INSTALL_DATA) $$f $(libdir)/$$tf; \
+           $(RANLIB) $(libdir)/$$tf; \
+           chmod a-x $(libdir)/$$tf; \
          fi; \
        done
 # Install BFD include file, and others that it needs.  Install them