From 7b99e57bc2e7976aeabda1a01d1149fd3cab0313 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 4 May 2014 13:45:47 -0500 Subject: snap7: simplify build --- Library/Formula/snap7.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3