有三种方法在windows上使用make
第一种是
从官网下载 make.exe Make for Windows
除了最后一步里的源码,完整安装。
把安装路径添加到环境变量 PATH 中.
第二种是chocolatey
参考chocolaty官网安装chocolatey,管理员运行power shell,
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
接着
choco install make
第三种是安装mingw,里面有mingw32-make.exe,拷贝之后重命名为make.exe添加到环境变量PATH