summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-23 05:40:58 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-23 05:40:58 +0000
commit7dfff9507e48df0b07b28d66843460d42286f663 (patch)
tree864d6c0b058b97fc32566e00fd0747f0c480e814
parentc386ddb4d8a1b076d94ebe8b85ca5d0dd124892b (diff)
Use 'install' rather than 'mkdir -p' for target directories.
Add $(PREFIX) to avoid leaking things at install time. -Erik
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 19dcf90ab..66fd42e3f 100644
--- a/Makefile
+++ b/Makefile
@@ -197,8 +197,8 @@ ifeq ($(strip $(HAVE_SHARED)),y)
set -x -e; \
install -m 755 lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
$(PREFIX)$(DEVEL_PREFIX)/lib; \
- mkdir -p $(PREFIX)$(SHARED_LIB_LOADER_PATH); \
- ln -s $(DEVEL_PREFIX)/lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
+ install -d $(PREFIX)$(SHARED_LIB_LOADER_PATH); \
+ ln -sf $(PREFIX)$(DEVEL_PREFIX)/lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
$(PREFIX)$(SHARED_LIB_LOADER_PATH)/$(UCLIBC_LDSO) || true; \
fi;
endif
@@ -255,8 +255,8 @@ ifeq ($(strip $(HAVE_SHARED)),y)
set -x -e; \
install -m 755 lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
$(PREFIX)$(TARGET_PREFIX)/lib; \
- mkdir -p $(PREFIX)$(SHARED_LIB_LOADER_PATH); \
- ln -s $(TARGET_PREFIX)/lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
+ install -d $(PREFIX)$(SHARED_LIB_LOADER_PATH); \
+ ln -sf $(PREFIX)$(TARGET_PREFIX)/lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
$(PREFIX)$(SHARED_LIB_LOADER_PATH)/$(UCLIBC_LDSO) || true; \
fi;
endif