首页 新闻 赞助 找找看

makefile 怎么执行bashrc 中自定义命令?

0
[已解决问题] 解决于 2023-02-01 13:50


set_title 为bashrc 中自定义函数。

IC打工仔的主页 IC打工仔 | 菜鸟二级 | 园豆:210
提问于:2023-02-01 10:43
< >
分享
最佳答案
0

stackoverflow 上的一个回答

You cannot call bash functions or aliases in a Makefile, only binaries and scripts. What you can do however, is calling an interactive bash and instruct it to call your function or alias:

all:
    bash -i -c lsc

if lsc is defined in your .bashrc, for example.

奖励园豆:5
dudu | 高人七级 |园豆:31075 | 2023-02-01 10:48

谢谢啦

IC打工仔 | 园豆:210 (菜鸟二级) | 2023-02-01 13:49
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册