mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 21:46:35 +01:00
build: Fix out-of-tree building of documentation.
* doc.am (.dot.png, .dot.pdf, .dot.eps): Put the generated files into $(srcdir).
This commit is contained in:
parent
9b9b7ffd8e
commit
ce9a304251
1 changed files with 8 additions and 7 deletions
15
doc.am
15
doc.am
|
@ -1,6 +1,7 @@
|
||||||
# GNU Guix --- Functional package management for GNU
|
# 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 © 2013 Andreas Enge <andreas@enge.fr>
|
||||||
|
# Copyright © 2016 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
|
||||||
#
|
#
|
||||||
# This file is part of GNU Guix.
|
# This file is part of GNU Guix.
|
||||||
#
|
#
|
||||||
|
@ -65,16 +66,16 @@ DOT_OPTIONS = \
|
||||||
-Nfontsize=9 -Nheight=.1 -Nwidth=.1
|
-Nfontsize=9 -Nheight=.1 -Nwidth=.1
|
||||||
|
|
||||||
.dot.png:
|
.dot.png:
|
||||||
$(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$@.tmp"
|
$(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"
|
||||||
mv "$@.tmp" "$@"
|
mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
|
||||||
|
|
||||||
.dot.pdf:
|
.dot.pdf:
|
||||||
$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$@.tmp"
|
$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"
|
||||||
mv "$@.tmp" "$@"
|
mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
|
||||||
|
|
||||||
.dot.eps:
|
.dot.eps:
|
||||||
$(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$@.tmp"
|
$(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"
|
||||||
mv "$@.tmp" "$@"
|
mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
|
||||||
|
|
||||||
.png.eps:
|
.png.eps:
|
||||||
convert "$<" "$@-tmp.eps"
|
convert "$<" "$@-tmp.eps"
|
||||||
|
|
Loading…
Reference in a new issue