Makefile内容如下:
hello1:
g++ hello.cpp -o hello
hello0:
g++ hello.cpp
clean:
rm *.o hello a.out
运行make之后运行make clean,为何报错?
怎样修改Makefile才能使make clean时不报错呢?
错误信息如下所示:
make clean
rm *.o hello a.out
rm: cannot remove ‘*.o: No such file or directory
rm: cannot remove ‘a.out: No such file or directory
make: *** [clean] Error 1