简体   繁体   English

makefile gnu make中的@是什么意思?

[英]what is mean by @ in the makefile gnu make?

For example if i write例如,如果我写

       ->@ %echo "Hello"

it print Hello in the console它在控制台中打印 Hello

       ->Hello  

what is @ in the case and %?案例中的 @ 和 % 是什么?

By default GNU Make print the command before executing it (ie recipe echoing), using @ you'll hide it like set -x/set +x in bash script...默认情况下,GNU Make 在执行命令之前打印命令(即配方回显),使用 @ 你会像 bash 脚本中的set -x/set +x一样隐藏它...

src: https://www.gnu.org/software/make/manual/make.html#Echoing来源: https://www.gnu.org/software/make/manual/make.html#Echoing

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM