# Find all racc files and generate the parser. # RACC_FILES = FileList[ 'lib/**/*.y'].ext( '.rb' ) namespace :bt do desc "Generate parser with racc" task :racc => RACC_FILES rule '.rb' => '.y' do |target| sh "racc -g #{target.source} -o #{target.name}" end end