Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

skip rake cleans unless ruby/Makefile exists

  • Loading branch information...
commit 3598952e93cc3c6e95f777b2327575e65ef2aa3c 1 parent 98470f5
Doug MacEachern dougm authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 Rakefile
6 Rakefile
@@ -53,7 +53,7 @@ end
53 53
54 54 desc 'Build sigar extension'
55 55 task :build do
56   - in_ext();
  56 + in_ext()
57 57 unless File.exists? "Makefile"
58 58 unless system("ruby extconf.rb")
59 59 STDERR.puts "Failed to configure"
@@ -78,13 +78,13 @@ end
78 78 desc 'Clean sigar extension'
79 79 task :clean do
80 80 in_ext()
81   - system(MAKE + ' clean')
  81 + system(MAKE + ' clean') if File.exists? "Makefile"
82 82 end
83 83
84 84 desc 'Dist Clean sigar extension'
85 85 task :distclean do
86 86 in_ext()
87   - system(MAKE + ' distclean')
  87 + system(MAKE + ' distclean') if File.exists? "Makefile"
88 88 end
89 89
90 90 desc 'Run sigar examples (test)'

0 comments on commit 3598952

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