skip rake cleans unless ruby/Makefile exists
This commit is contained in:
parent
98470f551f
commit
3598952e93
6
Rakefile
6
Rakefile
|
@ -53,7 +53,7 @@ end
|
||||||
|
|
||||||
desc 'Build sigar extension'
|
desc 'Build sigar extension'
|
||||||
task :build do
|
task :build do
|
||||||
in_ext();
|
in_ext()
|
||||||
unless File.exists? "Makefile"
|
unless File.exists? "Makefile"
|
||||||
unless system("ruby extconf.rb")
|
unless system("ruby extconf.rb")
|
||||||
STDERR.puts "Failed to configure"
|
STDERR.puts "Failed to configure"
|
||||||
|
@ -78,13 +78,13 @@ end
|
||||||
desc 'Clean sigar extension'
|
desc 'Clean sigar extension'
|
||||||
task :clean do
|
task :clean do
|
||||||
in_ext()
|
in_ext()
|
||||||
system(MAKE + ' clean')
|
system(MAKE + ' clean') if File.exists? "Makefile"
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Dist Clean sigar extension'
|
desc 'Dist Clean sigar extension'
|
||||||
task :distclean do
|
task :distclean do
|
||||||
in_ext()
|
in_ext()
|
||||||
system(MAKE + ' distclean')
|
system(MAKE + ' distclean') if File.exists? "Makefile"
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Run sigar examples (test)'
|
desc 'Run sigar examples (test)'
|
||||||
|
|
Loading…
Reference in New Issue