From: Stefano Lattarini Date: Sat, 2 Jun 2012 19:11:38 +0000 (+0200) Subject: [ng] refactor: a first use of "ifndef VAR" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87fd28feafa58a98fa2fdc139de803aa191abb30;p=thirdparty%2Fautomake.git [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 --- 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