At 09:27 PM 2/1/2005, Paul D. Smith wrote:
%% [EMAIL PROTECTED] (Vite Schnell) writes:

  vs> I'm trying to prevent Make from exiting upon receiving a non-zero
  vs> exit status value from a command.  Is there any way I can "trap" a
  vs> failure in order to keep processing other targets?

foo:
      command || true

I prefer to save a fork/exec and also remove an unnecessary dependence on PATH:

foo:
        command ||:

Of course there are some shells for which "true" is a builtin but ":" has been one since the beginning of time.

-dsb



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to