duperemoverb/Rakefile

30 lines
562 B
Ruby

# vim: set noet sw=2 ts=2 sts=2:
require 'rake'
require 'rake/extensiontask'
require 'bundler'
extensions = %w[fideduperange].map {|n| [n, Pathname.new( 'ext') + n + "#{n}.so"] }.to_h
extensions.each do |name, path|
Rake::ExtensionTask.new name do |extension|
extension.lib_dir = path.dirname
end
end
task :chmod do
extensions.each do |_,path|
path.chmod 0755
end
end
task :clean do
extensions.each do |_,path|
path.unlink if path.exist?
end
end
task :build => [:clean, :compile, :chmod]
Bundler::GemHelper.install_tasks name: 'duperemoverb'