kbuild: make multiple directory targets work
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 5 Feb 2020 06:51:52 +0000 (15:51 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 5 Feb 2020 21:31:51 +0000 (06:31 +0900)
commitf566e1fbadb686e28f1c307e356114b2865ef588
treef54d53dbabd995ae132781dc7c022ef939d3829e
parent089b7d890f972f6b649fedc9259f6b93a18fb970
kbuild: make multiple directory targets work

Currently, the single-target build does not work when two
or more sub-directories are given:

  $ make fs/ kernel/ lib/
    CALL    scripts/checksyscalls.sh
    CALL    scripts/atomic/check-atomics.sh
    DESCEND  objtool
  make[2]: Nothing to be done for 'kernel/'.
  make[2]: Nothing to be done for 'fs/'.
  make[2]: Nothing to be done for 'lib/'.

Make it work properly.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile