Make
Setting up "make" in Windows involves two steps:
- Installing make
- Adding make directory to Environment Variable
Install Make
Make can be installed using winget, an in-built Windows package manager.
This will download and launch the GnuWin32 Make installer. Once installed GnuWin32 would be installed and available at below location:Add to Path
Even after installation is completed, make would not be detected in command prompt/power shell. This is because the directory containing the make.exe is not added to the "Path" environment variable.
- Search for
Edit the system environment variable
in Windows search bar and open it. - This would open the
System Properties
dialog. Click onEnvironment Variables...
option. - Here you can either add the path to either
User
orSystem
environment variables - use System if you would like to add this path for all users. - Choose the
Path
variable and clickEdit
. Add the path using theNew
option as shown below. - Click OK to close all the dialogs.
Important thing to note: You need to close and reopen any already open command terminals for make to be detected. You also need to close and reopen VS Code for the new path to be detected in the VS Code terminal.
Verify Make Installation
Open a new command prompt or bash shell and provide below command to check if make is detected:
This is expected to give a response as below: