diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-01-18 14:27:04 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-01-18 23:57:08 +0100 |
commit | 9228d1c066cf3a2cd01288bed3646e53638705b6 (patch) | |
tree | e5e9af619fd75d10b58f4088191ca2adec64549c /rules.mk | |
parent | 6cf067d084cc551c721e98b6d6c6403a63e521d5 (diff) | |
download | upstream-9228d1c066cf3a2cd01288bed3646e53638705b6.tar.gz upstream-9228d1c066cf3a2cd01288bed3646e53638705b6.tar.bz2 upstream-9228d1c066cf3a2cd01288bed3646e53638705b6.zip |
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 <nbd@nbd.name>
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |