From 9e120257274e59a73e04d1b702b3d23e6269b1d9 Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Thu, 19 Mar 2009 13:12:30 -0400 Subject: [PATCH] setup extension gem --- Rakefile | 17 +++++++++-------- ext/cbson/extconf.rb | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) 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')