summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2008-11-05 11:39:46 +0000
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2008-11-05 11:39:46 +0000
commit7167dedea24cec1c7a2d984e68879cbb2323aa75 (patch)
tree9d2ca36d6ec9d35b64e4e3dfce65fb4683cf3244
parent22a23bb2208995b4760cc57bfe0803857f71ccd6 (diff)
Build $(PROJECT_BUILD_DIR)/autotools-stamps with normal Makefile rules
This patch will add a rule to top level Makefile to depend on the $(PROJECT_BUILD_DIR)/autotools-stamps as a required directory. Hence it will be generated if missing in stead of made when the $(PROJECT_BUILD_DIR)/.root rule is triggered. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
-rw-r--r--Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 2219f2b08..0b27ed1fc 100644
--- a/Makefile
+++ b/Makefile
@@ -276,8 +276,8 @@ $(BR2_DEPENDS_DIR): .config
cp -dpRf $(CONFIG)/buildroot-config $@
dirs: $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
- $(BR2_DEPENDS_DIR) \
- $(BINARIES_DIR) $(PROJECT_BUILD_DIR)
+ $(BR2_DEPENDS_DIR) $(BINARIES_DIR) $(PROJECT_BUILD_DIR) \
+ $(PROJECT_BUILD_DIR)/autotools-stamps
$(BASE_TARGETS): dirs
@@ -288,8 +288,8 @@ world: dependencies dirs target-host-info $(BASE_TARGETS) $(TARGETS_ALL)
$(BASE_TARGETS) $(TARGETS) $(TARGETS_ALL) \
$(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) \
$(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
- $(BR2_DEPENDS_DIR) \
- $(BINARIES_DIR) $(PROJECT_BUILD_DIR)
+ $(BR2_DEPENDS_DIR) $(BINARIES_DIR) $(PROJECT_BUILD_DIR) \
+ $(PROJECT_BUILD_DIR)/autotools-stamps
#############################################################
#
@@ -297,8 +297,8 @@ world: dependencies dirs target-host-info $(BASE_TARGETS) $(TARGETS_ALL)
# dependencies anywhere else
#
#############################################################
-$(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) \
- $(PROJECT_BUILD_DIR) $(BINARIES_DIR):
+$(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(PROJECT_BUILD_DIR) \
+ $(PROJECT_BUILD_DIR)/autotools-stamps $(BINARIES_DIR):
@mkdir -p $@
$(STAGING_DIR):
@@ -318,7 +318,6 @@ endif
$(PROJECT_BUILD_DIR)/.root:
mkdir -p $(TARGET_DIR)
- mkdir -p $(PROJECT_BUILD_DIR)/autotools-stamps
if ! [ -d "$(TARGET_DIR)/bin" ]; then \
if [ -d "$(TARGET_SKELETON)" ]; then \
cp -fa $(TARGET_SKELETON)/* $(TARGET_DIR)/; \