aboutsummaryrefslogtreecommitdiff
path: root/doc.am
diff options
context:
space:
mode:
authorTaylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>2016-01-10 10:14:43 +0100
committerTaylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>2016-01-10 22:30:29 +0100
commitce9a30425191a966f3e06a9e17c7c282babfc8fe (patch)
treee4465aab4930ca690eb0e8e04d8fb7031354dbca /doc.am
parent9b9b7ffd8e1446574781bd02542bb171b0705248 (diff)
downloadpatches-ce9a30425191a966f3e06a9e17c7c282babfc8fe.tar
patches-ce9a30425191a966f3e06a9e17c7c282babfc8fe.tar.gz
build: Fix out-of-tree building of documentation.
* doc.am (.dot.png, .dot.pdf, .dot.eps): Put the generated files into $(srcdir).
Diffstat (limited to 'doc.am')
-rw-r--r--doc.am15
1 files changed, 8 insertions, 7 deletions
diff --git a/doc.am b/doc.am
index e3a91cc36d..8a5cfdc089 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 <ludo@gnu.org>
+# Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
# Copyright © 2013 Andreas Enge <andreas@enge.fr>
+# Copyright © 2016 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
#
# 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) < "$<" > "$@.tmp"
- mv "$@.tmp" "$@"
+ $(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"
+ mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
.dot.pdf:
- $(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$@.tmp"
- mv "$@.tmp" "$@"
+ $(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"
+ mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
.dot.eps:
- $(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$@.tmp"
- mv "$@.tmp" "$@"
+ $(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"
+ mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
.png.eps:
convert "$<" "$@-tmp.eps"