From: Patrick Doyle Date: 2008-10-22T22:48:57+09:00 Subject: Re: Rake Rule name problem ------=_Part_21683_4645847.1224683429623 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wed, Oct 22, 2008 at 6:49 AM, Jim Boooo wrote: > > > task :go =>["blah.c"] > > Maybe it will work like that but it's not useful. I don't know until > run time the name of the file I want to create. Sorry, I just meant that to be used as an example to show what was going on. From my understanding of your problem, I didn't think it would be useful. Would something like this solve your problem? def figure_out_names # This should return a list of names end # assuming that figure_out_names() returns the names w/o the ".c" extension list_of_names = figure_out_names() list_of_names.each do |name| task name + ".c" => name + ".xml" end task :default => list_of_names.map {|n| n + ".c"} rule '.c' => ['.xml'] do |t| p t.name p t.source end --wpd ------=_Part_21683_4645847.1224683429623--