1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/tasks/ragel.rake
Evan Weaver cde0074fef Merge branch 'mattetti-1.1.6' into spinoff
Conflicts:
	CHANGELOG
	ext/http11/http11.c
	ext/http11/http11_parser.c
	lib/mongrel/const.rb
2009-07-07 16:37:23 -07:00

18 lines
566 B
Ruby

# the following tasks ease the build of C file from Ragel one
file 'ext/http11/http11_parser.c' => ['ext/http11/http11_parser.rl'] do |t|
begin
sh "ragel #{t.prerequisites.last} -C -G2 -o #{t.name}"
rescue
fail "Could not build wrapper using Ragel (it failed or not installed?)"
end
end
file 'ext/http11_java/org/jruby/mongrel/Http11Parser.java' => ['ext/http11/http11_parser.rl'] do |t|
begin
sh "ragel #{t.prerequisites.last} -J -o #{t.name}"
rescue
fail "Could not build wrapper using Ragel (it failed or not installed?)"
end
end