THRIFT-3869 Remove Dart packages during make clean
Client: Dart
Patch: Mark Erickson <mark.erickson@workiva.com>
This closes #1047
diff --git a/lib/dart/Makefile.am b/lib/dart/Makefile.am
index 6dfff40..a6e4556 100644
--- a/lib/dart/Makefile.am
+++ b/lib/dart/Makefile.am
@@ -22,5 +22,7 @@
clean-local:
$(RM) -r .pub
+ find . -type d -name "packages" | xargs $(RM) -r
+ find . -type f -name ".packages" | xargs $(RM)
check-local: all
diff --git a/test/dart/Makefile.am b/test/dart/Makefile.am
index 59b3b7d..6f97de9 100644
--- a/test/dart/Makefile.am
+++ b/test/dart/Makefile.am
@@ -36,6 +36,8 @@
clean-local:
$(RM) -r gen-dart test_client/.pub
+ find . -type d -name "packages" | xargs $(RM) -r
+ find . -type f -name ".packages" | xargs $(RM)
client: stubs
${DART} test_client/bin/main.dart
diff --git a/tutorial/dart/Makefile.am b/tutorial/dart/Makefile.am
index a0032c3..ccca598 100644
--- a/tutorial/dart/Makefile.am
+++ b/tutorial/dart/Makefile.am
@@ -28,6 +28,8 @@
clean-local:
$(RM) -r gen-*
+ find . -type d -name "packages" | xargs $(RM) -r
+ find . -type f -name ".packages" | xargs $(RM)
pub-get: pub-get-gen pub-get-client pub-get-console-client pub-get-server