Search code examples
bashshellmakefilegit-bash

How to run "make" command in gitbash in windows?


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?


Solution

  • 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.