From: Masahiro Yamada Date: Wed, 12 Mar 2014 11:36:45 +0000 (+0900) Subject: kbuild: delete *.pyc files by "make distclean" X-Git-Tag: v2014.04-rc3~65 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2e50f6dccb3eeb1a20993c9da73fe355da35cf04;p=u-boot kbuild: delete *.pyc files by "make distclean" The tools "buildman" and "patman" are written in Python. When we run them, "*.pyc" files are created under tools/buildman, tools/patman directories. They should be cleaned up by "make distclean". Signed-off-by: Masahiro Yamada Cc: Tom Rini Acked-by: Simon Glass --- diff --git a/Makefile b/Makefile index c8d5ccc2e8..538c3bf74a 100644 --- a/Makefile +++ b/Makefile @@ -1228,7 +1228,7 @@ distclean: mrproper @find $(srctree) $(RCS_FIND_IGNORE) \ \( -name '*.orig' -o -name '*.rej' -o -name '*~' \ -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \ - -o -name '.*.rej' \ + -o -name '.*.rej' -o -name '*.pyc' \ -o -name '*%' -o -name '.*.cmd' -o -name 'core' \) \ -type f -print | xargs rm -f