%% Noel Yap <[EMAIL PROTECTED]> writes:

  ny> It seems that $(value) doesn't work for function parameters:

  ny> $ cat GNUmakefile

  ny> fn = $(value 1)
  ny> v = $
  ny> $(warning $(value v))
  ny> $(warning $(call fn,$))

  ny> $ gmake
  ny> GNUmakefile:4: $
  ny> GNUmakefile:5:

The problem is that the arguments to $(call ...) are themselves
evaluated before being passed to the function.  So, your '$' is being
expanded before fn gets it.  Try this:

    $(warning $(call fn,$$))

-- 
-------------------------------------------------------------------------------
 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