Skip to content

Commit

Permalink
kbuild: specify FORCE in Makefile.headersinst as .PHONY target
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masahiro Yamada committed Nov 16, 2017
1 parent 4173cba commit e474ed4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/Makefile.headersinst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ subdirs := $(patsubst $(srcdir)/%/,%,\
# Recursion
__headers: $(subdirs)

.PHONY: $(subdirs)
PHONY += $(subdirs)
$(subdirs):
$(Q)$(MAKE) $(hdr-inst)=$(obj)/$@ dst=$(dst)/$@

Expand Down Expand Up @@ -123,6 +123,7 @@ endif

endif # skip-inst

.PHONY: $(PHONY)
PHONY += FORCE
FORCE: ;

.PHONY: $(PHONY)

0 comments on commit e474ed4

Please sign in to comment.