当前位置:网站首页>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
边栏推荐
猜你喜欢
"Microservice Architecture" Arrangement and Choreography - Different Models for Making Systems Work Together
【数据架构】分布式数据网格作为集中式数据单体的解决方案
Guo Jingjing's personal chess teaching, the good guy is a robot
Static关键字及应用,继承的概念
关于判断单峰数组的几种方法
I don't want to do accounting anymore, Die changed to a new one, moved forward bravely, and finally successfully passed the career change test to double his monthly salary~
微信小程序--》小程序生命周期和WXS使用
JWT:拥有我,即拥有权力
【企业架构】敏捷与企业架构:战略联盟
DAY25: Logic Vulnerability
随机推荐
郭晶晶家的象棋私教,好家伙是个机器人
【分布式】资源与事务:可观测性的基本二重性
10 【异步组件 组合式函数(hooks)】
Lasso回归(Stata)
mySQL add, delete, modify and check advanced
DataStream API(基础篇) 完整使用 (第五章)
打工人的第27天-平凡但不平淡的日子
不想再干会计了,蝶变向新,勇往直前,最后成功通过转行测试实现月薪翻倍~
日期类(暑假每日一题 19)
"Microservice Architecture" Arrangement and Choreography - Different Models for Making Systems Work Together
Matlab符号函数的生成及计算其函数值
2022年固定资产管理系统的概况
故障分析 | Sql_slave_skip_counter 使用不规范对复制的影响
ARM结构体系3:ARM指令的寻址和异常中断处理
支付 x 聚合 x 分账 - 回流平台“二清”风险规避之路
FPGA时钟篇(三) MRCC和SRCC的区别
Defending risks with technology and escorting cloud native | Tongchuang Yongyi X Boyun held a joint product launch conference
J9 digital science: Web 3.0 is about data ownership or decentralized?
地平线:面向规模化量产的智能驾驶系统和软件开发
【数据库架构】OLTP 和 OLAP:实际比较