help-make
[Top][All Lists]
Advanced

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

Re: Post 3.81 $? handling


From: Paul D. Smith
Subject: Re: Post 3.81 $? handling
Date: Sat, 29 Apr 2006 14:21:41 -0400

%% John Graham-Cumming <address@hidden> writes:

  jg> The NEWS file for 3.81 states:
  jg>    Up to and including this release, the '$?' variable does not contain
  jg>    any prerequisite that does not exist, even though that prerequisite
  jg>    might have caused the target to rebuild.  Starting with the _next_
  jg>    release of GNU make, '$?' will contain all prerequisites that caused
  jg>    the target to be considered out of date.  See this Savannah bug:
  jg>    http://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=16051

  jg> I've tried and failed to create an example that has a prerequisite that 
  jg> doesn't exist, yet runs.

  jg>      all: siegfriednroy
  jg>          @echo Newer prerequisites are $?

  jg>      siegfriednroy:

Close.

Try:

  $ cat makefile

  foo: bar ; @echo "\$$? = $?"
  bar: ;

  $ touch foo

  $ make
  $? = 

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          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]