rakelib/compile.rake
changeset 102 fc572bd895f2
parent 101 32f9287b419a
child 107 e6d325dbc81b
equal deleted inserted replaced
101:32f9287b419a 102:fc572bd895f2
   302     error "Unsuported platform: #{Config::CONFIG['host_os']}"
   302     error "Unsuported platform: #{Config::CONFIG['host_os']}"
   303   end
   303   end
   304 
   304 
   305   rule 'makefile' do | t |
   305   rule 'makefile' do | t |
   306     if File.exist?(File.dirname(t.name) / 'GNUmakefile')
   306     if File.exist?(File.dirname(t.name) / 'GNUmakefile')
   307   rm (File.dirname(t.name) / 'GNUmakefile')
   307       rm (File.dirname(t.name) / 'GNUmakefile')
   308     end
   308     end
   309 
   309 
   310     chdir File.dirname(t.name) do
   310     chdir File.dirname(t.name) do
   311       sh "'#{STX_TOP_DIR / 'rules' / 'stmkmf'}'"
   311       sh "'#{STX_TOP_DIR / 'rules' / 'stmkmf'}'"
   312     end
   312     end