X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=target%2FMakefile;h=4885ab98d3e3e97305359c2c5e6c819d7d38ed0a;hp=1b6cbb54ee1014e6f024f8c8fba6fe1e698fd6a9;hb=3ba84cb70821c6a2dd091bb2140b01abe31574a7;hpb=02059e7283fa828bb98a52754ec6d9019e858bf0 diff --git a/target/Makefile b/target/Makefile index 1b6cbb54ee..4885ab98d3 100644 --- a/target/Makefile +++ b/target/Makefile @@ -33,7 +33,7 @@ clean: linux-clean sdk-clean imagebuilder-clean image_clean prereq: FORCE $(MAKE) -C linux/$(BOARD)-$(KERNEL) prereq - $(MAKE) -C $(IMAGE_DIR) prereq + [ \! -f $(IMAGE_DIR)/Makefile ] || $(MAKE) -C $(IMAGE_DIR) prereq sdk_install: FORCE $(MAKE) -C sdk install @@ -51,4 +51,5 @@ image_install: image_compile imagebuilder_install: image_install $(MAKE) -C imagebuilder install -$(eval $(call default_subtargets,)) +%-prereq %-prepare %-download %-clean %-compile %-install %-refresh %-update: FORCE + $(MAKE) -C $* $(patsubst $*-%,%,$@)