相关疑难解决方法(0)

如何基于grep结果条件化makefile?

如果在检查工具版本时找不到某个字符串,我正在寻找一种摆脱makefile的方法.

我想要匹配的grep表达式是:

dplus -VV | grep 'build date and time: Nov  1 2009 19:31:28'
Run Code Online (Sandbox Code Playgroud)

如果安装了正确版本的dplus,则返回匹配的行.

如何根据此表达式在我的makefile中使用条件?

grep makefile

13
推荐指数
1
解决办法
1万
查看次数

标签 统计

grep ×1

makefile ×1