当前位置:网站首页>makefile 杂项
makefile 杂项
2022-08-10 09:28:00 【hjjdebug】
########################################
# makefile 中使用环境变量
# 在shell 命令中,用$$即可,$$被make解析为$
# 例子:
########################################
all:
@echo $$PATH # $$被解析为$, 执行的shell 命令为 echo $path, 所以说环境变量的引用要用两个$
@echo "-----"
@echo $PATH # $P 被认为是一个变量,解析成一个空,所以只显示ATH
测试结果: make
/opt/bin:/opt/ffmpeg_build/bin:/home/hjj/bin:/usr/local/sbin:/usr/local/bin
-----
ATH
边栏推荐
- [Metaverse Omi Says] Listen to how Rabbit Fan Rabbit creates a new era of trendy play from virtual to reality
- 用高质量图像标注数据加速AI商业化落地
- BUUCTF【pwn】解题记录(4-6页持续更新中)
- js reads excel time format conversion
- 腾讯发布四足机器人 Max 二代版本,梅花桩上完成跳跃、空翻
- 10 【异步组件 组合式函数(hooks)】
- 乐观锁与悲观锁
- dayjs-----time format
- Basic concepts of concurrency, operations, containers
- 对称加密与非对称加密的区别
猜你喜欢
随机推荐
ARM结构体系3:ARM指令的寻址和异常中断处理
[OAuth2] Nineteen, OpenID Connect dynamic client registration
幂次方(暑假每日一题 20)
如何理解BIO、NIO、AIO的区别
js reads excel time format conversion
DAY25: Logic Vulnerability
PostgreSQL 2022 发展现状:13 个非 psql 工具
亚信AntDB数据库有啥业务应用场景和应用案例?
The Generation of Matlab Symbolic Functions and the Calculation of Its Function Values
Fourier series and Fourier transform
Question brushing tool h
人
J9 Number Theory: Macro Analysis of DAO Characteristics
多线程知识点总结之温故而知新
浅谈DAO+DeFi+NFT模式开发代码技术方案丨链游元宇宙NFT盲盒项目技术开发逻辑(源码程序)
Basic concepts of concurrency, operations, containers
OLTP and OLAP database architecture 】 【 : actual comparison
【API 管理】什么是 API 管理,为什么它很重要?
PTA Exercise 2.2 Rotate an Array Left
郭晶晶家的象棋私教,好家伙是个机器人