From: gfx <gfuji@cpan.org>
Date: Mon, 21 Sep 2009 09:15:52 +0000 (+0900)
Subject: Remove xt/compatibility/* at make clean
X-Git-Tag: 0.32~21
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8e55c04e4a26cfc77dd045528a2e6aed5e7e5018;p=gitmo%2FMouse.git

Remove xt/compatibility/* at make clean
---

diff --git a/Makefile.PL b/Makefile.PL
index 80baa6e..ecb51d7 100755
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -54,6 +54,8 @@ sub create_moose_compatibility_test {
         '031_roles_applied_in_create.t' => 't/lib/* classes are not Moose classes/roles',
     );
 
+    my @compat_tests;
+
     File::Find::find(
         {
             wanted => sub {
@@ -84,10 +86,12 @@ sub create_moose_compatibility_test {
                     $src;
                 };
                 close $wfh;
+                push @compat_tests, $tmpfile;
             },
             no_chdir => 1
         },
         't',
     );
+    clean_files "@compat_tests";
 }