X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=target%2Futils%2FMakefile;h=5b0f2470b48fc9d79e207d9c4a6132e9902b6963;hb=ae14513ae7b4816c97d15c592e903403043229c0;hp=97628812876531008438b62e2e59b8118d73e1fd;hpb=b5fec425be0bc9e3e9d62178c4a569162534a0bd;p=openwrt.git diff --git a/target/utils/Makefile b/target/utils/Makefile index 9762881287..5b0f2470b4 100644 --- a/target/utils/Makefile +++ b/target/utils/Makefile @@ -1,23 +1,20 @@ include $(TOPDIR)/rules.mk -TARGETS := addpattern trx -ifeq ($(BR2_TARGET_BELKIN),y) -TARGETS += belkin-bin -endif -ifeq ($(BR2_TARGET_MOTOROLA),y) -TARGETS += motorola-bin -endif +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)