diff --git a/Rakefile b/Rakefile index eb6d811..a218269 100644 --- a/Rakefile +++ b/Rakefile @@ -28,14 +28,6 @@ task :publish => [:rdoc] do Rake::RubyForgePublisher.new(GEM, RUBYFORGE_USER).upload end -desc "Compile the extension" -task :compile do - cd 'ext/cbson' - ruby 'extconf.rb' - sh 'make' - cp "cbson.#{CONFIG['DLEXT']}", '../../lib/mongo/ext' -end - namespace :gem do desc "Install the gem locally" @@ -47,6 +39,15 @@ gem build mongo-ruby-driver.gemspec && EOS end + desc "Install the optional c extensions" + task :install_extensions do + sh < :list diff --git a/ext/cbson/extconf.rb b/ext/cbson/extconf.rb index ff9c97b..4e04612 100644 --- a/ext/cbson/extconf.rb +++ b/ext/cbson/extconf.rb @@ -1,4 +1,4 @@ require 'mkmf' dir_config('cbson') -create_makefile('mongo-ext/ext/cbson') +create_makefile('mongo_ext/cbson')