diff mbox

kbuild: specify FORCE as .PHONY target in Makefile.headersinst

Message ID 1510569199-26057-1-git-send-email-yamada.masahiro@socionext.com (mailing list archive)
State New, archived
Headers show

Commit Message

Masahiro Yamada Nov. 13, 2017, 10:33 a.m. UTC
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 <yamada.masahiro@socionext.com>
---

 scripts/Makefile.headersinst | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Masahiro Yamada Nov. 16, 2017, 12:13 a.m. UTC | #1
2017-11-13 19:33 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
> 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 <yamada.masahiro@socionext.com>
> ---
>


Applied to linux-kbuild/kbuild.



Best Regards
Masahiro Yamada
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst
index c6fb2b7..086a821 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)