当前位置: 技术问答>linux和unix
automake问题:如果安装一个目录
来源: 互联网 发布时间:2016-03-21
本文导语: 我的程序顶层目录中有一个data目录,包含2个空目录images和videos,我要在make install 的时候还有打包DEB的时候要能够在最终目录/usr/local/share/xxx中有这个data目录,我是这么写的: data/Makefile.am wbuscanner_datadir = $(pkgdatadi...
我的程序顶层目录中有一个data目录,包含2个空目录images和videos,我要在make install 的时候还有打包DEB的时候要能够在最终目录/usr/local/share/xxx中有这个data目录,我是这么写的:
data/Makefile.am
wbuscanner_datadir = $(pkgdatadir)/data
wbuscanner_data_DATA =
images
videos
EXTRA_DIST = $(wbuscanner_data_DATA)
make dist的时候这个目录能够正确的添加,但是make install的时候出错了
Making install in data
make[2]: Entering directory `/home/thexin/Projects/wbuscanner/data'
make[3]: Entering directory `/home/thexin/Projects/wbuscanner/data'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/wbuscanner/data" || /bin/mkdir -p "/usr/local/share/wbuscanner/data"
/usr/bin/install -c -m 644 './images' '/usr/local/share/wbuscanner/data/images'
/usr/bin/install: omitting directory `./images'
/usr/bin/install -c -m 644 './videos' '/usr/local/share/wbuscanner/data/videos'
/usr/bin/install: omitting directory `./videos'
data/Makefile.am
wbuscanner_datadir = $(pkgdatadir)/data
wbuscanner_data_DATA =
images
videos
EXTRA_DIST = $(wbuscanner_data_DATA)
make dist的时候这个目录能够正确的添加,但是make install的时候出错了
Making install in data
make[2]: Entering directory `/home/thexin/Projects/wbuscanner/data'
make[3]: Entering directory `/home/thexin/Projects/wbuscanner/data'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/wbuscanner/data" || /bin/mkdir -p "/usr/local/share/wbuscanner/data"
/usr/bin/install -c -m 644 './images' '/usr/local/share/wbuscanner/data/images'
/usr/bin/install: omitting directory `./images'
/usr/bin/install -c -m 644 './videos' '/usr/local/share/wbuscanner/data/videos'
/usr/bin/install: omitting directory `./videos'
|
目录`/home/thexin/Projects/wbuscanner/data' 存在否?