diff options
| author | Jack Morrison | 2014-01-26 22:11:34 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-27 17:37:00 +0100 |
| commit | c71eed3bcfd78c6dc4ee8d2eeccc66f3fcbb79c2 (patch) | |
| tree | 6ab47bde371700c4c718e73939e651668f5fbbd9 /Library/Formula/cppcheck.rb | |
| parent | e4c2e285f0505cdc263a238b150272f75129c5c7 (diff) | |
| download | homebrew-c71eed3bcfd78c6dc4ee8d2eeccc66f3fcbb79c2.tar.bz2 | |
cppcheck: Add CFGDIR and install cfg directory.
Closes #26194.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/cppcheck.rb')
| -rw-r--r-- | Library/Formula/cppcheck.rb | 7 |
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 |
