kbuild: fix building single targets with make O=.. single-target
authorSam Ravnborg <sam@mars.ravnborg.org>
Wed, 5 Apr 2006 10:57:21 +0000 (12:57 +0200)
committerSam Ravnborg <sam@mars.ravnborg.org>
Wed, 5 Apr 2006 10:57:21 +0000 (12:57 +0200)
This fixes single targets build so it now works relaiably in
following cases:
- build with mixed kernel source and output files (make single-target)
- build with separate output directory (make O=.. single-target)
- external module with mixed kernel source and output files
  (make M='pwd' single-target)
- external module with separate kernel source and output files
  (make O=.. M='pwd' single-target)

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Makefile

diff --cc Makefile
Simple merge