简体   繁体   中英

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.

Prefix the command by '@', as in:

target:
    @echo "help options.."

GNU Make has a very good manual which explains this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM