[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is error suppression possible for ignored errors?
From: |
Paul D. Smith |
Subject: |
Re: Is error suppression possible for ignored errors? |
Date: |
Fri, 16 Apr 2004 18:29:57 -0400 |
%% "Steve Connell" <address@hidden> writes:
sc> %.obj : ../%.c
sc> -@ chmod -f +w $@
sc> Adding the "-" before the @ allowed gmake to continue, however now I am
sc> getting an error message from gmake:
sc> gmake[1]: [hostio.obj] Error 1 (ignored)
sc> Is there a way to prevent this ignored error message from printing out?
Just run a different command that succeeds:
%.obj : ../%.c
@ chmod -f +w $@ || true
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> 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