ifeq ($(findstring
(
P
R
O
J
E
C
T
)
,
t
e
s
t
p
r
o
j
e
c
t
)
,
(PROJECT),test project ),
(PROJECT),testproject),(PROJECT))
include $(srctree)/aaaa.conf
(
w
a
r
n
i
n
g
"
(warning "
(warning"(PROJECT), will compile… code …")
endif
就是判断 $(PROJECT) 等于 test 或者project
然后执行中间的代码;
MAKE FILE多变量判断的一种方法
最新推荐文章于 2022-04-17 10:57:21 发布