The attached code is correctly parsed and executeg by gnu make, makepp 1.40. makep 1.50 and 2.0rc expand $(if incorrectly.
This code exposes the error.
The problem is not if, but the nested (). This is an unfortunate consequence of a decision we made many years ago. I'm adding this to the doc for now:
Parentheses or braces don't nest
Makepp ends expressions at the first matching parenthesis or brace. Instead of this
$(somefunction ... ( ) ...) # Gnu make style
you must use either of these
${somefunction ... ( ) ...} # Gnu make compatible $((somefunction ... ( ) ...)) # Makepp extension
This will probably be fixed in version 2.1, maybe optionally.
Log in to post a comment.
This code exposes the error.
The problem is not if, but the nested (). This is an unfortunate consequence of a decision we made many years ago. I'm adding this to the doc for now:
Parentheses or braces don't nest
Makepp ends expressions at the first matching parenthesis or brace. Instead
of this
$(somefunction ... ( ) ...) # Gnu make style
you must use either of these
${somefunction ... ( ) ...} # Gnu make compatible
$((somefunction ... ( ) ...)) # Makepp extension
This will probably be fixed in version 2.1, maybe optionally.