Permalink
Browse files

Write Makefile equally as mkmf does.

  • Loading branch information...
1 parent 11fd7eb commit 067be7386f0145c5b29bead833def527aa5df666 @larskanis committed Dec 16, 2016
Showing with 2 additions and 2 deletions.
  1. +1 −1 Rakefile
  2. +1 −1 ext/extconf.rb
View
@@ -13,7 +13,7 @@ require_relative 'lib/libusb/gem_helper'
task :gem => :build
task :compile do
- sh "ruby ext/extconf.rb --disable-system-libusb"
+ sh "ruby -C ext extconf.rb --disable-system-libusb"
sh "make -C ext install RUBYARCHDIR=../lib"
end
View
@@ -82,7 +82,7 @@ def build_bundled_libusb(have_udev)
end
# Create a Makefile which copies the libusb library files to the gem's lib dir.
-File.open(File.expand_path("../Makefile", __FILE__), "w") do |mf|
+File.open("Makefile", "wb") do |mf|
mf.puts <<-EOT
RUBYARCHDIR = #{RbConfig::MAKEFILE_CONFIG['sitearchdir'].dump}
all:

0 comments on commit 067be73

Please sign in to comment.