[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: $(shell) strips CRLF
From: |
Paul D. Smith |
Subject: |
RE: $(shell) strips CRLF |
Date: |
Fri, 26 Apr 2002 21:23:12 -0400 |
%% "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
- 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 <=
- RE: Exiting make upon error..., Bryan Miller, 2002/04/27
- Re: $(shell) strips CRLF, Eli Zaretskii, 2002/04/28