18

Can anyone help me to run Makefile in windows using "make" command. When I try to run from git bash, am getting following error,

$ make build bash: make: command not found

$ make deploy bash: make: command not found

Is there anyway to install this in gitbash or something or is there any other windows tool I need to use?

veeresh patil
  • 1,168
  • 1
  • 11
  • 18

2 Answers2

20

You can also use chocolatey to install it:

choco install make

Here's the package.

Ana Franco
  • 1,611
  • 3
  • 24
  • 43
13

Sounds like Make isn't in your git-bash's path.

A quick search shows this guide, which suggests the following steps:

  • Go to ezwinports.
  • Download make-4.1-2-without-guile-w32-bin.zip (get the version without guile).
  • Extract zip.
  • Copy the contents to your Git\mingw64\ merging the folders, but do NOT overwrite/replace any existing files.

The guide is several years old. It may behoove you to read some of the comments before taking action.

samuei
  • 1,949
  • 1
  • 10
  • 26