本文介绍了'ifneq'是否有逻辑OR运算符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

'ifneq ... endif'语句是否有逻辑OR运算符?

Is there a logical OR operator for the 'ifneq ... endif' statement?

也就是说,如果定义了变量"var1"或"var2",我不想执行某些语句.像这样:

That is, I'd not like to execute some statements if variable 'var1' or 'var2' is defined. Something like this:

ifneq ($(WNDAP660),y) OR $(WNADAP620),y))
...
endif

我已经尝试过ifneq ($(WNDAP660),$(filter $(WNADAP620),y y)),但是它不起作用.

I've tried ifneq ($(WNDAP660),$(filter $(WNADAP620),y y)), but it is not working.

推荐答案

尝试以下方法:

ifeq ($(filter y,$(WNDAP660) $(WNADAP620)),)
...
endif

这篇关于'ifneq'是否有逻辑OR运算符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 00:49