
main.exe: main.o g++ -o .\bin\main.exe .\obj\main.o
main.o: .\cpp\main.cpp .\hpp\hello.hpp g++ -c .\cpp\main.cpp -Ihpp -o .\obj\main.o
clean: rm .\bin*.*
在 vscode powershell 下面执行 make clean 失败
PS E:\demo\makefile> make clean rm .\bin*.* process_begin: CreateProcess(NULL, rm .\bin*.*, ...) failed. make (e=2): makefile:8: recipe for target 'clean' failed make: *** [clean] Error 2
1 atempcode 2019 年 10 月 27 日 这。。。论坛不是帮你做作业的啊 |
2 citrix 2019 年 10 月 27 日 via Android 少了.PHONY: clean |
3 waruqi 2019 年 10 月 27 日 via Android 换 xmake 吧 |
4 xuyaomin OP 原因是 windows 下面不支持 rm,所以应该改为 del |