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.
makefile - How to use GNU Make on Windows? - Stack Overflow
How difficult is to write the "make" software?
make equivalent for windows?
Makefile example project for Windows with source, include, libs and build folders. Also with a detailed explanation!
Videos
Explanation
Inside directory C:\MinGW\bin there is an executable file mingw32-make.exe which is the program make you are trying to run. You can use the keyword mingw32-make and run the program make since you have added the needed directory to the system path, but it is not an easy to remember keyword.
Solution
Renaming the file from mingw32-make.exe to make.exe will allow you to run program make using the keyword make.
Renaming can be done:
- Manually by right clicking and renaming the file.
- By running the command
copy c:\MinGW\bin\mingw32-make.exe c:\MinGW\bin\make.exe.
Result
Now if you type make on command prompt it should output something like:
make: *** No targets specified and no makefile found. Stop.
Which means the program make ran.
I'm using GNU Make from the GnuWin32 project, see http://gnuwin32.sourceforge.net/ but there haven't been any updates for a while now, so I'm not sure on this project's status.
Don't bother doing that. Just install MinGW, specifically MSYS.
You can find a standalone make.exe on this page:
http://www.equation.com/servlet/equation.cmd?fa=make
- Standalone executable, no DLL dependency.
- Up-to-date (contrarily to the build by GnuWin project, which seems abandoned).
- A 64-bit build is even offered.
Full credits go to the people of equation.com. Thanks to them :-)