Skip to contentSkip to conversation

Kbuild: Makefile: clean up samples directory

PATCH In review Gerard Snitselaar 2 participants 2 messages Feb 4, 2012 – Feb 25, 2012 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Kbuild: Makefile: 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.

---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile +1 -1
index e3b23e8..0a83480 100644
@@ -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):
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 6 lines · Gerard Snitselaar

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.

It is. I applied your patch to kbuild.git#kbuild now.

Michal