makefile ifeq多条件逻辑或

来源:互联网 发布:欧洲难民感恩 知乎 编辑:程序博客网 时间:2024/06/10 10:24

ifeq ($(TARGET_PRODUCT),pixi445_gophone)$(call remove-file)endififeq ($(TARGET_PRODUCT),pixi445_voltegophone)$(call remove-file)endif

可使用以下代码代替:


ifneq (,$(filter $(TARGET_PRODUCT),pixi445_gophone pixi445_voltegophone))$(call remove-file)endififeq ($(strip $(TARGET_PRODUCT)),$(filter $(TARGET_PRODUCT),pixi445_gophone pixi445_voltegophone))$(call remove-file)endif


0 0
原创粉丝点击