21

I have folder consisting files:

enter image description here

How to run makefile? In console I type:make and it says no makefiles found.

Yoda
  • 17,363
  • 67
  • 204
  • 344
  • You are probably not in the right directory when running `make` - and thus it can't find the given "makefile". The current directory can be shown by typing in `pwd` and changed with `cd`. (The fact that running make generates that message means that a make program is installed by something, whatever it is.) – user2246674 Jun 17 '13 at 23:27
  • 2
    possible duplicate of [How to run a makefile in Windows?](http://stackoverflow.com/questions/2532234/how-to-run-a-makefile-in-windows) – Julien Guertault Sep 29 '14 at 02:55

2 Answers2

19

Try to use MSYS : http://www.mingw.org/wiki/MSYS

MSYS is a collection of GNU utilities such as bash, make, gawk and grep to allow building of applications and programs which depend on traditionally UNIX tools to be present.

This allows to run bash-like scripts under windows.

MSYS is included in MinGW package (direct download).

MinGW Shell :

enter image description here

NOTE : CygWin can do this too, I think.


EDIT : The link to MinGW above is 32 bits. If you are interested in a 64 bits version of it, please have a look here.


EDIT : Changes have been made and the Windows Installer now comes with a bunch of installable packages (quite similar to apt-get install under Debian). This comes with a GUI that allows to choose/customize additional tools. Download it from here (The link above is kind of deprecated).

Community
  • 1
  • 1
Gauthier Boaglio
  • 10,054
  • 5
  • 48
  • 85
5

Your cmd was in the wrong directory. Shift and right-click in the folder that has the makefile (not on the makefile though) and then type: make or if you have mingw: mingw32-make.

It should then work.

CATspellsDOG
  • 109
  • 1
  • 2
  • 10