makefile 符号含义
Harry asked:
哈利问:
What is the meaning of ‘@’ in Makefile? An example is as follows.
Makefile中“ @”的含义是什么? 一个例子如下。
$ cat Makefile
all:
@echo "For correctness test of basic get and put, run: make test;"
Without ‘@’, it works well.
如果不使用“ @”,则效果很好。
Without @
:
没有@
:
$ make
echo "For correctness test of basic get and put, run: make test;"
For correctness test of basic get and put, run: make test;
With @
:
用@
:
$ make
For correctness test of basic get and put, run: make test;
The difference is clear: with @
, make will not print out the command that it executes.
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。
Got it, thank you.
收到了。谢谢。
翻译自: https://www.systutorials.com/what-is-the-meaning-of-in-makefile/
makefile 符号含义