]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: error out if targets prefixed with '__' are directly run
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 11 May 2020 03:50:13 +0000 (12:50 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 25 May 2020 15:03:16 +0000 (00:03 +0900)
commitcbc3f11198505fb0337c99d248a119b75907f1ab
treea50e6a717fe79f686369c0fe861007ee1693efda
parent2599d776ea529a4c535a4bd21946f5d1b7987ee8
kbuild: error out if targets prefixed with '__' are directly run

Some targets are internal-use only.

It is tedious to care about "what if __build_one_by_one is contained
in $(MAKECMDGOALS)?" etc.

Prefix internal targets with double underscores. Stop parsing Makefile
if they are directly run.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile