1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00

Add Libv8::Make module in ext/

This module provides make discovery, it first tries to find gmake and
then falls back to make. This should enable it to work safely and
correctly on both BSD and Linux systems.
This commit is contained in:
Geoff Garside 2012-05-12 11:22:34 +01:00
parent b981c474f1
commit f2738ef075

13
ext/libv8/make.rb Normal file
View file

@ -0,0 +1,13 @@
module Libv8
module Make
module_function
def make
unless defined?(@make)
@make = `which gmake`.chomp
@make = `which make`.chomp unless $?.success?
end
@make
end
end
end