开发者

Setting executable file permissions with automake

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜