0
我的项目的根文件夹是PROJECT
,并且在PROJECT/scripts/abc.sh
中只有一个脚本,我想将它安装到目录/usr/share/xxx/abc.sh
中。Automake/Autoconf脚本自定义目录
因为它没有安装到/usr/bin/abc.sh
,所以bin_SCRIPTS = abc.sh
是不正确的。
请问如何编写Makefile.am
?
我的项目的根文件夹是PROJECT
,并且在PROJECT/scripts/abc.sh
中只有一个脚本,我想将它安装到目录/usr/share/xxx/abc.sh
中。Automake/Autoconf脚本自定义目录
因为它没有安装到/usr/bin/abc.sh
,所以bin_SCRIPTS = abc.sh
是不正确的。
请问如何编写Makefile.am
?
你需要定义安装目录:
xxxdir = $(datarootdir)/xxx
xxx_SCRIPTS = scripts/abc.sh
More typically,就像这样:
pkgdata_SCRIPTS = scripts/abc.sh
其中的automake早已设置pkgdatadir
。