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