Make Rakefile smarter