X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Flynxis%2Fomap.git;a=blobdiff_plain;f=rules.mk;h=e54acc9858287d3e0fba17c8c6ad4bb6c3914387;hp=95b18f9e5c69de479db54c5bdb740103140dcf74;hb=6cf067d084cc551c721e98b6d6c6403a63e521d5;hpb=c99f8815680fb4abf42cbb2e9d1a909f8f373b02 diff --git a/rules.mk b/rules.mk index 95b18f9e5c..e54acc9858 100644 --- a/rules.mk +++ b/rules.mk @@ -101,6 +101,15 @@ ifdef CONFIG_MIPS64_ABI endif endif +DEFAULT_SUBDIR_TARGETS:=clean download prepare compile install update refresh prereq dist distcheck configure check + +define DefaultTargets +$(foreach t,$(DEFAULT_SUBDIR_TARGETS), + $(t): + .PHONY: $(t) +) +endef + DL_DIR:=$(if $(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(TOPDIR)/dl) OUTPUT_DIR:=$(if $(call qstrip,$(CONFIG_BINARY_FOLDER)),$(call qstrip,$(CONFIG_BINARY_FOLDER)),$(TOPDIR)/bin) BIN_DIR:=$(OUTPUT_DIR)/targets/$(BOARD)/$(SUBTARGET)