2002-12-10 10:58:32 +00:00
|
|
|
AUTOMAKE_OPTIONS = gnu
|
|
|
|
|
2005-02-24 10:43:29 +00:00
|
|
|
# This should be set to your web directory
|
2002-12-10 23:02:35 +00:00
|
|
|
webdir = @WEB_PREFIX@
|
2002-12-10 21:27:29 +00:00
|
|
|
# And these to the user and group of your webserver
|
2002-12-10 23:02:35 +00:00
|
|
|
webuser = @WEB_USER@
|
|
|
|
webgroup = @WEB_GROUP@
|
2002-12-10 21:27:29 +00:00
|
|
|
|
2005-02-24 10:43:29 +00:00
|
|
|
SUBDIRS = \
|
2008-07-14 13:54:50 +00:00
|
|
|
ajax \
|
|
|
|
css \
|
|
|
|
graphics \
|
|
|
|
includes \
|
|
|
|
js \
|
|
|
|
lang \
|
|
|
|
skins \
|
2008-10-05 19:06:59 +00:00
|
|
|
tools \
|
2008-07-14 13:54:50 +00:00
|
|
|
views
|
2005-02-24 10:43:29 +00:00
|
|
|
|
2008-07-14 13:54:50 +00:00
|
|
|
dist_web_DATA = \
|
|
|
|
index.php
|
2002-12-10 21:27:29 +00:00
|
|
|
|
|
|
|
# Yes, you are correct. This is a HACK!
|
2003-03-26 22:12:03 +00:00
|
|
|
install-data-hook:
|
2008-07-14 13:54:50 +00:00
|
|
|
( cd $(DESTDIR)$(webdir); chown $(webuser):$(webgroup) $(dist_web_DATA) )
|
|
|
|
( cd $(DESTDIR)$(webdir); chown -R $(webuser):$(webgroup) $(SUBDIRS) )
|
2004-12-28 16:46:48 +00:00
|
|
|
@-( 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 )
|
2008-07-16 13:14:19 +00:00
|
|
|
@-( cd $(DESTDIR)$(webdir); if ! test -e tools; then mkdir tools; fi; chown $(webuser):$(webgroup) tools; chmod u+w tools )
|
2004-12-28 16:46:48 +00:00
|
|
|
@-( cd $(DESTDIR)$(webdir); if ! test -e temp; then mkdir temp; fi; chown $(webuser):$(webgroup) temp; chmod u+w temp )
|
2003-07-11 09:27:56 +00:00
|
|
|
|
2005-11-16 10:24:03 +00:00
|
|
|
uninstall-hook:
|
2008-07-14 13:54:50 +00:00
|
|
|
@-( cd $(DESTDIR)$(webdir); rm -rf $(SUBDIRS) )
|
2008-07-16 13:14:19 +00:00
|
|
|
@-( cd $(DESTDIR)$(webdir); rm -rf events images sounds tools temp )
|