Ticket #170: proper_clean.patch
| File proper_clean.patch, 1.0 KB (added by maarten@…, 3 years ago) |
|---|
-
Rakefile
627 627 desc "Clean local build files" 628 628 task :local do 629 629 $builder.clean 630 ['parse.c', 'lex.c', INSTALLED_LIST, 'Makefile', *Dir['*.inc']].each { |x| rm_f(x) } 630 ['parse.c', 'lex.c', INSTALLED_LIST, 'Makefile', 'macruby', 'dtrace.h', 'prelude.c', 631 'revision.h', 'y.tab.c', 'miniprelude.c', 'framework/Info.plist', 632 'include/ruby/config.h', "lib#{RUBY_SO_NAME}-static.a", 633 *Dir['*.inc', "lib#{RUBY_SO_NAME}*.dylib"]].each { |x| rm_f(x) } 631 634 end 632 635 633 636 desc "Clean extension build files" … … 635 638 if File.exist?('./miniruby') 636 639 sh "./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ext/extmk.rb #{EXTMK_ARGS} -- clean" 637 640 end 641 ['miniruby', 'rbconfig.rb', *Dir['**/Makefile', '**/extconf.h']].each { |x| rm_f(x) } 642 rm_rf '.ext' 638 643 end 639 644 end 640 645

