From c6771dfb847e53f8f5c184fad407cce599857ec9 Mon Sep 17 00:00:00 2001 From: Ulf Samuelsson Date: Thu, 16 Aug 2007 05:44:55 +0000 Subject: Avoid copying TARGET_SKELETON on every 'make' --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fabc3a81f..9a22adf98 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* -- cgit v1.2.3