X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/7202efd0779f3707d7d5e1e663860144fea0574e..c2f313236e0db9a64518f5d37de71002503973f9:/target/utils/Makefile diff --git a/target/utils/Makefile b/target/utils/Makefile index b4c1a21ee..5b0f2470b 100644 --- a/target/utils/Makefile +++ b/target/utils/Makefile @@ -1,17 +1,20 @@ include $(TOPDIR)/rules.mk -TARGETS := addpattern trx motorola-bin +TARGETS := addpattern trx motorola-bin dgfirmware UTILS_BUILD_DIR:=$(BUILD_DIR)/target-utils prepare: $(UTILS_BUILD_DIR) compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS)) mkdir -p $(STAGING_DIR)/bin - cp -a $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/ + $(CP) $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/ install: compile package: clean: rm -rf $(UTILS_BUILD_DIR) + for f in $(TARGETS); do \ + rm -f $(STAGING_DIR)/bin/$$f ; \ + done $(UTILS_BUILD_DIR): mkdir -p $(UTILS_BUILD_DIR)