Permalink
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (20 sloc) 558 Bytes
# :build
# :install
# :release
require "bundler/gem_tasks"
# :clean
# :clobber
# :compile
# :compile:serialport
require "rake/extensiontask"
CLOBBER << FileList["doc"]
CLOBBER << FileList["pkg"]
GEMSPEC = eval File.read File.expand_path("../serialport.gemspec", __FILE__)
Rake::ExtensionTask.new "serialport", GEMSPEC do |ext|
ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact)
ext.ext_dir = "ext/native"
end
# add your default gem packing task
Gem::PackageTask.new(GEMSPEC) do |pkg|
end
task :default => [:clean, :clobber, :compile, :test]