diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/snap7.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Library/Formula/snap7.rb b/Library/Formula/snap7.rb index 68b0fb1e6..f83dc95a6 100644 --- a/Library/Formula/snap7.rb +++ b/Library/Formula/snap7.rb @@ -13,13 +13,10 @@ class Snap7 < Formula end def install - archstr = MacOS.prefer_64_bit? ? "x86_64" : "i386" lib.mkpath - - Dir.chdir "build/osx" do - system "make", "-f", "#{archstr}_osx.mk", "install", "LibInstall=#{lib}" - end - + system "make", "-C", "build/osx", + "-f", "#{MacOS.preferred_arch}_osx.mk", + "install", "LibInstall=#{lib}" include.install "release/Wrappers/c-cpp/snap7.h" end |
