meillo@226: EXTRA_DIST = examples docs man tpl devel meillo@0: meillo@57: SUBDIRS = src man meillo@0: meillo@421: install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir doc_dir rmail meillo@86: meillo@421: uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir rm-conf_dir rm-spool_dir rm-log_dir meillo@0: meillo@61: meillo@147: conf_dir: meillo@0: install -d $(DESTDIR)@with_confdir@ meillo@0: meillo@145: rm-conf_dir: meillo@145: rmdir $(DESTDIR)@with_confdir@ # removes only if empty meillo@145: meillo@61: meillo@147: tpl_dir: meillo@0: install -d $(DESTDIR)@datadir@/masqmail/tpl meillo@61: cp tpl/* $(DESTDIR)@datadir@/masqmail/tpl meillo@61: chmod 644 $(DESTDIR)@datadir@/masqmail/tpl/* meillo@0: meillo@147: rm-tpl_dir: meillo@147: rm -rf $(DESTDIR)@datadir@/masqmail/ meillo@147: meillo@61: meillo@61: doc_dir: meillo@58: install -d $(DESTDIR)@docdir@ meillo@58: cp -r docs $(DESTDIR)@docdir@ meillo@58: cp -r examples $(DESTDIR)@docdir@ meillo@229: cp ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS $(DESTDIR)@docdir@ meillo@58: meillo@147: rm-doc_dir: meillo@147: cd $(DESTDIR)@docdir@ && ( \ meillo@147: rm -rf docs examples ; \ meillo@229: rm -f ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS ; \ meillo@147: ) meillo@147: rmdir $(DESTDIR)@docdir@ meillo@0: meillo@61: meillo@147: log_dir: meillo@0: install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@ meillo@0: meillo@145: rm-log_dir: meillo@145: rmdir $(DESTDIR)@with_logdir@ # removes only if empty meillo@61: meillo@61: meillo@147: spool_dir: meillo@0: install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@ meillo@0: install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input meillo@0: meillo@145: rm-spool_dir: meillo@145: : # removal fails if the dirs are non-empty meillo@145: : # this prevents losing spooled files meillo@145: rmdir $(DESTDIR)@with_spooldir@/input meillo@145: rmdir $(DESTDIR)@with_spooldir@ meillo@91: meillo@91: rmail: meillo@148: [ -d "$(DESTDIR)@prefix@/sbin" ] || mkdir -p "$(DESTDIR)@prefix@/sbin" meillo@91: sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\ meillo@227: admin/rmail >$(DESTDIR)@prefix@/sbin/rmail meillo@148: chmod 755 $(DESTDIR)@prefix@/sbin/rmail meillo@91: meillo@91: rm-rmail: meillo@148: rm -f $(DESTDIR)@prefix@/sbin/rmail meillo@91: meillo@91: meillo@419: uid_bit: meillo@147: chmod u+s $(DESTDIR)@prefix@/sbin/masqmail