To install GNU Make on macOS, run the following command from Terminal:
brew install make
You can check to ensure that the installation was successful by running this command:
make -v
If you see version information, skip to the Installing rimraf section.