Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Makefile Automake/Autoconf脚本自定义目录_Makefile_Automake_Autoconf - Fatal编程技术网

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