[PATCH 1/2] kbuild: delete include/generated directory by "make mrproper"

Masahiro Yamada yamada.m at jp.panasonic.com
Wed Jan 7 23:25:24 PST 2015


Otherwise, "make mrproper" misses to delete some generated files
such as include/generated/compile.h.

Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
---

 Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 92889b3..5f73a47 100644
--- a/Makefile
+++ b/Makefile
@@ -960,10 +960,9 @@ CLEAN_FILES +=	barebox System.map include/generated/barebox_default_env.h \
 		barebox.efi barebox.canon-a1100.bin
 
 # Directories & files removed with 'make mrproper'
-MRPROPER_DIRS  += include/config usr/include
+MRPROPER_DIRS  += include/config usr/include include/generated
 MRPROPER_FILES += .config .config.old include/asm .version .old_version \
-                  include/generated/autoconf.h include/generated/version.h      \
-                  include/generated/utsrelease.h include/config.h           \
+                  include/config.h           \
 		  Module.symvers tags TAGS cscope*
 
 # clean - Delete most, but leave enough to build external modules
-- 
1.9.1




More information about the barebox mailing list