- $(SED) -e 's,%mailspool%,$(mailspool),' \
- -e 's,%etcdir%,$(etcdir),' \
- -e 's,%masquerade%,$(masquerade),' \
- -e 's,%smtpservers%,$(smtpservers),' < $(srcdir)/mts.conf.in > $@
-
-install: install-files install-scripts
-
-install-files:
- $(top_srcdir)/mkinstalldirs $(etcdir)
- for file in $(DIST_FILES); do \
- if [ -f $(etcdir)/$$file ]; then \
- mv $(etcdir)/$$file $(etcdir)/$$file.old; \
- fi; \
- $(INSTALL_DATA) $(srcdir)/$$file $(etcdir)/$$file; \
- done
- for file in $(GEN_FILES); do \
- if [ -f $(etcdir)/$$file ]; then \
- mv $(etcdir)/$$file $(etcdir)/$$file.old; \
- fi; \
- $(INSTALL_DATA) $$file $(etcdir)/$$file; \
+ $(SED) -e 's,%libdir%,$(libdir),' < $(srcdir)/sendfiles.in > $@
+
+install: install-bin-files install-etc-files
+
+install-bin-files:
+ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
+ for script in $(GENERATED_BIN_FILES); do \
+ $(INSTALL_SCRIPT) $$script $(DESTDIR)$(bindir)/$$script; \