I'm trying to figure out how to have automake change the file permissions on a newly generated executable automatically. Essentially, I want it开发者_Python百科 to perform a 'chmod' every time it creates the executable, but I can't find anything that allows me to specify arbitrary shell commands after compilation. Any suggestions?
Thanks a lot, Kyle
If you use the standard variables such as bin_PROGRAMS
and bin_SCRIPTS
, the installed files should be made executable automatically. For other uses you could use a hook target such as install-exec-hook
or install-data-hook
. This is described in the documentation and in the autobook.
精彩评论