简体   繁体   English

“@”在makefile中的含义是什么?

[英]What does “@” mean in makefile?

We offen use @echo "do..." to letting to print only do... . 我们只使用@echo "do..."让打印只做do... But who can tell me what is the mean of this condition ? 但谁能告诉我这种情况的意思是什么?

COUNT=$(shell ls | wc -l )

Then 然后

@COUNT=$( shell ls | grep abc | wc -l )

What's the mean of the second? 第二个是什么意思?

It disables printing the command line being executed. 它禁用打印正在执行的命令行。 Any output from the command itself still appears. 命令本身的任何输出仍然会出现。 See this previous question or see this Makefile reference. 先前的问题或看到这样的Makefile参考。

It will hide the output of the commandline when executing. 它将在执行时隐藏命令行的输出。 Normally each command, when executing a rule, is printed to the console. 通常,每个命令在执行规则时都会打印到控制台。 This will suppress this output. 这将抑制此输出。

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

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