make is a GNU command, so the only way you can get it on Windows is installing a Windows version like the one provided by GNUWin32. Anyway, there are several options for getting that:
Directly download from Make for Windows
Using Chocolatey. First, you need to install this package manager. Once installed, you simply need to install
make(you may need to run it in an elevated/administrator command prompt):choco install makeAnother recommended option is installing a Windows Subsystem for Linux (WSL or WSL 2), so you'll have a Linux distribution of your choice embedded in Windows 10, where you'll be able to install
make,gcc, and all the tools you need to build C programs.For older Windows versions (Microsoft Windows 2000, Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, or Windows 7 with msvcrt.dll) you can use GnuWin32.
An outdated alternative was MinGW, but the project seems to be abandoned, so it's better to go for one of the previous choices.
Answer from Eduardo Yáñez Parareda on Stack Overflowmake is a GNU command, so the only way you can get it on Windows is installing a Windows version like the one provided by GNUWin32. Anyway, there are several options for getting that:
Directly download from Make for Windows
Using Chocolatey. First, you need to install this package manager. Once installed, you simply need to install
make(you may need to run it in an elevated/administrator command prompt):choco install makeAnother recommended option is installing a Windows Subsystem for Linux (WSL or WSL 2), so you'll have a Linux distribution of your choice embedded in Windows 10, where you'll be able to install
make,gcc, and all the tools you need to build C programs.For older Windows versions (Microsoft Windows 2000, Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, or Windows 7 with msvcrt.dll) you can use GnuWin32.
An outdated alternative was MinGW, but the project seems to be abandoned, so it's better to go for one of the previous choices.
GNU Make is available on Chocolatey.
Install Chocolatey from here.
Then,
choco install make.
Now you will be able to use Make on Windows. I've tried using it on MinGW, but it should work on CMD as well.
how to install 'make' on Windows?
How do I install windows on my new PC?
How to use makefiles on Windows 10? Running into the same error message.
How can I make windows never install an update without my explicit permission?
Videos
Can anyone tell me the simplest and safest way to install make on windows? I have linux shell if that could make things easier.
I searched online and it takes me to sketchy websites with unsecured connection or tell me to install random packages like chocolaty etc-
Take a look at "Make for Windows". After installing you simply call "make" from CMD or PowerShell.
2021 - March Windows 10 Enterprise 64Bit Successful Approach
Despite looking old, the gnuwin install for "make" works fine reflecting stability and backward support in Linux and Windows.
I followed instructions at http://gnuwin32.sourceforge.net/packages/make.htm and http://gnuwin32.sourceforge.net/install.html. Below is what I actually did:
Download "Complete package, except sources" at (http://gnuwin32.sourceforge.net/downlinks/make.php) this will download:
make-3.81.exe
execute make-3.81.exe by double clicking on the file
In the install wizard it will show the install path, which by default is:
C:\Program Files (x86)\GnuWin32
(In the install wizard I did not install the documentation nor create a start shortcut.)
Add the path to the binaries to the windows path variable. This will be the install path + "\bin". I did this from a windows command shell with:
set PATH=%PATH%;"C:\Program Files (x86)\GnuWin32\bin"
Confirm addition of path with command:
echo %PATH%
That should show the list of paths and include "C:\Program Files (x86)\GnuWin32\bin"
Close any apps or shells you want to use the "make" command within and reopen them. This will get the new path location loaded in the apps.
To test type the following in powershell or windows cmd shell:
make -v
It should show the copyright etc.