Blob Blame Raw
commit 7a43e2e9d0fc3ba3b03bad6117b2ff6c8b9ab3a2
Author: Mike Dalessio <mike@csa.net>
Date:   Fri Jun 26 08:14:44 2009 -0400

    ensuring rake will run even if hoe-debugging isn't installed

diff --git a/Rakefile b/Rakefile
index a13dfaf..9434336 100644
--- a/Rakefile
+++ b/Rakefile
@@ -180,9 +180,11 @@ unless windows || java || ENV['NOKOGIRI_FFI']
     Rake::Task[task_name].prerequisites << GENERATED_TOKENIZER
   end
 
-  Rake::Task[:test].prerequisites << :compile
-  ['valgrind', 'valgrind:mem', 'valgrind:mem0'].each do |task_name|
-    Rake::Task["test:#{task_name}"].prerequisites << :compile
+  if Rake::Task.task_defined?(:valgrind)
+    Rake::Task[:test].prerequisites << :compile
+    ['valgrind', 'valgrind:mem', 'valgrind:mem0'].each do |task_name|
+      Rake::Task["test:#{task_name}"].prerequisites << :compile
+    end
   end
 else
   [:test, :check_manifest].each do |task_name|