How to set Makefile default shell under Windows without modifying make file itself?

253 views Asked by At

I have sh.exe in my PATH and Makefile uses it no matter what other enviroment variables are set. It ignores ComSpec, SHELL and MAKESHELL that point to cmd.exe. If I set SHELL := cmd inside make file, then Makefile uses it, but I would like the opposite: I want Makefile to use cmd.exe by default unless another shell is specified. How do I do this?

0

There are 0 answers