如何在Mac OS上安装较新版本的make?

sor*_*rin 12 macos homebrew makefile

Mac OS附带make版本3.81,我想要一个较新的版本(>=4.0)用于某些项目.

如何安装新版本,最好使用brew?

这与GNU Make --output-sync有关吗?因为我想在并行构建上使用一些功能输出同步.

cel*_*cel 5

酿造船makehomebrew/dupes水龙头.在PATH中brew install homebrew/dupes/make放置gmake二进制文件以避免与macOS上的默认make版本冲突.

该选项--with-default-names将安装为make默认版本并因此影响默认版本.

有关brew info homebrew/dupes/make详细信息,请参阅

homebrew/dupes/make: stable 4.2.1 (bottled)
Utility for directing compilation
https://www.gnu.org/software/make/
/usr/local/Cellar/make/4.2.1 (12 files, 957.3K) *
  Poured from bottle on 2016-08-11 at 20:18:41
From: https://github.com/Homebrew/homebrew-dupes/blob/master/make.rb
==> Dependencies
Optional: guile ?
==> Options
--with-default-names
        Do not prepend 'g' to the binary
--with-guile
        Build with guile support
Run Code Online (Sandbox Code Playgroud)