mtd-utils: move phony dependencies to toplevel mtd-host target
authorPeter Korsgaard <jacmet@sunsite.dk>
Sun, 20 Dec 2009 21:27:35 +0000 (22:27 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 20 Dec 2009 21:27:35 +0000 (22:27 +0100)
Real targets shouldn't have phony dependencies, as make otherwise
always consider them out of date.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/mtd/mtd-utils/mtd.mk

index ddae44ea1cea1911b4771034dc188d03cc004ee9..6647373914e09ce4a633d9a9784c5c24ae4145f1 100644 (file)
@@ -34,7 +34,7 @@ $(MTD_HOST_DIR)/.unpacked: $(DL_DIR)/$(MTD_SOURCE)
        touch $@
 
 
-$(MKFS_JFFS2): $(MTD_HOST_DIR)/.unpacked host-lzo
+$(MKFS_JFFS2): $(MTD_HOST_DIR)/.unpacked
        CC="$(HOSTCC)" CROSS= LDFLAGS=-L$(HOST_DIR)/usr/lib \
                $(MAKE) CFLAGS='-I$(HOST_DIR)/usr/include -I./include' \
                LINUXDIR=$(LINUX_DIR) BUILDDIR=$(MTD_HOST_DIR) \
@@ -46,7 +46,7 @@ $(SUMTOOL): $(MTD_HOST_DIR)/.unpacked
                LINUXDIR=$(LINUX_DIR) BUILDDIR=$(MTD_HOST_DIR) \
                -C $(MTD_HOST_DIR) sumtool
 
-mtd-host: $(MKFS_JFFS2) $(SUMTOOL)
+mtd-host: host-lzo $(MKFS_JFFS2) $(SUMTOOL)
 
 mtd-host-source: $(DL_DIR)/$(MTD_SOURCE)