one dog
one dog

Reputation: 1

how can i use make using powershell on win10

I installed make and gcc on win10. I tried to write a simple makefile. When I execute make clean, I find it doesn't work properly. I found the problem. on win10, make uses cmd instead of powershell, so the shell command I wrote in makefile does not work. Is there any way to change make to use powershell

Upvotes: 0

Views: 667

Answers (2)

HSchmale
HSchmale

Reputation: 1929

You can set the SHELL variable inside of the makefile to the path of powershell wherever that might be.

Upvotes: 1

Related Questions