aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2010-05-13 18:46:00 -0500
committerDenys Vlasenko <vda.linux@googlemail.com>2010-05-16 02:50:07 +0200
commit748139332ad632001935b0535764cdbd1c71ce26 (patch)
treedb6aa8eb3c8b7c34c25468b4faa958d06bb3c3b7 /scripts
parent0bb2980605f88b1c78757db0c7a149d15a167288 (diff)
downloadbusybox-748139332ad632001935b0535764cdbd1c71ce26.tar.gz
scripts/Makefile.clean: Make Kbuild and Makefile optional
During cleaning, some directories might not have a Makefile or Kbuild file. Previously scripts/Makefile.clean would spit out the following error when neither file could be found: ptyser@petert busybox $ make mrproper scripts/Makefile.clean:17: /home/user/busybox/findutils/Makefile: No such file or directory make[1]: *** No rule to make target `/home/user/busybox/findutils/Makefile'. Stop. make: *** [_clean_findutils] Error 2 This issue can be triggered by running 'make mrproper' in a freshly cloned busybox repository. Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.clean2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean
index cff33498f..03e397f42 100644
--- a/scripts/Makefile.clean
+++ b/scripts/Makefile.clean
@@ -14,7 +14,7 @@ clean := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.clean obj
# The filename Kbuild has precedence over Makefile
kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src))
-include $(if $(wildcard $(kbuild-dir)/Kbuild), $(kbuild-dir)/Kbuild, $(kbuild-dir)/Makefile)
+-include $(if $(wildcard $(kbuild-dir)/Kbuild), $(kbuild-dir)/Kbuild, $(kbuild-dir)/Makefile)
# Figure out what we need to build from the various variables
# ==========================================================================