duperemoverb/Rakefile

22 lines
446 B
Ruby
Raw Normal View History

2021-09-02 23:18:31 +02:00
# vim: set noet sw=2 ts=2 sts=2:
require 'rake'
require 'rake/extensiontask'
require 'bundler'
Rake::ExtensionTask.new( "deduperemoverb") do |extension|
extension.lib_dir = "ext"
end
task :chmod do
File.chmod 0775, 'ext/deduperemoverb.so'
end
task :clean do
File.unlink 'ext/deduperemoverb.so' if File.exists? 'ext/deduperemoverb.so'
end
task :build => [:clean, :compile, :chmod]
Bundler::GemHelper.install_tasks name: 'deduperemoverb'