From: Magnus Damm <[email protected]>
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 <[email protected]>
---
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