如果在检查工具版本时找不到某个字符串,我正在寻找一种摆脱makefile的方法.
我想要匹配的grep表达式是:
dplus -VV | grep 'build date and time: Nov 1 2009 19:31:28'
如果安装了正确版本的dplus,则返回匹配的行.
如何根据此表达式在我的makefile中使用条件?
grep makefile
grep ×1
makefile ×1