diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-09 01:25:36 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-09 01:25:36 +0200 |
commit | 1883cb174619cfc90ca86da08598f470d3a11315 (patch) | |
tree | a1e849d0cf637894d166e66b4885d708713ba075 /scripts/Makefile.build | |
parent | 1f0ab1dc6427e9340f50551d9e4f2212d03ec845 (diff) | |
download | busybox-w32-1883cb174619cfc90ca86da08598f470d3a11315.tar.gz busybox-w32-1883cb174619cfc90ca86da08598f470d3a11315.tar.bz2 busybox-w32-1883cb174619cfc90ca86da08598f470d3a11315.zip |
fix make O=dir build
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r-- | scripts/Makefile.build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index f343818b1..5685b5bcc 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -13,8 +13,13 @@ __build: | |||
13 | include scripts/Kbuild.include | 13 | include scripts/Kbuild.include |
14 | 14 | ||
15 | # The filename Kbuild has precedence over Makefile | 15 | # The filename Kbuild has precedence over Makefile |
16 | # bbox: we also try to include Kbuild file in obj tree first | ||
16 | kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) | 17 | kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) |
17 | include $(if $(wildcard $(kbuild-dir)/Kbuild), $(kbuild-dir)/Kbuild, $(kbuild-dir)/Makefile) | 18 | include $(if $(wildcard $(src)/Kbuild), $(src)/Kbuild, \ |
19 | $(if $(wildcard $(kbuild-dir)/Kbuild), $(kbuild-dir)/Kbuild, \ | ||
20 | $(kbuild-dir)/Makefile \ | ||
21 | ) \ | ||
22 | ) | ||
18 | 23 | ||
19 | include scripts/Makefile.lib | 24 | include scripts/Makefile.lib |
20 | 25 | ||