|
|
文质彬彬的拐杖 · 表格表头行列与表身不对齐_A_one2010 ...· 2 年前 · |
|
|
近视的沙发 · selenium中接受alert_lion_ ...· 2 年前 · |
|
|
骑白马的大熊猫 · windows - OSError: ...· 2 年前 · |
|
|
骑白马的烈马 · python 模块 moviepy ...· 2 年前 · |
|
|
沉着的沙滩裤 · html2canvas+jspdf踩坑之路 ...· 2 年前 · |
当我进入shell的时候
echo $demoPath
它打印出来
/usr/local/demo
如何在makefile中获取此变量
$demoPath
的值?
发布于 2015-03-06 10:23:48
如果已导出环境变量:
export demoPath=/usr/local/demo
您只需在
makefile
中通过名称引用它(
make
将导入您设置的所有环境变量):
DEMOPATH = ${demoPath} # Or $(demoPath) if you prefer.
如果您尚未导出环境变量,则在导出它之前,或者除非您在命令行上显式传递它,否则无法访问它:
make DEMOPATH="${demoPath}" …
如果使用的是C shell派生命令,请用
setenv demoPath /usr/local/demo
替换
export
命令。
发布于 2018-10-24 10:34:04
all:
echo ${PATH}
或者只更改一条命令的路径:
all:
PATH=/my/path:${PATH} cmd
https://stackoverflow.com/questions/28890634
复制相似问题
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2023 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号: 粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
|
|
骑白马的大熊猫 · windows - OSError: [WinError 1450] Insufficient system resources exist to complete the requested service using Selenium in Python 2 年前 |
|
|
沉着的沙滩裤 · html2canvas+jspdf踩坑之路 - 简书 2 年前 |