开发者

Setting executable file permissions with automake

开发者 https://www.devze.com 2023-03-14 01:27 出处:网络
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 cr

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号