forked from ruby-marc/ruby-marc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
34 lines (26 loc) · 705 Bytes
/
Rakefile
File metadata and controls
34 lines (26 loc) · 705 Bytes
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
28
29
30
31
32
33
34
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/extensiontask'
require 'rake/clean'
require 'rdoc/task'
require 'bundler/gem_tasks'
task :default => [:test]
Rake::TestTask.new('test') do |t|
t.libs << 'lib'
t.pattern = 'test/**/tc_*.rb'
t.verbose = true
end
Rake::RDocTask.new('doc') do |rd|
rd.rdoc_files.include("README", "Changes", "LICENSE", "lib/**/*.rb")
rd.main = 'MARC::Record'
rd.rdoc_dir = 'doc'
end
spec = Gem::Specification.load('marc.gemspec')
Rake::ExtensionTask.new do |ext|
ext.name = 'readmarc'
ext.ext_dir = 'ext/readmarc'
ext.lib_dir = 'lib/marc'
ext.gem_spec = spec
end
CLEAN.include "**/*.o", "**/*.so", "**/*.bundle", "pkg", "tmp"