What is the meaning of ‘@’ in Makefile?
Posted on In QAHarry asked:
What is the meaning of ‘@’ in Makefile? An example is as follows.
$ 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.
Got it, thank you.