From: Ulf Samuelsson Date: Sun, 7 Oct 2007 17:22:56 +0000 (-0000) Subject: Do not create directories, if they exist X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06cd2634a23bfac2c18e0ac94f78ff0702e56bca;p=buildroot.git Do not create directories, if they exist --- diff --git a/toolchain/gcc/gcc-uclibc-3.x.mk b/toolchain/gcc/gcc-uclibc-3.x.mk index 3e530795e6..6d615f664b 100644 --- a/toolchain/gcc/gcc-uclibc-3.x.mk +++ b/toolchain/gcc/gcc-uclibc-3.x.mk @@ -277,7 +277,7 @@ $(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled -C $(GCC_BUILD_DIR2) install if [ -d "$(STAGING_DIR)/usr/lib64" ]; then \ if [ ! -e "$(STAGING_DIR)/usr/lib" ]; then \ - mkdir "$(STAGING_DIR)/usr/lib"; \ + mkdir -p "$(STAGING_DIR)/usr/lib"; \ fi; \ mv "$(STAGING_DIR)/usr/lib64/"* "$(STAGING_DIR)/usr/lib/"; \ rmdir "$(STAGING_DIR)/usr/lib64"; \ diff --git a/toolchain/gcc/gcc-uclibc-4.x.mk b/toolchain/gcc/gcc-uclibc-4.x.mk index e646c515e7..4621490281 100644 --- a/toolchain/gcc/gcc-uclibc-4.x.mk +++ b/toolchain/gcc/gcc-uclibc-4.x.mk @@ -290,7 +290,7 @@ $(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled -C $(GCC_BUILD_DIR2) install if [ -d "$(STAGING_DIR)/lib64" ]; then \ if [ ! -e "$(STAGING_DIR)/lib" ]; then \ - mkdir "$(STAGING_DIR)/lib"; \ + mkdir -p "$(STAGING_DIR)/lib"; \ fi; \ mv "$(STAGING_DIR)/lib64/"* "$(STAGING_DIR)/lib/"; \ rmdir "$(STAGING_DIR)/lib64"; \