From 80470ed13dbc0b490364dbd2defbc0c58917da7e Mon Sep 17 00:00:00 2001 From: Paul Annesley Date: Wed, 3 Dec 2014 02:06:45 -0800 Subject: [PATCH] cc65: fix HEAD install; gcc.mak no longer exists. The `-f make/gcc.mak` option is still required for the latest stable release, but `make/gcc.mak` was made unnecessary and removed in cc65 commit 9fece990bea6525bec5afd8b60d1c731a4d13839 in 2013, so providing that option for HEAD builds causes an error. Closes Homebrew/homebrew#34639. Signed-off-by: Mike McQuaid --- Formula/cc65.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Formula/cc65.rb b/Formula/cc65.rb index 1cc5ff4e2c..8a90d2a0a9 100644 --- a/Formula/cc65.rb +++ b/Formula/cc65.rb @@ -13,8 +13,16 @@ class Cc65 < Formula def install ENV.deparallelize ENV.no_optimization - system "make", "-f", "make/gcc.mak", "prefix=#{prefix}", "libdir=#{share}" - system "make", "-f", "make/gcc.mak", "install", "prefix=#{prefix}", "libdir=#{share}" + + make_vars = ["prefix=#{prefix}", "libdir=#{share}"] + + if head? + system "make", *make_vars + system "make", "install", *make_vars + else + system "make", "-f", "make/gcc.mak", *make_vars + system "make", "-f", "make/gcc.mak", "install", *make_vars + end end def caveats; <<-EOS.undent