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>hifive-unleashed-5.1
parent
4173cbac80
commit
e474ed4577
|
@ -26,7 +26,7 @@ subdirs := $(patsubst $(srcdir)/%/,%,\
|
||||||
# Recursion
|
# Recursion
|
||||||
__headers: $(subdirs)
|
__headers: $(subdirs)
|
||||||
|
|
||||||
.PHONY: $(subdirs)
|
PHONY += $(subdirs)
|
||||||
$(subdirs):
|
$(subdirs):
|
||||||
$(Q)$(MAKE) $(hdr-inst)=$(obj)/$@ dst=$(dst)/$@
|
$(Q)$(MAKE) $(hdr-inst)=$(obj)/$@ dst=$(dst)/$@
|
||||||
|
|
||||||
|
@ -123,6 +123,7 @@ endif
|
||||||
|
|
||||||
endif # skip-inst
|
endif # skip-inst
|
||||||
|
|
||||||
.PHONY: $(PHONY)
|
|
||||||
PHONY += FORCE
|
PHONY += FORCE
|
||||||
FORCE: ;
|
FORCE: ;
|
||||||
|
|
||||||
|
.PHONY: $(PHONY)
|
||||||
|
|
Loading…
Reference in New Issue