diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-08-16 05:44:55 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-08-16 05:44:55 +0000 |
commit | c6771dfb847e53f8f5c184fad407cce599857ec9 (patch) | |
tree | 384cfbd57090ec97bee3d60be4b75bbff750f19a | |
parent | 4223bea4f0216e07d2f43448e02135402986b128 (diff) | |
download | buildroot-novena-c6771dfb847e53f8f5c184fad407cce599857ec9.tar.gz buildroot-novena-c6771dfb847e53f8f5c184fad407cce599857ec9.zip |
Avoid copying TARGET_SKELETON on every 'make'
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -229,7 +229,7 @@ world: dependencies dirs target-host-info $(BASE_TARGETS) $(TARGETS) # ############################################################# $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) \ - $(PROJECT_BUILD_DIR) $(BINARIES_DIR) $(TARGET_DIR): + $(PROJECT_BUILD_DIR) $(BINARIES_DIR): @mkdir -p $@ $(STAGING_DIR): @@ -245,9 +245,9 @@ else endif @mkdir -p $(STAGING_DIR)/usr/include -$(PROJECT_BUILD_DIR)/.root: $(TARGET_DIR) +$(PROJECT_BUILD_DIR)/.root: + mkdir $(TARGET_DIR) if ! [ -d "$(TARGET_DIR)/bin" ] ; then \ - @echo "Rebuilding TARGET_DIR" ; \ if [ -d "$(TARGET_SKELETON)" ] ; then \ cp -fa $(TARGET_SKELETON)/* $(TARGET_DIR)/; \ fi; \ @@ -257,6 +257,8 @@ $(PROJECT_BUILD_DIR)/.root: $(TARGET_DIR) fi; touch $@ +$(TARGET_DIR): $(PROJECT_BUILD_DIR)/.root + erase-fakeroots: rm -f $(STAGING_DIR)/.fakeroot* |