diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-11-23 05:40:58 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-11-23 05:40:58 +0000 |
commit | 7dfff9507e48df0b07b28d66843460d42286f663 (patch) | |
tree | 864d6c0b058b97fc32566e00fd0747f0c480e814 | |
parent | c386ddb4d8a1b076d94ebe8b85ca5d0dd124892b (diff) |
Use 'install' rather than 'mkdir -p' for target directories.
Add $(PREFIX) to avoid leaking things at install time.
-Erik
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |