diff --git a/web/Makefile.am b/web/Makefile.am index 632f52470..7f458afbc 100644 --- a/web/Makefile.am +++ b/web/Makefile.am @@ -13,7 +13,7 @@ EXTRA_DIST = $(web_DATA) # Yes, you are correct. This is a HACK! install-data-local: ( cd $(webdir); chown $(webuser):$(webgroup) $(web_DATA) ) - @-( cd $(webdir); mkdir images; chown $(webuser):$(webgroup) images; chmod u+w images ) - @-( cd $(webdir); mkdir sounds; chown $(webuser):$(webgroup) sounds; chmod u+w sounds ) - @-( cd $(webdir); mkdir temp; chown $(webuser):$(webgroup) temp; chmod u+w temp ) + @-( 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 ) diff --git a/web/Makefile.in b/web/Makefile.in index 89c2dba6f..067aa7b31 100644 --- a/web/Makefile.in +++ b/web/Makefile.in @@ -213,9 +213,9 @@ maintainer-clean-generic clean mostlyclean distclean maintainer-clean # Yes, you are correct. This is a HACK! install-data-local: ( cd $(webdir); chown $(webuser):$(webgroup) $(web_DATA) ) - @-( cd $(webdir); mkdir images; chown $(webuser):$(webgroup) images; chmod u+w images ) - @-( cd $(webdir); mkdir sounds; chown $(webuser):$(webgroup) sounds; chmod u+w sounds ) - @-( cd $(webdir); mkdir temp; chown $(webuser):$(webgroup) temp; chmod u+w temp ) + @-( 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 ) # Tell versions [3.59,3.63) of GNU make to not export all variables.