1 # optional rake-compiler support in case somebody needs to cross compile
3 mk = "ext/unicorn_http/Makefile"
5 warn "run 'gmake -C ext/unicorn_http clean' and\n" \
6 "remove #{mk} before using rake-compiler"
8 unless File.readable?("ext/unicorn_http/unicorn_http.c")
9 abort "run 'gmake ragel' or 'make ragel' to generate the Ragel source"
11 spec = Gem::Specification.load('unicorn.gemspec')
12 require 'rake/extensiontask'
13 Rake::ExtensionTask.new('unicorn_http', spec)