Projects

Ticket #170: proper_clean.patch

File proper_clean.patch, 1.0 KB (added by maarten@…, 3 years ago)
  • Rakefile

     
    627627  desc "Clean local build files" 
    628628  task :local do 
    629629    $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) } 
    631634  end 
    632635 
    633636  desc "Clean extension build files" 
     
    635638    if File.exist?('./miniruby')  
    636639      sh "./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ext/extmk.rb #{EXTMK_ARGS} -- clean" 
    637640    end 
     641    ['miniruby', 'rbconfig.rb', *Dir['**/Makefile', '**/extconf.h']].each { |x| rm_f(x) }     
     642    rm_rf '.ext' 
    638643  end 
    639644end 
    640645