Avoid error msg when TARGET_DIR/bin is created for the umpteenth time
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Sat, 11 Aug 2007 23:57:19 +0000 (23:57 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Sat, 11 Aug 2007 23:57:19 +0000 (23:57 -0000)
package/bash/bash.mk

index a7c0166071e4a4fb2c7d3d087607cade0e9c2248..bf8eda79cdaf6a9134f65112f64b6d9e0287eb19 100644 (file)
@@ -62,9 +62,9 @@ $(BASH_DIR)/$(BASH_BINARY): $(BASH_DIR)/.configured
        $(MAKE1) CC=$(TARGET_CC) CC_FOR_BUILD="$(HOSTCC)" -C $(BASH_DIR)
 
 $(TARGET_DIR)/$(BASH_TARGET_BINARY): $(BASH_DIR)/$(BASH_BINARY)
+       mkdir -p $(TARGET_DIR)/bin
        $(MAKE1) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BASH_DIR) install
        rm -f $(TARGET_DIR)/bin/bash*
-       -mkdir $(TARGET_DIR)/bin
        mv $(TARGET_DIR)/usr/bin/bash* $(TARGET_DIR)/bin/
        (cd $(TARGET_DIR)/bin; /bin/ln -fs bash sh)
        rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \