Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在运行 make clean 时删除另一个目录,但我不知道如何在规则中对其进行编码。
我努力了
clean-local: -rm -f del.dir
但这没有用。
我也试过
CLEANFILES = del.dir
但这也没有用。
任何建议,将不胜感激,
clean-local应该可以,但是擦除目录的命令是rm -rf dir,而不是rm -f dir.
clean-local
rm -rf dir
rm -f dir