From: Ruben Kerkhof Date: Thu, 31 May 2018 11:04:09 +0000 (+0200) Subject: Fix out of tree builds X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=77afe479cf8fa59c78e424ee75ee8defad05a3e6;p=collectd.git Fix out of tree builds Fixes #2653 --- diff --git a/Makefile.am b/Makefile.am index c345904d..612346e1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2009,9 +2009,9 @@ install-exec-hook: $(mkinstalldirs) $(DESTDIR)$(sysconfdir) if test -e $(DESTDIR)$(sysconfdir)/collectd.conf; \ then \ - $(INSTALL) -m 0640 $(srcdir)/src/collectd.conf $(DESTDIR)$(sysconfdir)/collectd.conf.pkg-orig; \ + $(INSTALL) -m 0640 $(builddir)/src/collectd.conf $(DESTDIR)$(sysconfdir)/collectd.conf.pkg-orig; \ else \ - $(INSTALL) -m 0640 $(srcdir)/src/collectd.conf $(DESTDIR)$(sysconfdir)/collectd.conf; \ + $(INSTALL) -m 0640 $(builddir)/src/collectd.conf $(DESTDIR)$(sysconfdir)/collectd.conf; \ fi; \ $(mkinstalldirs) $(DESTDIR)$(pkgdatadir) $(INSTALL) -m 0644 $(srcdir)/src/types.db $(DESTDIR)$(pkgdatadir)/types.db;