[Rake-devel] makefile loader bu

Ittay Dror ittay.dror at gmail.com
Tue Jul 22 12:01:53 EDT 2008

when parsing dependency files in the format of make (generated by unix 
compilers), the file_task variable (actually, the file name) is not 
stripped. so if it contains spaces, it means it represents a different 
task than what you'd expect.

here's the patch to solve this:
--- rake/loaders/makefile.rb.orig    2008-07-22 19:01:11.000000000 +0300
+++ rake/loaders/makefile.rb    2008-07-22 18:55:59.000000000 +0300
@@ -29,6 +29,7 @@
     # Process one logical line of makefile data.
     def process_line(line)
       file_task, args = line.split(':')
+      file_task.strip!
       return if args.nil?
       dependents = args.split
       file file_task => dependents

Ittay Dror <ittay.dror at gmail.com>

More information about the Rake-devel mailing list