make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Exiting make upon error...


From: Bryan Miller
Subject: RE: Exiting make upon error...
Date: Fri, 26 Apr 2002 22:50:15 -0700

Thanks,

That's pretty slick (in a gross sort of way :-)

Bryan

-----Original Message-----
From: address@hidden [mailto:address@hidden Behalf Of
Paul D. Smith
Sent: Friday, April 26, 2002 6:23 PM
To: address@hidden
Cc: address@hidden
Subject: RE: $(shell) strips CRLF


%% "Bryan Miller" <address@hidden> writes:

  bm> And now for something completely different...what was the
  bm> canonical method of aborting make before $(error) and $(warning)
  bm> were added circa 3.78?

The only sure-fire way was to introduce a syntax error.  Something like
this:

  ifdef GOOD

    do: good stuff

  else

    __dummy := $(shell echo 'Not GOOD!' 1>&2)

    die

  endif

This looks gross, but it's effective.  Obviously I don't know if the
shell command above can be easily emulated in Windows; it likely depends
on what shell you're using with GNU make.

--
----------------------------------------------------------------------------
---
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad
Scientist

_______________________________________________
Make-w32 mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/make-w32




reply via email to

[Prev in Thread] Current Thread [Next in Thread]