[PATCH 1 of 2] Makefile: remove all .so files during clean

Brodie Rao brodie at bitheap.org
Sat Sep 25 20:05:25 CDT 2010


# HG changeset patch
# User Brodie Rao <brodie at bitheap.org>
# Date 1285461507 18000
# Node ID 30af95ad22284dd55120ac5442d753b9138b93f0
# Parent  4cdaf1adafc80ab9d63a12b27699b378142a5004
Makefile: remove all .so files during clean

This ensures .so files in hgext are cleaned up.

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -43,8 +43,8 @@ doc:
 
 clean:
 	-$(PYTHON) setup.py clean --all # ignore errors from this command
-	find . -name '*.py[cdo]' -exec rm -f '{}' ';'
-	rm -f MANIFEST mercurial/__version__.py mercurial/*.so tests/*.err
+	find . \( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';'
+	rm -f MANIFEST mercurial/__version__.py tests/*.err
 	rm -rf mercurial/locale
 	$(MAKE) -C doc clean
 


More information about the Mercurial-devel mailing list