2017-06-05 84 views
0

我的项目的根文件夹是PROJECT,并且在PROJECT/scripts/abc.sh中只有一个脚本,我想将它安装到目录/usr/share/xxx/abc.sh中。Automake/Autoconf脚本自定义目录

因为它没有安装到/usr/bin/abc.sh,所以bin_SCRIPTS = abc.sh是不正确的。

请问如何编写Makefile.am

回答

2

你需要定义安装目录:

xxxdir = $(datarootdir)/xxx 

xxx_SCRIPTS = scripts/abc.sh 

More typically,就像这样:

pkgdata_SCRIPTS = scripts/abc.sh 

其中的automake早已设置pkgdatadir