summary refs log tree commit diff
diff options
context:
space:
mode:
-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 +=					\