简体   繁体   中英

What does “@” mean in makefile?

We offen use @echo "do..." to letting to print only 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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