%% Greg Chicares <[EMAIL PROTECTED]> writes:

  gc> On a related note, I've been using this:

  gc>   ifeq (3.81,$(firstword $(sort $(MAKE_VERSION) 3.81)))
  gc>     # stuff that requires make-3.81 or higher
  gc>   endif

  gc> and would be glad to learn a clearer method.

Well, it depends on what you're trying to do.  One option is to look in
the .FEATURES variable, which was added in 3.81.  See the GNU make
manual for details.

If the feature you're looking for is listed there then that's considered
the best/safest way to test for it, rather than looking at the version
string.

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