Rakefile in debase-0.2.2.beta8 vs Rakefile in debase-0.2.2.beta9
- old
+ new
@@ -11,10 +11,18 @@
rm "Makefile"
end
derived_files = Dir.glob(".o") + Dir.glob("*.so") + Dir.glob("*.bundle")
rm derived_files unless derived_files.empty?
end
+ cd "ext/attach" do
+ if File.exists?("Makefile")
+ sh "make clean"
+ rm "Makefile"
+ end
+ derived_files = Dir.glob(".o") + Dir.glob("*.so") + Dir.glob("*.bundle")
+ rm derived_files unless derived_files.empty?
+ end
if File.exists?('pkg')
cd 'pkg' do
derived_files = Dir.glob('*.gem')
rm derived_files unless derived_files.empty?
end
@@ -22,9 +30,13 @@
end
desc "Create the core debase shared library extension"
task :lib => :clean do
Dir.chdir("ext") do
+ system("#{Gem.ruby} extconf.rb && make")
+ exit $?.to_i if $?.to_i != 0
+ end
+ Dir.chdir("ext/attach") do
system("#{Gem.ruby} extconf.rb && make")
exit $?.to_i if $?.to_i != 0
end
end