summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-07-19 21:59:00 +0200
committerLudovic Courtès <ludo@gnu.org>2015-07-19 21:59:00 +0200
commitf262f9f52dde48efcfc913a6f6dfd898bf469408 (patch)
treeba0a62a59c4a9c795cdec0200849e4b27b5c93b8
parent54faf17440aee57b90737c10436beb6cc1de5778 (diff)
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.
-rw-r--r--daemon.am5
1 files 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 += \