Files
zoneminder/web/Makefile.am
stan 3ca1351680 Added tests before making directories.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@237 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-01-03 16:47:11 +00:00

20 lines
825 B
Makefile

AUTOMAKE_OPTIONS = gnu
# This should be set to your CGI directory
webdir = @WEB_PREFIX@
# And these to the user and group of your webserver
webuser = @WEB_USER@
webgroup = @WEB_GROUP@
web_DATA = zmactions.php zmconfig.php zmdb.php zmfuncs.php zmhtml.php zm.php zmstyles.css zmwml.php
EXTRA_DIST = $(web_DATA)
# Yes, you are correct. This is a HACK!
install-data-local:
( cd $(webdir); chown $(webuser):$(webgroup) $(web_DATA) )
@-( cd $(webdir); if ! test -e images; then mkdir images; fi; chown $(webuser):$(webgroup) images; chmod u+w images )
@-( cd $(webdir); if ! test -e sounds; then mkdir sounds; fi; chown $(webuser):$(webgroup) sounds; chmod u+w sounds )
@-( cd $(webdir); if ! test -e temp; then mkdir temp; fi; chown $(webuser):$(webgroup) temp; chmod u+w temp )
-( cd $(webdir); ln -s zm.php index.php )