help-gnu-utils
[Top][All Lists]
Advanced

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

Re: how can I teminate the process of make under some conditions?


From: Paul D. Smith
Subject: Re: how can I teminate the process of make under some conditions?
Date: 05 Apr 2006 09:21:38 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

%% "clino" <zhangchunlin@gmail.com> writes:

  c> just like the "die" in perl
  c> -------------------
  c>    if (length ($str) <= 64)
  c>    {
  c>       print "ok,go on"
  c>    }
  c>    else
  c>    {
  c>       die "bad param";
  c>    }
  c>   print "go on"
  c> -------------------

  c> how can I make the makefile act like this,die and exit...?

Look up the $(error ...) function in the GNU make manual.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@gnu.org>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "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]