-install: smtp
- $(INSTALL_PROGRAM) smtp $(DESTDIR)$(sbindir)/smtp
- $(INSTALL_PROGRAM) dbcheck $(DESTDIR)$(sbindir)/dbcheck
+devclean: realclean
+ if test $(srcdir) = .; then $(MAKE) realclean; fi
+ (cd $(srcdir); $(RMF) Makefile)
+
+# Allow non-root execution of bsmtp for non-root Directors
+install: $(INSTOOLS)
+ @for tool in ${INSTOOLS} ; do \
+ $(INSTALL_PROGRAM) $$tool $(DESTDIR)$(sbindir)/$$tool ; \
+ done
+ chmod 755 $(DESTDIR)$(sbindir)/bsmtp