Makefile test if variable is not empty
If you want to dynamically test the content of MY_VAR
, you may have to :
a:
$(eval MY_VAR = $(shell echo ''))
$(if $(strip $(MY_VAR)),echo ok,echo no)
if
evaluation will become echo ok
if MY_VAR
is not empty, otherwise it will become echo no