-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathRakefile
More file actions
39 lines (32 loc) · 772 Bytes
/
Rakefile
File metadata and controls
39 lines (32 loc) · 772 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
35
36
37
38
39
require 'rubygems'
require 'bundler'
require 'rake'
require 'rake/testtask'
require 'rubygems/package_task'
require 'rdoc/task'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
task :test => :compile
task :default => :test
RDoc::Task.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "ruby-lua #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
task :compile do
chdir 'ext' do
ruby 'extconf.rb'
sh 'make'
end
end
task :clean do
chdir 'ext' do
sh 'rm -f *.bundle *.dll *.so *.o *.obj Makefile config.h mkmf.log'
end
end
Bundler::GemHelper.install_tasks