aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-05-04 13:45:47 -0500
committerJack Nagel2014-05-04 13:46:50 -0500
commit7b99e57bc2e7976aeabda1a01d1149fd3cab0313 (patch)
tree647883bc614bc95a476bf64bde74ac620677a8fc /Library
parentd6b9faadd01a4534d95e22495232991589fa664c (diff)
downloadhomebrew-7b99e57bc2e7976aeabda1a01d1149fd3cab0313.tar.bz2
snap7: simplify build
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/snap7.rb9
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