GNU make manual 翻译( 一百四十九)

继续翻译

复制代码
5.7.4 The `--print-directory' Option
------------------------------------

If you use several levels of recursive `make' invocations, the `-w' or
`--print-directory' option can make the output a lot easier to
understand by showing each directory as `make' starts processing it and
as `make' finishes processing it.  For example, if `make -w' is run in
the directory `/u/gnu/make', `make' will print a line of the form:

     make: Entering directory `/u/gnu/make'.

before doing anything else, and a line of the form:

     make: Leaving directory `/u/gnu/make'.

when processing is completed.

   Normally, you do not need to specify this option because `make' does
it for you: `-w' is turned on automatically when you use the `-C'
option, and in sub-`make's.  `make' will not automatically turn on `-w'
if you also use `-s', which says to be silent, or if you use
`--no-print-directory' to explicitly disable it.
复制代码

5.7.4 '--print-directory' 选项
------------------------------------

如果你有几层的递归式make激活,-w 或者 --print-directory 选项能够通过显示make开始处理的每一个目的和结束处理的每一个目录,使得输出更加容易理解。例如,如果 make -w 正在目录 /u/gnu/make目录下运行, 在作任何事情之前,make 将会打印出一行:

make: Entering directory `/u/gnu/make'.

处理结束后,会打印:

make: Leaving directory `/u/gnu/make'.

通常,你不需要设定这个选项,因为 make 会为你做这件事:当你使用 -C 选项,-w 是自动打开的,并且在子make中, 如果你也使用了 -s,make 不会自动打开 -w。-s 表示要保持静默,或者如果你显式使用了 --no-print-directory,也不会打开 -w。

后文待续





本文转自健哥的数据花园博客园博客,原文链接:http://www.cnblogs.com/gaojian/archive/2012/10/02/2710277.html,如需转载请自行联系原作者

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值