From 875ef440682cb3e5ccc6cc9513a4bf2f1d9b72b4 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 27 Nov 2017 14:40:47 +0100 Subject: [PATCH] Fix syntax of find -delete With -delete, the matches must be grouped. Otherwise -delete is only executed for the last matcher. https://github.com/python-ldap/python-ldap/pull/27 Signed-off-by: Christian Heimes --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 770620a..47fac90 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,8 @@ all: clean: rm -rf build dist *.egg-info $(VENV) .tox MANIFEST rm -f .coverage .coverage.* - find . -name '*.py[co]' -or -name '*.so*' -or -name '*.dylib' -delete + find . \( -name '*.py[co]' -or -name '*.so*' -or -name '*.dylib' \) \ + -delete find . -depth -name __pycache__ -exec rm -rf {} \; # LCOV report (measuring test coverage for C code)