博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
GNU make manual 翻译( 一百三十二)
阅读量:7241 次
发布时间:2019-06-29

本文共 1710 字,大约阅读时间需要 5 分钟。

继续翻译

5.2 Recipe Echoing==================Normally `make' prints each line of the recipe before it is executed.We call this "echoing" because it gives the appearance that you aretyping the lines yourself.   When a line starts with `@', the echoing of that line is suppressed.The `@' is discarded before the line is passed to the shell.  Typicallyyou would use this for a command whose only effect is to printsomething, such as an `echo' command to indicate progress through themakefile:     @echo About to make distribution files   When `make' is given the flag `-n' or `--just-print' it only echoesmost recipes, without executing them.  *Note Summary of Options:Options Summary.  In this case even the recipe lines starting with `@'are printed.  This flag is useful for finding out which recipes `make'thinks are necessary without actually doing them.   The `-s' or `--silent' flag to `make' prevents all echoing, as ifall recipes started with `@'.  A rule in the makefile for the specialtarget `.SILENT' without prerequisites has the same effect (*noteSpecial Built-in Target Names: Special Targets.).  `.SILENT' isessentially obsolete since `@' is more flexible.

5.2 片段显示

==================

通常 make 在执行片段的一行之前,打印出此行。我们成为显示。因为它给出你自己输入的原样。当一行开始于@, 对此行的显示被禁止。在此行被传递给shell的时候,@被去掉。典型地,你可以用这个命令来单纯打印一些东西,比如用 echo 命令来显示 makefile 的进度,例如:

@echo About to make distribution files

当运行 make 时,给定了标志 -n 或者 --just-print ,它只显示所有的片段,而不执行它们。*Note Summary of Options: Opitons Summary. 在这种场合下既使是开始于 @ 的行也会被显示。 当想要找出 make 认为哪个片段应当执行而不必执行的时候,是有用的。

make 的 -s 或者 --silent 标志,禁止所有的显示,就好像素有的片段都开始于@一样。一个带有特殊目的 没有前提条件的.SLIENT 的makefile 也可以达成同样效果(*note Special Built-bin Target Names: Sepcial Targets.)。.SLIENT 更加的老式应当废弃,因为 @更加灵活。

后文待续

转载地址:http://cuybm.baihongyu.com/

你可能感兴趣的文章
iOS开发--使用NSMutableAttributedString 实现富文本
查看>>
十一、jdk命令之Jstatd命令(Java Statistics Monitoring Daemon)
查看>>
iOS开发小技巧--TableView Group样式中控制每个section之间的距离
查看>>
18.OGNL与ValueStack(VS)-值栈入门
查看>>
Linux进程间通信-匿名管道
查看>>
servlet过滤器配置白名单、黑名单
查看>>
linux下cmake编译安装、配置和卸载mysql
查看>>
HDU2639Bone Collector II[01背包第k优值]
查看>>
股指期货与融资融券做空机制有什么区别?
查看>>
Linux之ls命令
查看>>
twisted的defer模式和线程池
查看>>
.Net 配置文件——继承ConfigurationSection实现自定义处理类处理自定义配置节点
查看>>
Unity UI on hololens
查看>>
lsof -ntP -i:端口取出 动行程序的PID 然后xargs kill -9 这个进程
查看>>
论文笔记之:Conditional Generative Adversarial Nets
查看>>
转】从源代码剖析Mahout推荐引擎
查看>>
SPOJ GSS3 Can you answer these queries III[线段树]
查看>>
Linux软件安装
查看>>
怎么使用jquery判断一个元素是否含有一个指定的类(class)
查看>>
samba 最简单配置 共享
查看>>