ifeq ($(strip $(xxx)), true)
–执行内容
else ifeq ((x,${xxx}))
–执行内容
else
–执行内容
endif
ifeq ($(strip $(xxx)), true)
–执行内容
else
ifeq ((x,${xxx}))
–执行内容
else
–执行内容
endif
endif
注意区分else ifeq和else (回车) ifeq的格式,后者需要多搭配一个endif
另外make版本过低会导致else ifeq编译失败,需要在3.82以上才支持
make -v可查询当前环境版本