diff --git a/src/Makefile.am b/src/Makefile.am index be103b568..3c2dfbf17 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -81,3 +81,7 @@ install-exec-hook: ( cd $(DESTDIR)@bindir@; mkdir -p $(DESTDIR)$(cgidir); mv zms $(DESTDIR)$(cgidir) ) ( cd $(DESTDIR)$(cgidir); chown $(webuser):$(webgroup) zms; ln -f zms nph-zms ) ( cd $(DESTDIR)@bindir@; chmod u+s zmfix ) + +uninstall-hook: + ( cd $(DESTDIR)$(cgidir); rm -f zms nph-zms ) + diff --git a/web/Makefile.am b/web/Makefile.am index 474be3f7f..715617537 100644 --- a/web/Makefile.am +++ b/web/Makefile.am @@ -212,3 +212,5 @@ install-data-hook: @-( cd $(DESTDIR)$(webdir); if ! test -e temp; then mkdir temp; fi; chown $(webuser):$(webgroup) temp; chmod u+w temp ) -( cd $(DESTDIR)$(webdir); ln -s zm.php index.php ) +uninstall-hook: + @-( cd $(DESTDIR)$(webdir); rm -rf events graphics images sounds temp )