Ubuntu 什么';dist_web_数据部分中index.html的问题是什么?
在已经存在的Makefile.am中,我刚刚在dist_web_数据部分添加了index.html。这个部分有几个文件。我还添加了一些.js文件。 在服务器上安装应用程序有两种方法:Ubuntu 什么';dist_web_数据部分中index.html的问题是什么?,ubuntu,web,makefile,deb,Ubuntu,Web,Makefile,Deb,在已经存在的Makefile.am中,我刚刚在dist_web_数据部分添加了index.html。这个部分有几个文件。我还添加了一些.js文件。 在服务器上安装应用程序有两种方法: sudo制作安装 生成包并将其安装到目标计算机上 第一种方法会将文件复制到/var/www,但当我构建包并将其安装到目标计算机上时,所有文件(包括旧文件和我添加到该部分的文件)都会被复制,但index.html除外!我把它的名字改为test.html,它被复制了!似乎名称index.html有问题。 我可能会包括整
AUTOMAKE_OPTIONS = gnu
# This should be set to your web directory
webdir = @WEB_PREFIX@
# And these to the user and group of your webserver
webuser = @WEB_USER@
webgroup = @WEB_GROUP@
SUBDIRS = \
ajax \
css \
graphics \
includes \
js \
lang \
skins \
tools \
views
dist_web_DATA = \
index.php
# Yes, you are correct. This is a HACK!
install-data-hook:
( cd $(DESTDIR)$(webdir); chown $(webuser):$(webgroup) $(dist_web_DATA) )
( cd $(DESTDIR)$(webdir); chown -R $(webuser):$(webgroup) $(SUBDIRS) )
@-( cd $(DESTDIR)$(webdir); if ! test -e events; then mkdir events; fi; chown $(webuser):$(webgroup) events; chmod u+w events )
@-( cd $(DESTDIR)$(webdir); if ! test -e images; then mkdir images; fi; chown $(webuser):$(webgroup) images; chmod u+w images )
@-( cd $(DESTDIR)$(webdir); if ! test -e sounds; then mkdir sounds; fi; chown $(webuser):$(webgroup) sounds; chmod u+w sounds )
@-( cd $(DESTDIR)$(webdir); if ! test -e tools; then mkdir tools; fi; chown $(webuser):$(webgroup) tools; chmod u+w tools )
@-( cd $(DESTDIR)$(webdir); if ! test -e temp; then mkdir temp; fi; chown $(webuser):$(webgroup) temp; chmod u+w temp )
uninstall-hook:
@-( cd $(DESTDIR)$(webdir); rm -rf $(SUBDIRS) )
@-( cd $(DESTDIR)$(webdir); rm -rf events images sounds tools temp )
它确实源自ZoneMinder,并将对其进行定制。为此,我将index.html以及其他文件添加到index.php所在的dist_web_数据部分。首先,我认为index.php的存在会阻止index.html被复制,因为只有一个index.html可能会打开站点,但在删除除index.html以外的所有文件后,它仍然没有安装(复制到/var/www)。也许DEB(dpkg-i)的安装程序对这个名称很敏感