From: Stefano Lattarini Date: Mon, 21 May 2012 07:50:22 +0000 (+0200) Subject: [ng] requirements: require GNU make >= 3.81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5b32a182266fc7aeb8698aa1c05da9759b6d97b;p=thirdparty%2Fautomake.git [ng] requirements: require GNU make >= 3.81 Our implementation of make variables memoization doesn't work GNU make 3.80. Since GNU make 3.81 has been released by more than six years now, we require it as the minimal supported version, to avoid wasting efforts on older versions used only by a vanishingly small percentage of the user base. See: * NG-NEWS: Update. * lib/am/header-vars.am: Error out if the .FEATURES special variable (introduced only in GNU make 3.81) is not defined. Signed-off-by: Stefano Lattarini --- diff --git a/lib/am/header-vars.am b/lib/am/header-vars.am index 10ff773ab..5cd86f6ba 100644 --- a/lib/am/header-vars.am +++ b/lib/am/header-vars.am @@ -16,6 +16,13 @@ VPATH = @srcdir@ +## Makefiles generated by Automake-NG require GNU make >= 3.81. +## The .FEATURES special variable has been introduced in that make +## version, so use it as a witness to determine whether the current +## make is good enough. +$(if $(.FEATURES),, \ + $(error Automake-NG based builds require GNU make 3.81 or later)) + ## The 'all' target must be the default one, independently from the ## position it is declared in the output Makefile. .DEFAULT_GOAL := all