我想解析makefile中的变量,这个变量有下一个语法:
VARIABLE=folder1=file1,folder2=file2,...,folderN=fileN
在这里我想用它做什么:
ifdef VARIABLE
#
# here I want to assign FOLDER to "folder1, folder2... folderN" in the loop
# and then compare it with current folder
#
ifeq ($(FOLDER),$(CURRENT_FOLDER))
#
# if true assign FILE1=file1
#
export MYFILE := FILE1
endif
else
export MYFILE = default_name
endif
我怎样才能做到这一点?