[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make question (suppress Error)
From: |
Paul D. Smith |
Subject: |
Re: make question (suppress Error) |
Date: |
03 Aug 2006 22:50:40 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
%% "James" <hslee911@yahoo.com> writes:
j> How do I suppress Error message or is it possible?
j> $ cat makefile
j> all:
j> - ls *.zzz 2>/dev/null
j> $ make
j> ls *.zzz 2>/dev/null
j> make: [all] Error 1 (ignored)
j> I do not want the last line
j> make: [all] Error 1 (ignored)
j> to be shown.
Make will print that message if the script exits with a non-zero error
code. So, if you don't want to see it, just make sure that doesn't
happen. Something like:
all:
- ls *.zzz 2>/dev/null; exit 0
for example.
--
-------------------------------------------------------------------------------
Paul D. Smith <psmith@gnu.org> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist