I want to redirect the output and error stream of make command to file.
The following command
make 1>&2 ~/tmp/build.log
throws the following error
make: Nothing to be done for `/Users/m/tmp/build.log'.
EDIT:-
Tried
make 2>&1 ~/tmp/build.log
and
make ~/tmp/build.log 2>&1
which gave the same above error message.
I am using mac-leopard os
$ 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.
Should be
make 2>&1 > ~/tmp/build.log
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With