make-w32
[Top][All Lists]
Advanced

[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



reply via email to

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