【发布时间】:2011-08-19 09:53:46
【问题描述】:
我想将make命令的输出和错误流重定向到文件。
以下命令
make 1>&2 ~/tmp/build.log
抛出以下错误
make: Nothing to be done for `/Users/m/tmp/build.log'.
编辑:-
试过了
make 2>&1 ~/tmp/build.log
和
make ~/tmp/build.log 2>&1
它给出了与上述相同的错误消息。
我正在使用 mac-leopard 操作系统
$ bash --version
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
Copyright (C) 2007 Free Software Foundation, Inc.
Tietos-iMac-2:qt-build ptools$ sh --version
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
Copyright (C) 2007 Free Software Foundation, Inc.
【问题讨论】: