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

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

Re: gnu-make style


From: Paul D. Smith
Subject: Re: gnu-make style
Date: 07 May 2005 14:41:08 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

%% "Don" <duckunique@yahoo.com> 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 <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]