Index: Rakefile
===================================================================
--- Rakefile    (revision 766)
+++ Rakefile    (working copy)
@@ -627,7 +627,10 @@
   desc "Clean local build files"
   task :local do
     $builder.clean
-    ['parse.c', 'lex.c', INSTALLED_LIST, 'Makefile', *Dir['*.inc']].each { |x| rm_f(x) }
+    ['parse.c', 'lex.c', INSTALLED_LIST, 'Makefile', 'macruby', 'dtrace.h', 'prelude.c',
+       'revision.h', 'y.tab.c', 'miniprelude.c', 'framework/Info.plist', 
+       'include/ruby/config.h', "lib#{RUBY_SO_NAME}-static.a", 
+      *Dir['*.inc', "lib#{RUBY_SO_NAME}*.dylib"]].each { |x| rm_f(x) }
   end
 
   desc "Clean extension build files"
@@ -635,6 +638,8 @@
     if File.exist?('./miniruby') 
       sh "./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ext/extmk.rb #{EXTMK_ARGS} -- clean"
     end
+    ['miniruby', 'rbconfig.rb', *Dir['**/Makefile', '**/extconf.h']].each { |x| rm_f(x) }    
+    rm_rf '.ext'
   end
 end


