# Pastebin hpY9nkOB # A better implementation would scan the file for deps... depmaster5000 = ->(target) { FileList['base.rl'] } rule '.c' => ['.rl', depmaster5000] do |task| puts "Making #{task.name} from #{task.source}" cp task.source, task.name end task :lex => ['lexer.c']