Skip to content
Browse files

skip rake cleans unless ruby/Makefile exists

  • Loading branch information...
1 parent 98470f5 commit 3598952e93cc3c6e95f777b2327575e65ef2aa3c @dougm dougm committed May 20, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 Rakefile
View
6 Rakefile
@@ -53,7 +53,7 @@ end
desc 'Build sigar extension'
task :build do
- in_ext();
+ in_ext()
unless File.exists? "Makefile"
unless system("ruby extconf.rb")
STDERR.puts "Failed to configure"
@@ -78,13 +78,13 @@ end
desc 'Clean sigar extension'
task :clean do
in_ext()
- system(MAKE + ' clean')
+ system(MAKE + ' clean') if File.exists? "Makefile"
end
desc 'Dist Clean sigar extension'
task :distclean do
in_ext()
- system(MAKE + ' distclean')
+ system(MAKE + ' distclean') if File.exists? "Makefile"
end
desc 'Run sigar examples (test)'

0 comments on commit 3598952

Please sign in to comment.
Something went wrong with that request. Please try again.