File: Rakefile

package info (click to toggle)
ruby-serialport 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 188 kB
  • ctags: 132
  • sloc: ansic: 1,524; ruby: 72; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 558 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

# :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]