2009-10-01 22:17:06 -04:00
|
|
|
require 'mkmf'
|
|
|
|
|
2009-10-08 23:27:41 -04:00
|
|
|
dir_config('v8')
|
2009-10-13 13:02:40 -04:00
|
|
|
have_library('v8') or raise "unable to find libv8"
|
2009-10-08 20:46:59 -04:00
|
|
|
|
|
|
|
create_makefile('v8')
|
2009-10-15 23:23:53 -04:00
|
|
|
|
|
|
|
# now add a few extra targets
|
|
|
|
File.open("Makefile", "a") do |makefile|
|
|
|
|
makefile.print <<EOF
|
|
|
|
|
|
|
|
test: all
|
2009-10-15 23:45:53 -04:00
|
|
|
@echo running spec...
|
2009-10-16 16:32:01 -04:00
|
|
|
spec -O spec/spec.opts spec/therubyracer_spec.rb
|
2009-10-17 23:45:02 -04:00
|
|
|
|
|
|
|
docs/cpp:
|
|
|
|
mkdir -p docs/cpp
|
|
|
|
|
|
|
|
docs: all docs/cpp
|
|
|
|
@echo Generate C++ docs to docs/cpp/html
|
|
|
|
doxygen Doxyfile
|
|
|
|
|
2009-10-15 23:23:53 -04:00
|
|
|
EOF
|
|
|
|
end
|