[PATCH] script: dtc: clean generated files

From: Magnus Damm
Date: Mon Aug 27 2012 - 18:55:52 EST


From: Magnus Damm <damm@xxxxxxxxxxxxx>

Fix "make distclean" to clean up generated dtc files.

Without this patch the following files are left around:
- dtc-lexer.lex.c
- dtc-parser.tab.c
- dtc-parser.tab.h

Signed-off-by: Magnus Damm <damm@xxxxxxxxxxxxx>
---

scripts/dtc/Makefile | 2 ++
1 file changed, 2 insertions(+)

--- 0001/scripts/dtc/Makefile
+++ work/scripts/dtc/Makefile 2012-08-28 07:45:25.000000000 +0900
@@ -27,3 +27,5 @@ HOSTCFLAGS_dtc-parser.tab.o := $(HOSTCFL
# dependencies on generated files need to be listed explicitly
$(obj)/dtc-lexer.lex.o: $(obj)/dtc-parser.tab.h

+# generated files need to be cleaned explicitly
+clean-files := dtc-lexer.lex.c dtc-parser.tab.c dtc-parser.tab.h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/