forked from Ivasoft/openwrt
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>
This commit is contained in:
9
rules.mk
9
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user