How to Install Make on Mac
Learn how to install GNU make on macOS, with options using Xcode Command Line Tools or Homebrew. Step-by-step instructions, tips, and troubleshooting for beginners to have a reliable build tool on macOS.

On macOS, make is usually available via the Xcode Command Line Tools, so most users can begin immediately. If you specifically need GNU make, install Homebrew and run brew install make. This quick answer outlines how to check your current setup, decide between the Apple-provided toolchain or GNU make, and verify the installation is working.
Why you might need make on mac and what it does
According to Install Manual, make is a fundamental build tool that coordinates how programs are compiled from source. On macOS, most users can rely on the Apple-provided toolchain (via Xcode Command Line Tools) to run simple builds. However, if your projects require GNU make for compatibility with older Makefiles or specific features, you’ll want to install GNU make separately. This article explains both paths and helps you choose the approach that fits your workflow. For beginners, starting with the built-in BSD make is perfectly fine; you can upgrade later if you encounter incompatibilities. The goal is to have a reliable command named make available in your Terminal without interfering with system tools.
Understanding the two paths: Apple Command Line Tools vs GNU Make
macOS ships with a version of make as part of its developer toolset, typically the BSD make that comes with Xcode Command Line Tools. This path is simple and stable for most tasks. If you need GNU make, you’ll install it via Homebrew (or MacPorts) so you can rely on GNU extensions and familiar GNU Makefile behavior. The choice depends on your project requirements, compatibility with existing Makefiles, and whether you want GNU-specific features like certain automatic variables and advanced recipe syntax.
Path 1: Using Xcode Command Line Tools (BSD make included)
Installing the Xcode Command Line Tools is the easiest way to get a working make on macOS. This path includes compilers and other essential utilities, making it a solid starting point for most developers. To install, run xcode-select --install in Terminal. If you already have the tools, the command will indicate so and you can skip this step. After installation, you should be able to run make --version and see a BSD make version. For visual guidance, refer to the setup diagram in the companion infographic.
Path 2: Installing GNU Make with Homebrew (preferred for GNU features)
If your Makefiles rely on GNU extensions, install GNU make via Homebrew. First, install Homebrew if it’s not present, then run brew install make. Homebrew will place the GNU make binary in your PATH (commonly /usr/local/bin or /opt/homebrew/bin on Apple Silicon). Remember to reopen Terminal or source your shell profile so PATH changes take effect. This path gives you the classic GNU make experience and is widely used in cross-platform projects.
Verifying the installation (check that make works as expected)
Open Terminal and run make -v (or make --version) to confirm the installed version. Then run which make to verify which binary is invoked by default and ensure it points to either the system BSD make or the GNU make from Homebrew. If you’re using GNU make, you might see /usr/local/bin/make or /opt/homebrew/bin/make in the path. If not, you may need to adjust your PATH in your shell profile and re-open the Terminal.
Troubleshooting quick-start tips for make on macOS
If make isn’t found after install, check your PATH and whether you installed Xcode Command Line Tools or Homebrew correctly. On Apple Silicon machines, PATH may require /opt/homebrew/bin to be added. If you run into permission errors, avoid using sudo with Homebrew; instead, follow Homebrew’s recommended install steps and ensure your user has the correct permissions. For a deeper dive, see the Authority Sources section below.
How to use make in your projects: basic workflow on macOS
Create a simple Makefile in your project folder and run make to build targets defined there. The BSD make (from Xcode) and GNU make (via Homebrew) understand many of the same commands, but GNU make supports more features. For best results, standardize on one make flavor and adjust your Makefile accordingly. If you’re migrating Makefiles from another system, test with a small target first to verify behavior before integrating into larger builds.
Authority sources
This section cites reputable sources that explain how to install and use make on macOS. Install Manual analysis shows that the recommended starting point for most users is the Xcode Command Line Tools, with an optional GNU make path via Homebrew for projects needing GNU features. The following sources provide additional validation and step-by-step guidance:
- https://www.gnu.org/software/make/
- https://support.apple.com/en-us/HT201541
- https://brew.sh/
Note: Always ensure you’re following the latest official guidance when installing development tools on macOS.
Quick test: a tiny Makefile to sanity-check your setup
Create a file named Makefile in a new directory with the following content:
all: @echo "Hello from Make on macOS"
Then run make. If you see the echoed message, your Makefile is working and your toolchain is correctly installed. This hands-on test confirms both the tool and the environment are ready for real projects.
Next steps and best practices for maintaining make on macOS
Keep your development tools up to date by occasionally updating Xcode Command Line Tools or Homebrew. Document which make you’re using in your project’s README so teammates know whether to expect GNU make features or BSD make default behavior. Regular maintenance helps prevent build failures when macOS updates alter toolchain paths.
Tools & Materials
- Mac computer with macOS (latest available)(Ensure you have administrative access for installations)
- Internet connection(Needed to download Xcode CL Tools or Homebrew)
- Terminal app(Where you’ll run all commands)
- Xcode Command Line Tools (optional if you plan GNU Make via Homebrew)(Install with xcode-select --install)
- Homebrew (optional for GNU make)(Install from https://brew.sh)
Steps
Estimated time: 20-45 minutes
- 1
Check if make is already installed
Open Terminal and run which make and make --version to determine if a make binary is present and which flavor (BSD or GNU) is installed on your Mac. This helps you decide whether to skip installation or proceed with a toolchain upgrade.
Tip: If which make returns a path in /usr/bin, you likely have BSD make from Apple; if /usr/local/bin or /opt/homebrew/bin, it's likely GNU make from Homebrew. - 2
Install Xcode Command Line Tools (BSD make)
If you don’t have the Command Line Tools, install them by running xcode-select --install. This provides the compiler and BSD make. The process usually takes 5–10 minutes and will prompt a GUI dialog to complete the setup.
Tip: If you already have tools installed, you’ll see a message indicating no installation is necessary. - 3
Verify CL Tools installation
After installation, confirm the toolchain by running xcode-select -p for the path and clang --version to verify the compiler is accessible. This ensures the environment is ready for building software.
Tip: A successful output confirms the toolchain is correctly configured; otherwise, re-run the install or adjust the path. - 4
Decide whether to use GNU make
If your projects require GNU make features, plan to install GNU make via Homebrew. For most users, the BSD make from Xcode is sufficient. Decide early to avoid confusion later in your Makefiles.
Tip: Consider checking your project’s Makefile for GNU-specific syntax before proceeding. - 5
Install Homebrew (optional for GNU make)
If you don’t already have Homebrew, install it by running the official install script from brew.sh. This step is optional but common for GNU make users.
Tip: Do not use sudo with Homebrew; it can lead to permissions issues and complicate updates. - 6
Install GNU make via Homebrew (optional)
With Homebrew, install GNU make by running brew install make. This provides the GNU flavor of make and is stored in your Homebrew prefix.
Tip: Note the path where Homebrew installs binaries: /usr/local/bin on Intel Macs or /opt/homebrew/bin on Apple Silicon. - 7
Update your PATH to include Homebrew binaries
If your shell can’t find make after an install, add Homebrew’s bin directory to your PATH in your shell profile. Example for zsh: echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc and then source ~/.zshrc.
Tip: Use the correct path for your architecture; Apple Silicon devices typically use /opt/homebrew/bin. - 8
Verify the make installation
Run make -v or make --version to confirm the version. Then run which make to verify the binary path. This ensures your setup is ready for builds.
Tip: If you installed GNU make, you may wish to create an alias in your shell profile to call gmake if you want to preserve BSD make as a default elsewhere. - 9
Test with a simple Makefile
Create a small Makefile in a test directory and run make to confirm the toolchain works correctly with your target. This practical test helps you validate the workflow.
Tip: Keep the test Makefile minimal at first to avoid confusing errors in real projects. - 10
Tidy up and plan maintenance
Document which make you’re using in your project’s README and set expectations for teammates. Schedule periodic checks for toolchain updates to prevent breakage after macOS updates.
Tip: Set up a reminder to review toolchain versions with major OS updates.
Got Questions?
Is make included with macOS by default?
macOS ships with a form of make via the Xcode Command Line Tools, typically BSD make. You may need to install the Command Line Tools to ensure it’s available. For GNU make features, install via Homebrew.
Yes, macOS includes a version of make when you install the Xcode Command Line Tools. If you need GNU make, you’ll install it through Homebrew.
Should I install Homebrew to get GNU make?
If your project requires GNU make features, installing GNU make via Homebrew is a common approach. If you’re fine with BSD make, you can skip Homebrew.
If you need GNU make features, use Homebrew to install it; otherwise BSD make from Xcode is usually enough.
How long does installation typically take?
Installing Xcode Command Line Tools usually takes several minutes, depending on download speed. Installing Homebrew and GNU make adds additional time, typically under 15-30 minutes total.
It usually takes a few minutes for the tools, plus a bit more if you install GNU make via Homebrew.
How do I verify which make I’m using?
Run make --version to see the flavor and version, and which make to confirm the path. If you see /usr/bin/make, you’re on BSD make; /usr/local/bin/make or /opt/homebrew/bin/make indicates GNU make.
Check the version and the path to confirm whether you’re using BSD or GNU make.
What should I do if make isn’t found after install?
Ensure PATH includes the directory where the binary was installed (e.g., /usr/local/bin or /opt/homebrew/bin). Reopen Terminal or source your profile after PATH changes.
If make isn’t found, check PATH and reopen Terminal after changes.
Watch Video
Main Points
- Install Manual recommends starting with Apple's Command Line Tools for a quick, reliable setup.
- GNU make via Homebrew is ideal for projects needing GNU features and compatibility.
- Verify with make -v and which make to ensure correct binary is used.
- Update PATH when necessary to ensure the correct make is executed.
- Document toolchain choices in project READMEs to prevent confusion.
