Jack Jack - 2 months ago 8
Linux Question

How to print only output and not the command-line on terminal in makefile?

I want write simple "help" options to my makefile,but the problem is
for example;

all:
echo "help options.."


when I call
make
on terminal,it print:

echo "help options.."
help options..


it's possible print only?:

help options..


I hope this is clear for you.

Answer

Prefix the command by '@', as in:

target:
    @echo "help options.."

GNU Make has a very good manual which explains this.

Comments