Do not create directories, if they exist
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Sun, 7 Oct 2007 17:22:56 +0000 (17:22 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Sun, 7 Oct 2007 17:22:56 +0000 (17:22 -0000)
toolchain/gcc/gcc-uclibc-3.x.mk
toolchain/gcc/gcc-uclibc-4.x.mk

index 3e530795e642528baf5fd9075ca8c3ba35ceff82..6d615f664bef96d2be279004c02acded57215d56 100644 (file)
@@ -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"; \
index e646c515e70beb0b4ca88391ae92dd9e03a8a4ff..4621490281548a299f1c44bb9ab23872673a0cdf 100644 (file)
@@ -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"; \