1
votes

Using gnu automake how do I display a custom message to the user during the make install stage?

I have been reading the automake manual and various other tutorials but have not yet found an answer, it may just be hidden somewhere in the manual and I failed to find it. Please point it out if you where it's explained.

I am converting some source to use automake and near the end stage of make install I would like to display a message to tell the user they should run a particular script to set up some extra things that shouldn't be part of a automake, or can not (easily) be done in an install-data-hook or something.

Additionally is there actually a clean way to run a custom script using automake (outside of install hooks and such)? I can imagine it's big nono so I am not seriously considering it, but I am curious.

1

1 Answers

4
votes

Simply include an install hook in your Makefile.am file:

 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)?

Install hooks are exactly what that is for.

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