summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.headersinst
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-11-13 05:33:19 -0500
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-11-15 19:11:18 -0500
commite474ed45777bc230648186c0db990bd290383ada (patch)
tree034eec835003020d5177d529e6821443fc901aac /scripts/Makefile.headersinst
parent4173cbac80faa22a8e2de40bcc7c156b675652b3 (diff)
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 <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/Makefile.headersinst')
-rw-r--r--scripts/Makefile.headersinst5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst
index c6fb2b75d813..086a821ba8f5 100644
--- a/scripts/Makefile.headersinst
+++ b/scripts/Makefile.headersinst
@@ -26,7 +26,7 @@ subdirs := $(patsubst $(srcdir)/%/,%,\
26# Recursion 26# Recursion
27__headers: $(subdirs) 27__headers: $(subdirs)
28 28
29.PHONY: $(subdirs) 29PHONY += $(subdirs)
30$(subdirs): 30$(subdirs):
31 $(Q)$(MAKE) $(hdr-inst)=$(obj)/$@ dst=$(dst)/$@ 31 $(Q)$(MAKE) $(hdr-inst)=$(obj)/$@ dst=$(dst)/$@
32 32
@@ -123,6 +123,7 @@ endif
123 123
124endif # skip-inst 124endif # skip-inst
125 125
126.PHONY: $(PHONY)
127PHONY += FORCE 126PHONY += FORCE
128FORCE: ; 127FORCE: ;
128
129.PHONY: $(PHONY)