kbuild: skip sub-make for in-tree build with GNU Make 4.x
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 19 Mar 2019 04:02:36 +0000 (13:02 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 21 Mar 2019 01:03:11 +0000 (10:03 +0900)
commit688931a5ad4e55ba0c215248ba510cd67bc3afb4
treeeb9f74942f5107a0a19ca328139ca10be2718751
parenta75bb4eb9e565b9f5115e2e8c07377ce32cbe69a
kbuild: skip sub-make for in-tree build with GNU Make 4.x

Commit 2b50f7ab6368 ("kbuild: add workaround for Debian make-kpkg")
annoyed people who want to wrap the top Makefile with GNUmakefile
to customize it for their use.

On second thought, we do not need to run the sub-make for in-tree
build with Make 4.x because the 'MAKEFLAGS += -rR' issue only happens
on GNU Make 3.x.

With this commit, people will get back their workflow, and the Debian
make-kpkg will still work.

Fixes: 2b50f7ab6368 ("kbuild: add workaround for Debian make-kpkg")
Reported-by: Andreas Schwab <schwab@suse.de>
Reported-by: David Howells <dhowells@redhat.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: Andreas Schwab <schwab@suse.de>
Tested-by: David Howells <dhowells@redhat.com>
Makefile