]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] refactor: a first use of "ifndef VAR"
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 2 Jun 2012 19:11:38 +0000 (21:11 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 2 Jun 2012 19:44:00 +0000 (21:44 +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 <stefano.lattarini@gmail.com>
lib/am/header-vars.am

index 4ff47dba334a602cc52f280373f8e69e1d4ae122..9903af91a3d22c6fb30f90309e94654b3210377a 100644 (file)
@@ -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