From 9228d1c066cf3a2cd01288bed3646e53638705b6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 18 Jan 2017 14:27:04 +0100 Subject: build: introduce extra targets that contain only proper dependencies This can be used to check if targets like prepare or compile are up to date Signed-off-by: Felix Fietkau --- rules.mk | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'rules.mk') diff --git a/rules.mk b/rules.mk index e54acc9858..b42e19e218 100644 --- a/rules.mk +++ b/rules.mk @@ -101,12 +101,13 @@ ifdef CONFIG_MIPS64_ABI endif endif -DEFAULT_SUBDIR_TARGETS:=clean download prepare compile install update refresh prereq dist distcheck configure check +DEFAULT_SUBDIR_TARGETS:=clean download prepare compile install update refresh prereq dist distcheck configure check check-depends define DefaultTargets -$(foreach t,$(DEFAULT_SUBDIR_TARGETS), - $(t): - .PHONY: $(t) +$(foreach t,$(DEFAULT_SUBDIR_TARGETS) $(1), + .$(t): + $(t): .$(t) + .PHONY: $(t) .$(t) ) endef -- cgit v1.2.3