summaryrefslogtreecommitdiff
path: root/test/py
diff options
context:
space:
mode:
authorJames E. King III <jking@apache.org>2019-01-24 17:45:07 -0500
committerJames E. King III <jking@apache.org>2019-01-25 23:33:54 -0500
commitb96c43892a9e89dfa61834505bb25357e80287da (patch)
tree02bbf30d80e6f6ef8c76bc67ad20b90331b6de9d /test/py
parent8935c98046dbbdd36ede73c1525f1be9df8da5cd (diff)
downloadthrift-b96c43892a9e89dfa61834505bb25357e80287da.tar.gz
THRIFT-4717: fix up make clean with autoconf
Diffstat (limited to 'test/py')
-rw-r--r--test/py/Makefile.am10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/py/Makefile.am b/test/py/Makefile.am
index 829620055..9433e5907 100644
--- a/test/py/Makefile.am
+++ b/test/py/Makefile.am
@@ -94,4 +94,12 @@ gen-py-dynamicslots/%/__init__.py: ../%.thrift $(THRIFT)
$(THRIFT) --gen py:dynamic,slots -out gen-py-dynamicslots $<
clean-local:
- $(RM) -r gen-py gen-py-slots gen-py-default gen-py-oldstyle gen-py-no_utf8strings gen-py-dynamic gen-py-dynamicslots
+ $(RM) -r build
+ find . -type f \( -iname "*.pyc" \) | xargs rm -f
+ find . -type d \( -iname "__pycache__" -or -iname "_trial_temp" \) | xargs rm -rf
+ $(RM) -r gen-py*/
+
+dist-hook:
+ find $(distdir) -type f \( -iname "*.pyc" \) | xargs rm -f
+ find $(distdir) -type d \( -iname "__pycache__" -or -iname "_trial_temp" \) | xargs rm -rf
+ $(RM) -r $(distdir)/gen-py*/