kbuild: clean up samples directory
authorGerard Snitselaar <dev@snitselaar.org>
Sat, 4 Feb 2012 09:55:59 +0000 (02:55 -0700)
committerMichal Marek <mmarek@suse.cz>
Sat, 25 Feb 2012 00:18:56 +0000 (01:18 +0100)
Playing around with make randconfig I ended up with CONFIG_SAMPLES
set. After cleaning up the build I noticed that git status was
showing samples/hidraw/hid-example as an untracked file.

Adding samples to clean-dirs seems to solve the problem, but
I don't know if that is the correct way to solve the issue.

Signed-off-by: Gerard Snitselaar <dev@snitselaar.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Makefile

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