diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile index 6d1c6bb9f224d9e01303f15fdadef7643075e6c5..2a48022c41e7d184660c59de87fa7dce0b345d4b 100644 --- a/scripts/dtc/Makefile +++ b/scripts/dtc/Makefile @@ -27,3 +27,5 @@ HOSTCFLAGS_dtc-parser.tab.o := $(HOSTCFLAGS_DTC) # 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