Remove xt/compatibility/* at make clean
gfx [Mon, 21 Sep 2009 09:15:52 +0000 (18:15 +0900)]
Makefile.PL

index 80baa6e..ecb51d7 100755 (executable)
@@ -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";
 }