Makefile Automake/Autoconf脚本自定义目录
我的项目的根文件夹是Makefile Automake/Autoconf脚本自定义目录,makefile,automake,autoconf,Makefile,Automake,Autoconf,我的项目的根文件夹是project,在project/scripts/abc.sh中只有一个脚本,我想将它安装到/usr/share/xxx/abc.sh目录中 因为它没有安装到/usr/bin/abc.sh,所以bin\u SCRIPTS=abc.sh是不正确的 请告诉我如何编写Makefile.am?您需要定义安装目录: xxxdir = $(datarootdir)/xxx xxx_SCRIPTS = scripts/abc.sh 例如: pkgdata_SCRIPTS = scrip
project
,在project/scripts/abc.sh
中只有一个脚本,我想将它安装到/usr/share/xxx/abc.sh
目录中
因为它没有安装到/usr/bin/abc.sh
,所以bin\u SCRIPTS=abc.sh
是不正确的
请告诉我如何编写
Makefile.am
?您需要定义安装目录:
xxxdir = $(datarootdir)/xxx
xxx_SCRIPTS = scripts/abc.sh
例如:
pkgdata_SCRIPTS = scripts/abc.sh
如果automake已经安装了pkgdatadir,则需要定义安装目录:
xxxdir = $(datarootdir)/xxx
xxx_SCRIPTS = scripts/abc.sh
例如:
pkgdata_SCRIPTS = scripts/abc.sh
其中automake已经设置了pkgdatadir