diff options
author | James E. King III <jking@apache.org> | 2019-01-24 17:45:07 -0500 |
---|---|---|
committer | James E. King III <jking@apache.org> | 2019-01-25 23:33:54 -0500 |
commit | b96c43892a9e89dfa61834505bb25357e80287da (patch) | |
tree | 02bbf30d80e6f6ef8c76bc67ad20b90331b6de9d /test/py.tornado | |
parent | 8935c98046dbbdd36ede73c1525f1be9df8da5cd (diff) | |
download | thrift-b96c43892a9e89dfa61834505bb25357e80287da.tar.gz |
THRIFT-4717: fix up make clean with autoconf
Diffstat (limited to 'test/py.tornado')
-rw-r--r-- | test/py.tornado/Makefile.am | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/py.tornado/Makefile.am b/test/py.tornado/Makefile.am index a8e680a97..e962f0cfc 100644 --- a/test/py.tornado/Makefile.am +++ b/test/py.tornado/Makefile.am @@ -27,4 +27,12 @@ check: thrift_gen ./test_suite.py clean-local: - $(RM) -r gen-py.tornado + $(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*/ |