diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-07-06 12:22:22 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-07-06 12:22:22 -0700 |
commit | 2110c8cb7b30e7106551b3bf672a9dc4dc97c3b4 (patch) | |
tree | 8225b677e0551118c6b938302eba0f0ee2b5050e | |
parent | 901bb63ddb4cd8efac76cf6f7ee6a0b60fa25e32 (diff) | |
download | libyajl2-gem-2110c8cb7b30e7106551b3bf672a9dc4dc97c3b4.tar.gz |
add dummy makefile when using system libs
-rw-r--r-- | ext/libyajl2/extconf.rb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/ext/libyajl2/extconf.rb b/ext/libyajl2/extconf.rb index dd951cf..378bca7 100644 --- a/ext/libyajl2/extconf.rb +++ b/ext/libyajl2/extconf.rb @@ -1,8 +1,21 @@ -exit(0) if ENV["USE_SYSTEM_LIBYAJL2"] require 'rbconfig' require 'fileutils' +if ENV["USE_SYSTEM_LIBYAJL2"] + File.open("Makefile", "w+") do |f| + f.write <<EOF +# dummy Makefile when we're not really installing +all: +\ttrue + +install: +\ttrue +EOF + end + exit(0) +end + module Libyajl2Build class BuildError < StandardError; end |