diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-06-05 14:42:57 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-06-05 14:42:57 +0000 |
commit | 700e3934e55b089b7679489b3b310a1b07101f3a (patch) | |
tree | f15b4448aedd2f9021a2571f29f62b7f33d2defb /target/Makefile | |
parent | 5a675d5f7a2b627065ae43e8498e8672828aa797 (diff) |
add rebuild target for the linux directory
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1149 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/Makefile')
-rw-r--r-- | target/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/target/Makefile b/target/Makefile index 05d0023d7b..88476a7993 100644 --- a/target/Makefile +++ b/target/Makefile @@ -45,7 +45,9 @@ $(foreach fs,$(TARGET_FS),$(eval $(call BIN_template,$(fs)))) INSTALL_TARGET_DIRS:=$(patsubst %,%-install,$(TARGET_DIRS)) $(INSTALL_TARGET_DIRS): image_clean $(TARGET_DIR)/etc/sysconf $(BIN_DIR) -prepare: $(patsubst %,%-prepare,$(TARGET_DIRS)) +prepare: $(patsubst %,%-prepare,$(TARGET_DIRS)) $(TARGET_DIR) + +$(TARGET_DIR): mkdir -p $(TARGET_DIR) if [ -f "$(TARGET_SKELETON)" ] ; then \ zcat $(TARGET_SKELETON) | tar -C $(BUILD_DIR) -xf -; \ @@ -88,6 +90,8 @@ $(TARGET_DIR)/etc/sysconf: $(MAKE) -C $(patsubst %-prepare,%,$@) prepare %-compile: %-prepare $(MAKE) -C $(patsubst %-compile,%,$@) compile +%-rebuild: + $(MAKE) -C $(patsubst %-rebuild,%,$@) rebuild %-install: %-compile $(MAKE) -C $(patsubst %-install,%,$@) install |