How to install BSD make on a Mac (while preserving GNU make)?

Viewed 3390

I have two questions regarding make on my Mac: one regarding installation of a second make flavor, the second regarding how to manage the two flavors.

  1. I need to install BSD make on my Mac, but I don't want to remove the GNU make that is standard on the Mac; Berkeley is for a special project. In spite of the extensive resources for installing BSD, I haven't been able to figure out where to get and how to install that single program. What is the best way to do this?

  2. I'm thinking that I'll need to put it in /usr/local/bin while GNU make, which was provided by the Mac OS developer tools, will stay where it is in /bin. Then I can manage which make is called with an alias. I'm still a *nix newbie; is this a reasonable strategy or is there a better way?

2 Answers
Related