From: Gerard Snitselaar Date: Sat, 4 Feb 2012 09:55:59 +0000 (-0700) Subject: kbuild: clean up samples directory X-Git-Tag: v3.4-rc1~11^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb68d4be95fef4aab82c2a97da93a898d532dd57;p=thirdparty%2Fkernel%2Flinux.git kbuild: clean up samples directory 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 Signed-off-by: Michal Marek --- diff --git a/Makefile b/Makefile index 71e6ed21dd152..b3c944ef9097f 100644 --- 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):