i2c-tools: cleanup clean target
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 4 Aug 2008 19:08:41 +0000 (19:08 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 4 Aug 2008 19:08:41 +0000 (19:08 -0000)
package/i2c-tools/i2c-tools.mk

index 76c2d7a50d9015c744183ddd099734b847d7e3d0..caa1d4c4e2efe4e21429d90141f381d54e8a8601 100644 (file)
@@ -34,10 +34,7 @@ i2c-tools: uclibc $(TARGET_DIR)/$(I2C_TOOLS_TARGET_BINARY)
 i2c-tools-source: $(DL_DIR)/$(I2C_TOOLS_SOURCE)
 
 i2c-tools-clean:
-       for i in i2cdump i2cget i2cset i2cdetect; \
-       do \
-               rm -f $(TARGET_DIR)/usr/bin/$$i; \
-       done
+       rm -f $(addprefix $(TARGET_DIR)/usr/bin/,i2cdump i2cget i2cset i2cdetect)
        -$(MAKE) -C $(I2C_TOOLS_DIR) clean
 
 i2c-tools-dirclean: