From 2613f8a58cf14312d2386aa1a4624b3e45bb7158 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Fri, 27 Jul 2012 10:18:13 +0200 Subject: [PATCH] [ng] header vars: move check for GNU make version earlier * lib/am/header-vars.am: Move the check that the version of GNU make in use is modern enough before everything else. Signed-off-by: Stefano Lattarini --- lib/am/header-vars.am | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/am/header-vars.am b/lib/am/header-vars.am index de266d822..d69ad3a04 100644 --- a/lib/am/header-vars.am +++ b/lib/am/header-vars.am @@ -14,6 +14,14 @@ ## You should have received a copy of the GNU General Public License ## along with this program. If not, see . +## 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. +ifndef .FEATURES + $(error Automake-NG based builds require GNU make 3.81 or later) +endif + VPATH = @srcdir@ ## Enhance performance by removing GNU make builtin rules that would be @@ -62,14 +70,6 @@ define am.chars.newline $(am.chars.empty) endef -## 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. -ifndef .FEATURES - $(error Automake-NG based builds require GNU make 3.81 or later) -endif - ## Neutralize unwarranted environment settings that might interfere with ## our Makefiles. ifdef SUBDIRS -- 2.47.2