From: Masahiro Yamada Date: Mon, 13 Nov 2017 10:33:19 +0000 (+0900) Subject: kbuild: specify FORCE in Makefile.headersinst as .PHONY target X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e474ed45777bc230648186c0db990bd290383ada;p=linux.git kbuild: specify FORCE in Makefile.headersinst as .PHONY target Swap the order of ".PHONY: $(PHONY)" and "PHONY += FORCE" so that FORCE is correctly specified as a .PHONY target. Use a preferred way for specifying $(subdirs) as .PHONY targets. Signed-off-by: Masahiro Yamada --- diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst index c6fb2b75d8130..086a821ba8f54 100644 --- a/scripts/Makefile.headersinst +++ b/scripts/Makefile.headersinst @@ -26,7 +26,7 @@ subdirs := $(patsubst $(srcdir)/%/,%,\ # Recursion __headers: $(subdirs) -.PHONY: $(subdirs) +PHONY += $(subdirs) $(subdirs): $(Q)$(MAKE) $(hdr-inst)=$(obj)/$@ dst=$(dst)/$@ @@ -123,6 +123,7 @@ endif endif # skip-inst -.PHONY: $(PHONY) PHONY += FORCE FORCE: ; + +.PHONY: $(PHONY)