kbuild: Do not run make clean in $(srctree)
authorMichal Marek <mmarek@suse.cz>
Fri, 3 Sep 2010 13:00:22 +0000 (15:00 +0200)
committerMichal Marek <mmarek@suse.cz>
Fri, 3 Sep 2010 20:50:35 +0000 (22:50 +0200)
Signed-off-by: Michal Marek <mmarek@suse.cz>
Makefile

index b98943a..d71bfde 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1180,7 +1180,7 @@ MRPROPER_FILES += .config .config.old .version .old_version             \
 #
 clean: rm-dirs  := $(CLEAN_DIRS)
 clean: rm-files := $(CLEAN_FILES)
-clean-dirs      := $(addprefix _clean_,$(srctree) $(vmlinux-alldirs) Documentation)
+clean-dirs      := $(addprefix _clean_, . $(vmlinux-alldirs) Documentation)
 
 PHONY += $(clean-dirs) clean archclean
 $(clean-dirs):