kbuild: mark help target as PHONY
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 13 Mar 2016 00:39:55 +0000 (09:39 +0900)
committerMichal Marek <mmarek@suse.com>
Wed, 20 Apr 2016 08:30:28 +0000 (10:30 +0200)
Obviously, the "help" should be a PHONY target.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
Makefile

index ec3dde3..e3af480 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1300,6 +1300,7 @@ boards := $(sort $(notdir $(boards)))
 board-dirs := $(dir $(wildcard $(srctree)/arch/$(SRCARCH)/configs/*/*_defconfig))
 board-dirs := $(sort $(notdir $(board-dirs:/=)))
 
+PHONY += help
 help:
        @echo  'Cleaning targets:'
        @echo  '  clean           - Remove most generated files but keep the config and'
@@ -1470,6 +1471,7 @@ $(clean-dirs):
 clean: rm-dirs := $(MODVERDIR)
 clean: rm-files := $(KBUILD_EXTMOD)/Module.symvers
 
+PHONY += help
 help:
        @echo  '  Building external modules.'
        @echo  '  Syntax: make -C path/to/kernel/src M=$$PWD target'