mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
build: Have `pdf' depend on the PDF image.
* doc.am (DOT_OPTIONS): Remove `-Tpng'. (.dot.pdf): New rule. (pdf-local): Depend on the .pdf.
This commit is contained in:
parent
cb9e50f618
commit
54461ce7eb
1 changed files with 7 additions and 3 deletions
10
doc.am
10
doc.am
|
@ -28,14 +28,18 @@ dist_infoimage_DATA = doc/images/bootstrap-graph.png
|
||||||
|
|
||||||
# Try hard to obtain an image size and aspect that's reasonable for inclusion
|
# Try hard to obtain an image size and aspect that's reasonable for inclusion
|
||||||
# in an Info or PDF document.
|
# in an Info or PDF document.
|
||||||
DOT_OPTIONS = \
|
DOT_OPTIONS = \
|
||||||
-Tpng -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 \
|
-Gratio=.9 -Gnodesep=.005 -Granksep=.00005 \
|
||||||
-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) < "$<" > "$@.tmp"
|
||||||
mv "$@.tmp" "$@"
|
mv "$@.tmp" "$@"
|
||||||
|
|
||||||
|
.dot.pdf:
|
||||||
|
$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$@.tmp"
|
||||||
|
mv "$@.tmp" "$@"
|
||||||
|
|
||||||
.dot.eps:
|
.dot.eps:
|
||||||
$(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$@.tmp"
|
$(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$@.tmp"
|
||||||
mv "$@.tmp" "$@"
|
mv "$@.tmp" "$@"
|
||||||
|
@ -43,6 +47,6 @@ DOT_OPTIONS = \
|
||||||
# We cannot add new dependencies to `doc/guix.pdf' & co. (info "(automake)
|
# We cannot add new dependencies to `doc/guix.pdf' & co. (info "(automake)
|
||||||
# Extending"). Using the `-local' rules is imperfect, because they may be
|
# Extending"). Using the `-local' rules is imperfect, because they may be
|
||||||
# triggered after the main rule. Oh, well.
|
# triggered after the main rule. Oh, well.
|
||||||
pdf-local: doc/images/bootstrap-graph.png
|
pdf-local: doc/images/bootstrap-graph.pdf
|
||||||
info-local: doc/images/bootstrap-graph.png
|
info-local: doc/images/bootstrap-graph.png
|
||||||
ps-local: doc/images/bootstrap-graph.eps
|
ps-local: doc/images/bootstrap-graph.eps
|
||||||
|
|
Loading…
Reference in a new issue