]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: check clean srctree even earlier
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 22 Aug 2019 04:46:13 +0000 (13:46 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 29 Aug 2019 14:54:29 +0000 (23:54 +0900)
commit21302a24285b35f126d04881184c6acc7dac0fc1
tree1aa2f8b8100f67ba0b14e75c13bdd07db8464ba5
parentb1edac022f3cee8e3b161d5822db6e681404ac6f
kbuild: check clean srctree even earlier

Move the outputmakefile target to the leftmost in the prerequisite list
so that this is checked first. GNU Make processes the prerequisites
left to right.

GNU Make will keep to stick to this behavior, and it seems even
POSIX standard, according to this:
https://lists.gnu.org/archive/html/bug-make/2019-08/msg00030.html

The POSIX standard of make is available here:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html

Of course, when the parallel option -j given, other targets will be run
simultaneously but it is nice to show the error as early as possible.

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