Reputation: 1
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
Reputation: 848
SHELL := C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
IFS=.
Upvotes: 0
Reputation: 1929
You can set the SHELL
variable inside of the makefile to the path of powershell wherever that might be.
Upvotes: 1