%% "Don" <[EMAIL PROTECTED]> writes:

  d> In the latest O'Reilly Gnu Make book, the author
  d> uses the $(eval $(call ...)) pattern often.  It seems to
  d> offer subroutine-like functionality.

  d> Is this a preferred pattern in the community?

Well, if you need that functionality it's preferred.  I wouldn't use it
just for the sake of using it, myself.  The main problem is it makes
your makefiles much less portable.  But, if you don't mind that it's
OK.  Certainly there are certain things that it's difficult or
impossible to do without eval, in particular.

A secondary consideration is that there are some bugs in GNU make 3.80
in the eval function which can bite you in certain situations.  They
have all been resolved (that I know of) for the next release though.

-- 
-------------------------------------------------------------------------------
 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-gnu-utils mailing list
help-gnu-utils@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-utils

Reply via email to