Harry 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.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *