Avoid repeated rebuilds of 'wipe'
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Tue, 17 Jul 2007 17:05:58 +0000 (17:05 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Tue, 17 Jul 2007 17:05:58 +0000 (17:05 -0000)
package/wipe/wipe.mk

index f56c06d15d4f2dd978aeb1768cd3873cbbcd177e..4c836f54f65a88e4e21adcad7bc04782b0d247f2 100644 (file)
@@ -29,9 +29,10 @@ $(WIPE_DIR)/.unpacked: $(DL_DIR)/$(WIPE_SOURCE) $(DL_DIR)/$(WIPE_PATCH)
        touch $(WIPE_DIR)/.unpacked
 
 $(WIPE_DIR)/.configured: $(WIPE_DIR)/.unpacked
-       touch  $(WIPE_DIR)/.configured
+       touch  $@
 
 $(WIPE_DIR)/$(WIPE_BINARY): $(WIPE_DIR)/.configured
+       rm -f $(WIPE_DIR)/$(WIPE_BINARY)
        $(MAKE) CC=$(TARGET_CC) -C $(WIPE_DIR)  generic
 
 $(TARGET_DIR)/$(WIPE_TARGET_BINARY): $(WIPE_DIR)/$(WIPE_BINARY)