linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Kbuild: Makefile: clean up samples directory
@ 2012-02-04  9:55 Gerard Snitselaar
  2012-02-25  0:17 ` Michal Marek
  0 siblings, 1 reply; 2+ messages in thread
From: Gerard Snitselaar @ 2012-02-04  9:55 UTC (permalink / raw)
  To: mmarek; +Cc: linux-kbuild, linux-kernel

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>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index e3b23e8..0a83480 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):
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Kbuild: Makefile: clean up samples directory
  2012-02-04  9:55 [PATCH] Kbuild: Makefile: clean up samples directory Gerard Snitselaar
@ 2012-02-25  0:17 ` Michal Marek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2012-02-25  0:17 UTC (permalink / raw)
  To: Gerard Snitselaar; +Cc: linux-kbuild, linux-kernel

On Sat, Feb 04, 2012 at 02:55:59AM -0700, Gerard Snitselaar wrote:
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-25  0:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-04  9:55 [PATCH] Kbuild: Makefile: clean up samples directory Gerard Snitselaar
2012-02-25  0:17 ` Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).