Skip to contentSkip to conversation

kbuild: delete *.pyc files by "make distclean"

PATCH New Masahiro Yamada 2 participants 2 messages Mar 12, 2014 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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".

---

Changes in v2:
- This is a minor update, but fixed a typo in commit description s/written Python/written in Python/

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index c8d5ccc..538c3bf 100644
@@ -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
 
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH v2 1/1 kbuild: delete *.pyc files by "make distclean"

Quoted 10 lines · Masahiro Yamada

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".

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/6277a2b8/attachment.pgp>