当前位置:网站首页>makefile 的ifeq,filter,strip 简单使用
makefile 的ifeq,filter,strip 简单使用
2022-06-12 21:22:00 【yugang_123456】
1、
ifeq语句
ifeq : 判断语句,用于比较两个参数是否相等,相等则该语句通过。
如果a和b相等,则do something

2、
filter语句
filter: 过滤语句,过滤掉不符合指定的模式的内容,仅保留符合指定的模式的内容。
VAR := 1 2 3 4 5
指定的模式为 1 2 3,多个模式之间用空格区分
$(filter 1 2 3 , $(VAR))
结果是:
1 2 3
3)
strip 去空字符语句,去掉字串中开头和结尾的空字符(空字符包括空格、[Tab]等不可显示字符)。
VAR = 1 2 3
$(strip $(VAR))
结果是:
1 2 3
总结:
看完这三个语句的说明,我们再来看最开始的
第一种情况:
当AAA 中有 BBB 或者 CCC 的时候:
AAA= BBB DDD
$(strip $(AAA)= BBB DDD
上面就可以写为

$(filter BBB DDD, BBB CCC) = BBB
上面就可以写为

所以结果为do nothing。
第二种情况:
当AAA 中没有 BBB 或者 CCC 的时候:
AAA= EEE
$(strip $(AAA)= EEE
上面就可以写为

$(filter EEE, BBB CCC) = NULL
上面就可以写为

所以结果为do something。
边栏推荐
- In the spring recruitment of 2022, the test engineer will have a full set of interview strategies to thoroughly understand all the technical stacks (all dry goods)
- 一级指针&二级指针知识点梳理
- 实现从字符串中删除某个字符操作
- zgc的垃圾收集的主要阶段
- Scatter in pytorch_ () function
- 重排数列练习题
- Image processing 12- image linear blending
- Is it safe to open an account in flush? How to open an account online to buy stocks
- GNS安装与配置
- Market trend report, technical innovation and market forecast of hydraulic torque wrench in China
猜你喜欢

The required books for software testers (with e-books) recommended by senior Ali have benefited me a lot

Successful transition from self-study test halfway, 10K for the first test

The salted fish has been transmitted for 5W times, and the latest spring recruit face-to-face test questions of bytes have been leaked

Design and practice of Hudi bucket index in byte skipping

金融信创爆发年!袋鼠云数栈DTinsight全线产品通过信通院信创专项测试

torch. nn. Linear() function

Scope and scope chain

Access control system based on RFID

Algorinote_2_主定理与 Akra-Bazzi 定理

测试基础之:单元测试
随机推荐
A blog written clearly by vit
HR SaaS unicorn is about to emerge. Will the employee experience be the next explosive point?
[tutorial] Firefox send: deployment method of Firefox open source temporary file sharing service platform
RestTemplate的@LoadBalance注解
Main stages of garbage collection in ZGC
同花顺能开户吗,在同花顺开户安全么
How do testers plan for their future? To achieve 25K in 2 years?
同花顺能开户吗,在APP上可以直接开通券商安全吗
ASCII code comparison table
Bubble sort
Image processing 12- image linear blending
What are the disadvantages of bone conduction earphones? Analysis of advantages and disadvantages of bone conduction earphones
初步了解认识正则表达式(Regex)
JSON file handles object Tags
Understanding of functions
Lombok package is successfully installed, but the runtime prompts that get, set method and constructor solution cannot be found
#981 Time Based Key-Value Store
Delphi XE7的蓝牙 Bluetooth
Research Report on hydraulic injection machine industry - market status analysis and development prospect forecast
递归调用知识点-包含例题求解二分查找、青蛙跳台阶、逆序输出、阶乘、斐波那契、汉诺塔。
