automake-ng
[Top][All Lists]
Advanced

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

[Automake-NG] [FYI] [ng] refactor: a first use of "ifndef VAR"


From: Stefano Lattarini
Subject: [Automake-NG] [FYI] [ng] refactor: a first use of "ifndef VAR"
Date: Sat, 2 Jun 2012 21:43:04 +0200

* 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 <address@hidden>
---
 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 4ff47db..9903af9 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
 
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]