Commit e474ed45 authored by Masahiro Yamada's avatar Masahiro Yamada

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 4173cbac
......@@ -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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment