From 87fd28feafa58a98fa2fdc139de803aa191abb30 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sat, 2 Jun 2012 21:11:38 +0200 Subject: [PATCH] [ng] refactor: a first use of "ifndef VAR" * lib/am/header-vars.am: Use "ifndef .FEATURES" instead of "$(if $(.FEATURES))" to determine whether the used GNU make version is recent enough. Signed-off-by: Stefano Lattarini --- lib/am/header-vars.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/am/header-vars.am b/lib/am/header-vars.am index 4ff47dba3..9903af91a 100644 --- a/lib/am/header-vars.am +++ b/lib/am/header-vars.am @@ -38,8 +38,9 @@ endef ## 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)) +ifndef .FEATURES + $(error Automake-NG based builds require GNU make 3.81 or later) +endif am__mkdir = test -d $1 || $(MKDIR_P) $1 -- 2.47.2