%% John Graham-Cumming <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>          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


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to