diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-07-27 14:57:34 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-07-27 14:57:34 +0000 |
commit | 5ef9e52b8e370677df4fbe69b94c5cfd59bb5a8a (patch) | |
tree | 71054a56a9bd7b75a39c908149ec5a60191d7f6d /Makefile | |
parent | 8ca822def1eeb32e336cfa40f6647de9ac61dbcf (diff) |
- fix directory dependencies
- BASE_TARGET depends on dirs
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -210,14 +210,17 @@ TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS)) # all targets depend on the crosscompiler and it's prerequisites $(TARGETS): $(BASE_TARGETS) -world: $(DL_DIR) $(BUILD_DIR) $(PROJECT_BUILD_DIR) \ - $(BINARIES_DIR) $(STAGING_DIR) $(TARGET_DIR) bsp $(TARGETS) -dirs: $(DL_DIR) $(BUILD_DIR) $(PROJECT_BUILD_DIR) $(STAGING_DIR) +dirs: $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \ + $(BINARIES_DIR) $(PROJECT_BUILD_DIR) +$(BASE_TARGETS): dirs +world: dirs target-host-info $(TARGETS) -.PHONY: all world dirs clean dirclean distclean source bsp $(TARGETS) \ + +.PHONY: all world dirs clean dirclean distclean source target-host-info \ + $(BASE_TARGETS) $(TARGETS) \ $(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) \ - $(DL_DIR) $(BUILD_DIR) $(TOOL_BUILD_DIR) $(STAGING_DIR) \ - $(PROJECT_BUILD_DIR) $(BINARIES_DIR) + $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \ + $(BINARIES_DIR) $(PROJECT_BUILD_DIR) ############################################################# # @@ -225,8 +228,8 @@ dirs: $(DL_DIR) $(BUILD_DIR) $(PROJECT_BUILD_DIR) $(STAGING_DIR) # dependencies anywhere else # ############################################################# -$(DL_DIR) $(BUILD_DIR) $(TOOL_BUILD_DIR) \ - $(PROJECT_BUILD_DIR) $(BINARIES_DIR) : +$(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) \ + $(PROJECT_BUILD_DIR) $(BINARIES_DIR): @mkdir -p $@ $(STAGING_DIR): @@ -242,7 +245,7 @@ else endif @mkdir -p $(STAGING_DIR)/usr/include -$(TARGET_DIR): +$(TARGET_DIR): $(STAGING_DIR) mkdir -p $(TARGET_DIR) if [ -d "$(TARGET_SKELETON)" ] ; then \ cp -fa $(TARGET_SKELETON)/* $(TARGET_DIR)/; \ @@ -251,7 +254,7 @@ $(TARGET_DIR): -find $(TARGET_DIR) -type d -name CVS | xargs rm -rf -find $(TARGET_DIR) -type d -name .svn | xargs rm -rf -bsp: $(TARGET_DIR)/etc/issue $(TARGET_DIR)/etc/hostname +target-host-info: dirs $(TARGET_DIR)/etc/issue $(TARGET_DIR)/etc/hostname $(TARGET_DIR)/etc/issue: $(TARGET_DIR) .config echo "" > $(TARGET_DIR)/etc/issue |