From: Ulf Samuelsson Date: Thu, 16 Aug 2007 05:44:55 +0000 (-0000) Subject: Avoid copying TARGET_SKELETON on every 'make' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6771dfb847e53f8f5c184fad407cce599857ec9;p=buildroot.git Avoid copying TARGET_SKELETON on every 'make' --- diff --git a/Makefile b/Makefile index fabc3a81f6..9a22adf980 100644 --- a/Makefile +++ b/Makefile @@ -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*