makefile ifeq多条件逻辑或

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

可使用以下代码代替:


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


你可能感兴趣的:(Shell,/,Python)