forked from joegoggins/ruby-audio
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
38 lines (29 loc) · 643 Bytes
/
Rakefile
File metadata and controls
38 lines (29 loc) · 643 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
task :default => [:test, :doc]
task :install => [:setup] do
sh 'ruby setup.rb install'
end
desc "RDoc documentation"
task :doc do
sh 'rdoc --op "rdoc" -t "ruby-audio" -m README README lib'
end
file '.config' do
sh 'cd ext/sndfile/ && ruby extconf.rb && cd ../.. '
sh 'ruby setup.rb config'
end
task :setup => ['.config'] do
sh 'ruby setup.rb setup'
end
desc 'clean up'
task :clean do
sh 'ruby setup.rb clean'
sh 'rm -rf doc'
end
task :dist do
sh 'darcs dist -d ruby-audio-`cat VERSION`'
end
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs += ['ext/sndfile']
end
task :test => [:setup]
# vim: filetype=ruby