标签:color if判断 strong $$ efi str code === 变量
DEMO := 2 all: ifeq ($(DEMO), 1) @echo "DEMO 1" else ifeq ($(DEMO), 2) @echo "DEMO 2" else ifeq ($(DEMO), 3) @echo "DEMO 3" else @echo "DEMO Other" endif
DEMO := 1 all: @echo \$$\{DEMO\} = ${DEMO} @echo \$$\(DEMO\) = $(DEMO)
x := 1 y = 1 x ?= 2 all: @echo x=$(x) @echo y=$(y) y = 2 y ?= 3
输出:
x=1 y=2
===
标签:color if判断 strong $$ efi str code === 变量
原文地址:https://www.cnblogs.com/pengdonglin137/p/9678067.html