我在 Windows 中使用 makefile 在 Unix 服务器上推送一些文件(这里是我的 makefile 同一文件夹中的文本文件“blob.txt”)。我的makefile脚本是:
setup:
pscp blob.txt username@hostname:/folder/
我启动命令提示符,进入 blob.txt 和 makefile 所在的文件夹,然后键入:
make setup
结果是:
pscp blob.txt username@hostname:/folder/
process_begin: CreateProcess(NULL, pscp blob.txt username@hostname:/folder/, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [setup] Error 2
在 #fail ... 而如果我直接在命令提示符中输入命令:
pscp blob.txt username@hostname:/folder/
它有效......我真的很想知道为什么。