diff Makefile @ 94:b18c5670f6c0

Remove __pycache__ files in the clean target
author Roy Marples <roy@marples.name>
date Thu, 21 Jan 2021 22:52:55 +0000
parents 0a4367911035
children
line wrap: on
line diff
--- a/Makefile	Thu Jan 21 20:42:10 2021 +0000
+++ b/Makefile	Thu Jan 21 22:52:55 2021 +0000
@@ -4,6 +4,7 @@
 CHMOD?=		chmod
 COMP?=		xz
 COMP_SUFFIX?=	.xz
+FIND?=		find
 LS?=		ls
 RM?=		rm
 TAR?=		tar
@@ -40,6 +41,8 @@
 .PHONY: clean
 clean:
 	$(RM) -rf build dist hg_fastimport.egg-info
+	$(FIND) . -type f -name "*.py[co]" -delete \
+		-o -type d -name __pycache__ -delete
 
 .PHONY: distclean
 distclean: clean