Re-build lexers when base_lexer.rl changes.

Thanks to @avdi for bringing up on how to do this when using rule() blocks.
This commit is contained in:
Yorick Peterse 2014-05-10 00:28:23 +02:00
parent 19f04f98f7
commit ba3d96c819
1 changed files with 2 additions and 2 deletions

View File

@ -16,11 +16,11 @@ rule '.rb' => '.rl' do |task|
end end
end end
rule '.c' => '.rl' do |task| rule '.c' => ['.rl', 'ext/ragel/base_lexer.rl'] do |task|
sh "ragel -I ext/ragel -C -G2 #{task.source} -o #{task.name}" sh "ragel -I ext/ragel -C -G2 #{task.source} -o #{task.name}"
end end
rule '.java' => '.rl' do |task| rule '.java' => ['.rl', 'ext/ragel/base_lexer.rl'] do |task|
sh "ragel -I ext/ragel -J #{task.source} -o #{task.name}" sh "ragel -I ext/ragel -J #{task.source} -o #{task.name}"
end end