[Top][All Lists]
[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
- RE: $(shell) strips CRLF, (continued)
Re: $(shell) strips CRLF, Eli Zaretskii, 2002/04/26
- RE: $(shell) strips CRLF, Bryan Miller, 2002/04/26
- RE: $(shell) strips CRLF, Paul D. Smith, 2002/04/26
- RE: $(shell) strips CRLF, Bryan Miller, 2002/04/26
- RE: $(shell) strips CRLF, Paul D. Smith, 2002/04/26
- RE: $(shell) strips CRLF, Bryan Miller, 2002/04/26
- RE: $(shell) strips CRLF, Paul D. Smith, 2002/04/26
- RE: Exiting make upon error...,
Bryan Miller <=
Re: $(shell) strips CRLF, Eli Zaretskii, 2002/04/28