aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Ulf Samuelsson <ulf.samuelsson@atmel.com>2007-08-16 05:44:55 +0000
committerGravatar Ulf Samuelsson <ulf.samuelsson@atmel.com>2007-08-16 05:44:55 +0000
commitc6771dfb847e53f8f5c184fad407cce599857ec9 (patch)
tree384cfbd57090ec97bee3d60be4b75bbff750f19a /Makefile
parent4223bea4f0216e07d2f43448e02135402986b128 (diff)
downloadbuildroot-c6771dfb847e53f8f5c184fad407cce599857ec9.tar.gz
buildroot-c6771dfb847e53f8f5c184fad407cce599857ec9.tar.bz2
Avoid copying TARGET_SKELETON on every 'make'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
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*