【发布时间】:2021-04-04 23:07:31
【问题描述】:
我想尝试使用介子自动从 makefile 执行“make install”命令。 我在 meson.build 文件中尝试了以下内容:
r = run_command('make install')
if r.returncode() != 0
# it failed
endif
output = r.stdout().strip()
errortxt = r.stderr().strip()
但它会打印以下错误:Program or command 'make install' not found or not executable.
这个 meson.build 文件与我的 makefile 位于同一目录中。这不是使用此功能的方法还是有更好的方法来实现我想要做的事情?
【问题讨论】:
标签: c linux makefile meson-build