简体   繁体   English

如何在makefile中只打印输出而不打印终端上的命令行?

[英]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; 我想为我的makefile写简单的“帮助”选项,但问题是例如;

all: 
   echo "help options.." 

when I call make on terminal,it print: 当我在终端上调用make时,它打印:

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. GNU Make有一本非常好的手册 ,可以解释这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在终端中捕获第一个命令输出并使用同一行中的最后一个命令打印该变量 - how to capture the 1st command output in terminal and to print that variable using the last command in the same line 如果有错误命令行参数,如何使getopt_long()不打印? - How to make getopt_long() print nothing when there is error command-line arguments? 在shell中,只打印命令输出中的特定行/单词 - In shell, print only the specific line/word from command's output 如何在Delphi中实时读取cygwin程序的命令行输出? - How to read command-line output of cygwin program in real-time in Delphi? 如何在命令行中传递多个输入? - How to pass multiple inputs in command-line? 输入/输出从命令行可执行文件重定向到文件 - Input/output redirect from a command-line executable to file 如何执行python命令行自动完成,但不仅仅是在字符串的开头 - Howto do python command-line autocompletion but NOT only at the beginning of a string 在python中发送命令行命令并打印stdout和stderr的最简单,最可靠的方法是什么? - What is the simplest and most reliable way to send a command-line command in python, and print the stdout and stderr? 命令行全文索引? - Command-line fulltext indexing? 回声命令行问题 - Echo command-line Questions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM