Using latest GNU Make in formula build section #5620
-
Hi, In the next version of a formula ( Now, when building the formula, we need the "make" which comes with Homebrew (version 4.4.1 as of today). However, that make is installed as gmake on macOS. On Linux, we don't need it. Being ignorant in Ruby, I need some advice on the best way to update the formula so that:
In the past, I have seen that some potentially complicated things were elegantly solved by Homebrew maintainers in one single obscure line (obscure to me). I am curious to see how to solve this one the right way. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You could do on_macos do
depends_on "make" => :build
end and then in the I'm also tempted to say that we should make the |
Beta Was this translation helpful? Give feedback.
You could do
and then in the
install
method you should be able to callgmake
unconditionally since that will still resolve to the right executable on Linux.I'm also tempted to say that we should make the
make
dependency unconditional for simplicity, but I'll leave that up to you.