Use Rake::FileList and rake rules.