From f262f9f52dde48efcfc913a6f6dfd898bf469408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 19 Jul 2015 21:59:00 +0200 Subject: [PATCH] build: Fix instantiation of 'guix-daemon.service' when builddir != srcdir. * daemon.am (etc/guix-daemon.service): Add $(MKDIR_P) invocation. Add $(srcdir) when referring to the source file. --- daemon.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon.am b/daemon.am index 6a031a15b0..f2cb0a499e 100644 --- a/daemon.am +++ b/daemon.am @@ -186,8 +186,9 @@ nodist_systemdservice_DATA = etc/guix-daemon.service etc/guix-daemon.service: etc/guix-daemon.service.in \ $(top_builddir)/config.status - $(SED) -e 's|@''bindir''@|$(bindir)|' < \ - "etc/guix-daemon.service.in" > "$@.tmp" + $(MKDIR_P) "`dirname "$@"`" + $(SED) -e 's|@''bindir''@|$(bindir)|' < \ + "$(srcdir)/etc/guix-daemon.service.in" > "$@.tmp" mv "$@.tmp" "$@" EXTRA_DIST += \