它总是落入if分支,而不管我所比较的变量的值是多少。myRecipe: if [ $(SYS_NAME) = linux-x86 ]; then \ echo $(PLAT); \如果$(SYS_NAME)是linux-x86,则执行如下所示: if [ linux-x86 =linux-x86 ]; then
第一种方法是使用Windows COMSPEC:## in windows## in linux这是Cygwin的误报,因为它会看到Windows的环境变量并将Cygwin检测为Windows。然后我们尝试Linux PWD:## in windows## in linux, cygwin然而,由于集成了非现场工具,我们在windows我想知道,使用环境变量