From c71eed3bcfd78c6dc4ee8d2eeccc66f3fcbb79c2 Mon Sep 17 00:00:00 2001 From: Jack Morrison Date: Sun, 26 Jan 2014 22:11:34 -0500 Subject: cppcheck: Add CFGDIR and install cfg directory. Closes #26194. Signed-off-by: Mike McQuaid --- Library/Formula/cppcheck.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Formula/cppcheck.rb b/Library/Formula/cppcheck.rb index 43f24db1e..a42e68835 100644 --- a/Library/Formula/cppcheck.rb +++ b/Library/Formula/cppcheck.rb @@ -18,12 +18,13 @@ class Cppcheck < Formula # Pass to make variables. if build.include? 'no-rules' - system "make", "HAVE_RULES=no" + system "make", "HAVE_RULES=no", "CFGDIR=#{prefix}/cfg" else - system "make", "HAVE_RULES=yes" + system "make", "HAVE_RULES=yes", "CFGDIR=#{prefix}/cfg" end - system "make", "DESTDIR=#{prefix}", "BIN=#{bin}", "install" + system "make", "DESTDIR=#{prefix}", "BIN=#{bin}", "CFGDIR=#{prefix}/cfg", "install" + prefix.install "cfg" if build.include? 'with-gui' cd "gui" do -- cgit v1.2.3