From: Suraj Kurapati Date: 2006-12-06T05:04:46+09:00 Subject: Re: rakefile help: rakefile calling a rakefile? John Gabriele wrote: > I'd think I'd like to just do something this in the top-level Rakefile: > > task :default => [:build_other_c_file] do |t| > sh "cd subdir; rake" > end > > Is that the way multi-rakefile projects usually do it? That's how I do it. May not be the best solution, but hey, it works. > I read one of Jim's posts relating to this > http://rubyforge.org/pipermail/rake-devel/2005-December/000182.html > but don't know exactly how I'd go about building a "unified dependency > graph" as he recommends. I suppose you could load (instead of require) the nested Rakefile into a namespace and then use it as a dependency. For example: namespace :nested load 'subdir/Rakefile' end task :default => :nested:default -- Posted via http://www.ruby-forum.com/.