Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

linux

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.

like image 846
Jack Avatar asked Feb 20 '23 18:02

Jack


1 Answers

Prefix the command by '@', as in:

target:
    @echo "help options.."

GNU Make has a very good manual which explains this.

like image 111
Kristof Provost Avatar answered Mar 04 '23 15:03

Kristof Provost