ifeq ($(TARIER), happy)
$(shell echo "test happy">>$(LOCAL_PATH)/echo_file)
LOCAL_MANIFEST_FILE := happy/AndroidManifest.xml
else ifeq ($(TARIYYER), sad)
$(shell echo "test sad">>$(LOCAL_PATH)/echo_file)
LOCAL_MANIFEST_FILE := sad/AndroidManifest.xml
else
$(shell echo $(TARIYYER)>>$(LOCAL_PATH)/echo_file)
$(shell echo "test else">>$(LOCAL_PATH)/echo_file)
LOCAL_MANIFEST_FILE := AndroidManifest.xml
endif
可以看见生成文件
echo_file
,根据里面的字符串判断。
$(shell echo "test happy">>$(LOCAL_PATH)/echo_file)
LOCAL_MANIFEST_FILE := happy/AndroidManifest.xml
else ifeq ($(TARIYYER), sad)
$(shell echo "test sad">>$(LOCAL_PATH)/echo_file)
LOCAL_MANIFEST_FILE := sad/AndroidManifest.xml
else
$(shell echo $(TARIYYER)>>$(LOCAL_PATH)/echo_file)
$(shell echo "test else">>$(LOCAL_PATH)/echo_file)
LOCAL_MANIFEST_FILE := AndroidManifest.xml
endif
可以看见生成文件
echo_file
,根据里面的字符串判断。