In addition, if conditional statements are used in the definition functions, for example:
define myFunc ifeq (foo, bar) ... endif enddef
In this case, Make will also treat it as a shell script.
This problem can be solved using an if function:
define myFunc $(if condition,then-part[,else-part]) enddef
SenZhang Oct 16 '16 at 4:37 2016-10-16 04:37
source share