[email protected] (Taylan Ulrich "Bayırlı/Kammer") writes:

>  .png.eps:
> -     convert "$<" "[email protected]"
> -     mv "[email protected]" "$@"
> +     convert "$<" "$(srcdir)/[email protected]"
> +     mv "$(srcdir)/[email protected]" "$(srcdir)/$@"

Whoops, looks like that rule mustn't be changed.

Updated patch:

>From 80c928d93b9f87e227684a53dc4ce4477698c86b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?=
 <[email protected]>
Date: Sun, 10 Jan 2016 10:14:43 +0100
Subject: [PATCH] build: Fix out-of-tree building of documentation.

* doc.am (.dot.png, .dot.pdf, .dot.eps): Put the generated files into
  $(srcdir).
---
 doc.am | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/doc.am b/doc.am
index e3a91cc..8a5cfdc 100644
--- a/doc.am
+++ b/doc.am
@@ -1,6 +1,7 @@
 # GNU Guix --- Functional package management for GNU
-# Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <[email protected]>
+# Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <[email protected]>
 # Copyright © 2013 Andreas Enge <[email protected]>
+# Copyright © 2016 Taylan Ulrich Bayırlı/Kammer <[email protected]>
 #
 # This file is part of GNU Guix.
 #
@@ -65,16 +66,16 @@ DOT_OPTIONS =					\
   -Nfontsize=9 -Nheight=.1 -Nwidth=.1
 
 .dot.png:
-	$(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "[email protected]"
-	mv "[email protected]" "$@"
+	$(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$(srcdir)/[email protected]"
+	mv "$(srcdir)/[email protected]" "$(srcdir)/$@"
 
 .dot.pdf:
-	$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "[email protected]"
-	mv "[email protected]" "$@"
+	$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/[email protected]"
+	mv "$(srcdir)/[email protected]" "$(srcdir)/$@"
 
 .dot.eps:
-	$(DOT) -Teps $(DOT_OPTIONS) < "$<" > "[email protected]"
-	mv "[email protected]" "$@"
+	$(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$(srcdir)/[email protected]"
+	mv "$(srcdir)/[email protected]" "$(srcdir)/$@"
 
 .png.eps:
 	convert "$<" "[email protected]"
-- 
2.6.3

Reply via email to