forked from oTnTh/rgd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
26 lines (22 loc) · 782 Bytes
/
Rakefile
File metadata and controls
26 lines (22 loc) · 782 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
require "bundler/gem_tasks"
require 'rake/clean'
require 'rake/testtask'
require 'rake/packagetask'
require 'rdoc/task'
Rake::PackageTask.new("rgd", RGD::VERSION) do |pkg|
pkg.need_tar = true
pkg.need_zip = true
pkg.package_files.include("lib/**/*", "ext/**/*", "BSDL", "COPYING.rdoc", "README.md", "README.rdoc")
end
Rake::RDocTask.new do |rdoc|
files =['README.rdoc', 'COPYING.rdoc', 'lib/**/*.rb'] + Dir.glob("ext/**/*.c")
rdoc.rdoc_files.add(files)
rdoc.main = "README.rdoc" # page to start on
rdoc.title = "RGD Docs"
rdoc.rdoc_dir = 'doc' # rdoc output folder
rdoc.options << '--line-numbers'
end
Rake::TestTask.new do |t|
t.test_files = FileList['test/main.rb']
end
CLEAN.include ['pkg', '**/*.o', '**/*.log', '**/*.def', '**/Makefile', 'ext/**/*.so']