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.
我想为我的makefile编写简单的“帮助”选项,但问题是例如;
all: echo "help options.."
当我make在终端上调用时,它会打印:
make
echo "help options.." help options..
只能打印吗?:
help options..
我希望这对你来说很清楚。
在命令前加上'@'前缀,如:
target: @echo "help options.."
GNU Make 有一个很好的手册来解释这一点。