summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-08-14 20:40:36 +0000
committerEric Andersen <andersen@codepoet.org>2001-08-14 20:40:36 +0000
commit11ebbd764180fbf09e3463befc14b25d98e4f1fb (patch)
tree6eebacb6da0c144847895afdf1ac52af7670562d
parent3c735763c230948708f6ab465aed53328f9308fd (diff)
Fix the "install_target" target to install to $(PREFIX)$(TARGET_PREFIX)
-rw-r--r--Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index eb3d1293c..61ec627d2 100644
--- a/Makefile
+++ b/Makefile
@@ -225,22 +225,22 @@ install_gcc:
# deployment onto your target system.
install_target:
ifeq ($(strip $(HAVE_SHARED)),true)
- install -d $(PREFIX)/lib
- install -d $(PREFIX)/sbin
- install -d $(PREFIX)/usr/bin
- install -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).so $(PREFIX)/lib
- cp -a lib/*.so.* $(PREFIX)/lib
- install -m 755 ldso/util/ldd $(PREFIX)/usr/bin
- install -m 755 ldso/util/readelf $(PREFIX)/usr/bin
+ install -d $(PREFIX)$(TARGET_PREFIX)/lib
+ install -d $(PREFIX)$(TARGET_PREFIX)/sbin
+ install -d $(PREFIX)$(TARGET_PREFIX)/usr/bin
+ install -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).so $(PREFIX)$(TARGET_PREFIX)/lib
+ cp -a lib/*.so.* $(PREFIX)$(TARGET_PREFIX)/lib
+ install -m 755 ldso/util/ldd $(PREFIX)$(TARGET_PREFIX)/usr/bin
+ install -m 755 ldso/util/readelf $(PREFIX)$(TARGET_PREFIX)/usr/bin
if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).so ] ; then \
- install -m 755 lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).so $(PREFIX)/lib; \
+ install -m 755 lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).so $(PREFIX)$(TARGET_PREFIX)/lib; \
mkdir -p $(PREFIX)$(SHARED_LIB_LOADER_PATH); \
ln -s $(TARGET_PREFIX)/lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).so \
$(PREFIX)$(SHARED_LIB_LOADER_PATH)/$(UCLIBC_LDSO) || true; \
fi;
if [ -x ldso/util/ldconfig ] ; then \
- install -d $(PREFIX)/etc; \
- install -m 755 ldso/util/ldconfig $(PREFIX)/sbin; \
+ install -d $(PREFIX)$(TARGET_PREFIX)/etc; \
+ install -m 755 ldso/util/ldconfig $(PREFIX)$(TARGET_PREFIX)/sbin; \
fi;
endif