]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
kbuild: delete *.pyc files by "make distclean"
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Wed, 12 Mar 2014 11:36:45 +0000 (20:36 +0900)
committerTom Rini <trini@ti.com>
Wed, 12 Mar 2014 21:05:00 +0000 (17:05 -0400)
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 <yamada.m@jp.panasonic.com>
Cc: Tom Rini <trini@ti.com>
Acked-by: Simon Glass <sjg@chromium.org>
Makefile

index c8d5ccc2e891754e030431ab2442ae8941881f99..538c3bf74a54054850e6e95f9b2dee7841cf46c3 100644 (file)
--- 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