This is my first time using standalone git in Windows. Earlier I've installed and used Github for Windows which git comes along with. I am amazed by the available ?nix functions in this little git bash shell. Today I wanted to use the makefile function but found that it is not there. Therefore, I did some digging.
Here are some of the helpful resources I have found:
http://stackoverflow.com/questions/17158419/how-to-run-makefile-in-windows
http://lists.gnu.org/archive/html/help-make/2011-09/msg00041.html
My system is Windows 8.1 64 bit, and here are the steps I did:
1. Install msysgit downloaded from http://git-scm.com/download/win
2. Create a directory in the git install direcctory: C:\Program Files (x86)\Git\mingw\bin, naming it mingw
3. Install mingw-w64 downloaded from http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe/download
4. Go to the bin folder in the mingw-w64 install directory. In my case it is C:\Program Files\mingw-w64\x86_64-4.9.2-posix-seh-rt_v3-rev1\mingw64\bin
5. Rename mingw32-make.exe to make.exe
6. Make a Symlink redirect to this folder from the msysgit install directory by running this command in Command Prompt (run as Administrator):
mklink /j "C:\Program Files (x86)\Git\mingw\bin" "C:\Program Files\mingw-w64\x86_64-4.9.2-posix-seh-rt_v3-rev1\mingw64\bin"
Now you should be able to run make in your git bash console.
Labels
About Me
Thursday, January 22, 2015
Subscribe to:
Posts (Atom)