当前位置:网站首页>UN make (6) makefile的条件执行
UN make (6) makefile的条件执行
2022-06-25 23:57:00 【Chen_Hulk】
条件判断的基本语法:
CONDITIONAL-DIRECTIVE
TEXT-IF-TRUE
else
TEXT-IF-FALSE
endif其中,CONDITIONAL-DIRECTIVE为判断条件判断语句:
- 判断是否相等:
ifeq (ARG1,ARG2)
ifeq 'ARG1' 'ARG2'
ifeq "ARG1" "ARG2"
ifeq "ARG1" 'ARG2'
ifeq 'ARG1' "ARG2"
- 判断是否不相等:
ifneq (ARG1,ARG2)
ifneq 'ARG1' 'ARG2'
ifneq "ARG1" "ARG2"
ifneq "ARG1" 'ARG2'
ifneq 'ARG1' "ARG2"
- 判断是否定义:
ifdef VAR #除了“VAR=” 这种情况以外,使用其他方式对它的引用都会使ifdef返回真
ifndef VAR
边栏推荐
- SPI protocol
- Xinku online | cnopendata text data of IPO declaration and issuance of A-share listed companies
- 弹性蛋白酶的用途和化学性质
- Oracle database startup backup preparation
- Summary of informer's paper
- 25. histogram comparison
- Installing MySQL databases in FreeBSD
- [Excel知识技能] Excel数据类型
- Test questions and answers for the 2022 baby sitter (Level 5) examination
- JQ 自定义属性取值
猜你喜欢

Textcnn paper Interpretation -- revolutionary neural networks for sense classification

Postman接口测试之断言

RT thread project engineering construction and configuration - (Env kconfig)

“热帖”统计

CityJSON

Obtain WiFi password through computer (only connected WiFi)

Discrete Mathematics - 01 mathematical logic

RT-Thread 项目工程搭建和配置--(Env Kconfig)

15 `bs对象.节点名称.节点名称.string` 获取嵌套节点内容

远程增量同步神器rsync
随机推荐
Procédure de désinstallation complète de la base de données Oracle (pas de capture d'écran)
26. histogram back projection
Accumulation of some knowledge points in machine learning
浅谈接口测试(二)
Common deep learning optimizers
Laravel基础课 路由和MVC——控制器
Abnova丨CMV CISH 探头解决方案
Data arrangement of machinetranslation
22. pixel remapping
Obtain WiFi password through computer (only connected WiFi)
2021-1-15 fishing notes ctrl+c /v
15 `bs object Node name Node name String` get nested node content
Camera - 02 image sensor
Summary of informer's paper
Installing MySQL databases in FreeBSD
Tools - API document generation tool
[Excel知识技能] Excel数据类型
JSON基本语法
Cross validation -- a story that cannot be explained clearly
Embedded C second learning notes