From: Thomas Weißschuh Date: Wed, 13 Aug 2025 06:16:56 +0000 (+0200) Subject: kbuild: uapi: rerun header tests when headers_check.pl changes X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d4b7080be277ca400b443ac211b79450f4befddc;p=users%2Fhch%2Fmisc.git kbuild: uapi: rerun header tests when headers_check.pl changes If the checks change they need to be rerun. Add a Makefile dependency so this happens. Signed-off-by: Thomas Weißschuh Reviewed-by: Nicolas Schier Link: https://lore.kernel.org/r/20250813-kbuild-hdrtest-fixes-v2-1-8a7921ca3a03@linutronix.de Signed-off-by: Nathan Chancellor --- diff --git a/usr/include/Makefile b/usr/include/Makefile index f02f41941b60..c7f164952b33 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -85,7 +85,7 @@ quiet_cmd_hdrtest = HDRTEST $< $(PERL) $(src)/headers_check.pl $(obj) $<; \ touch $@ -$(obj)/%.hdrtest: $(obj)/%.h FORCE +$(obj)/%.hdrtest: $(obj)/%.h $(src)/headers_check.pl FORCE $(call if_changed_dep,hdrtest) # Since GNU Make 4.3, $(patsubst $(obj)/%/,%,$(wildcard $(obj)/*/)) works.