summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-30 22:59:24 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-03 10:17:16 +0100
commit259d9bdaf2bfc6882910005a0ef4b3199139ebe2 (patch)
tree39ffa27f4743d5e5a9da86e17f5af73ae9604891 /Makefile
parent369809e243891ebf3d85459eca9be4ba686c8847 (diff)
downloadbarebox-259d9bdaf2bfc6882910005a0ef4b3199139ebe2.tar.gz
barebox-259d9bdaf2bfc6882910005a0ef4b3199139ebe2.tar.xz
kbuild: clean up *.lex.c and *.tab.[ch] patterns from top-level Makefile
Linux commit 9a8dfb394c046742b2ac7444ba42272e11e9989d Files suffixed by .lex.c, .tab.[ch] are generated lexers, parsers, respectively. Clean them up globally from the top Makefile. Some of the final host programs those lexer/parser are linked into are necessary for building external modules, but the intermediates are unneeded. They can be cleaned away by 'make clean' instead of 'make mrproper'. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a504dae471..1f4baa6679 100644
--- a/Makefile
+++ b/Makefile
@@ -997,6 +997,7 @@ clean: archclean $(clean-dirs)
@find . $(RCS_FIND_IGNORE) \
\( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
-o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
+ -o -name '*lex.c' -o -name '.tab.[ch]' \
-o -name '*.symtypes' -o -name '*.bbenv.*' -o -name "*.bbenv" \) \
-type f -print | xargs rm -f