aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cppcheck.rb7
1 files changed, 4 insertions, 3 deletions
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