Since commit 2aedcd098a94 ("kbuild: suppress annoying "... is up to date." message"), if_changed and friends nicely suppress "is up to date" messages. We do not need per-Makefile tricks.
Unified · Split
| @@ -1182,7 +1182,7 @@ PHONY += archheaders archscripts · 1181 unmodified lines | |||
| 1182 | 1182 | ||
| 1183 | PHONY += __headers | 1183 | PHONY += __headers |
| 1184 | __headers: $(version_h) scripts_basic uapi-asm-generic archheaders archscripts | 1184 | __headers: $(version_h) scripts_basic uapi-asm-generic archheaders archscripts |
| 1185 | $(Q)$(MAKE) $(build)=scripts build_unifdef | 1185 | $(Q)$(MAKE) $(build)=scripts scripts/unifdef |
| 1186 | 1186 | ||
| 1187 | PHONY += headers_install | 1187 | PHONY += headers_install |
| 1188 | headers_install: __headers | 1188 | headers_install: __headers |
| @@ -31,11 +31,6 @@ always := $(hostprogs-y) $(hostprogs-m) · 30 unmodified lines | |||
| 31 | # The following hostprogs-y programs are only build on demand | 31 | # The following hostprogs-y programs are only build on demand |
| 32 | hostprogs-y += unifdef | 32 | hostprogs-y += unifdef |
| 33 | 33 | ||
| 34 | # These targets are used internally to avoid "is up to date" messages | ||
| 35 | PHONY += build_unifdef | ||
| 36 | build_unifdef: $(obj)/unifdef | ||
| 37 | @: | ||
| 38 | |||
| 39 | subdir-$(CONFIG_GCC_PLUGINS) += gcc-plugins | 34 | subdir-$(CONFIG_GCC_PLUGINS) += gcc-plugins |
| 40 | subdir-$(CONFIG_MODVERSIONS) += genksyms | 35 | subdir-$(CONFIG_MODVERSIONS) += genksyms |
| 41 | subdir-$(CONFIG_SECURITY_SELINUX) += selinux | 36 | subdir-$(CONFIG_SECURITY_SELINUX) += selinux |