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 b98943a466c55e33f54a0cfcd7c6e368d2d25e65..d71bfdee7fbe60e20ba6a3843c59060cd328d617 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):