使用 automake 在 make install 期间显示消息

Display message during make install using automake

使用 gnu automake 我如何 期间向用户显示自定义消息 make install阶段?

我一直在阅读 automake manual 和其他各种教程,但还没有找到答案,它可能只是隐藏在手册的某个地方,我没能找到它。如果有解释请指出

我正在将一些源代码转换为使用 automake 并接近 make install 的最后阶段我想显示一条消息告诉用户他们应该 运行 一个特定的脚本来设置一些额外的东西,这些东西不应该是 automake 的一部分,或者不能(轻易地)在安装数据挂钩或其他东西中完成。

此外,实际上是否有一种干净的方法来 运行 使用 automake 的自定义脚本(在安装挂钩等之外)?我可以想象它是大诺诺所以我没有认真考虑它,但我很好奇。

只需在您的 Makefile.am 文件中包含一个安装挂钩:

 install-exec-hook:
         echo "Do this other thing now"

Additionally is there actually a clean way to run a custom script using automake (outside of install hooks and such)?

安装挂钩正是它的用途。

 http://www.gnu.org/software/automake/manual/html_node/Extending-Installation.html