summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-08-29 21:57:09 +0200
committerLudovic Courtès <ludo@gnu.org>2013-08-29 21:58:53 +0200
commit54461ce7ebce234829786f5420aa780d54f135aa (patch)
treef62a0a8e0b8e0907ffeceddb99ae66f402d08501
parentcb9e50f618081275b50489943d5655abfb85c84d (diff)
downloadguix-54461ce7ebce234829786f5420aa780d54f135aa.tar.gz
build: Have `pdf' depend on the PDF image.
* doc.am (DOT_OPTIONS): Remove `-Tpng'.
  (.dot.pdf): New rule.
  (pdf-local): Depend on the .pdf.
-rw-r--r--doc.am10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc.am b/doc.am
index 2bc3416edd..226860b5a4 100644
--- a/doc.am
+++ b/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
 # in an Info or PDF document.
-DOT_OPTIONS =						\
-  -Tpng -Gratio=.9 -Gnodesep=.005 -Granksep=.00005	\
+DOT_OPTIONS =					\
+  -Gratio=.9 -Gnodesep=.005 -Granksep=.00005	\
   -Nfontsize=9 -Nheight=.1 -Nwidth=.1
 
 .dot.png:
 	$(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$@.tmp"
 	mv "$@.tmp" "$@"
 
+.dot.pdf:
+	$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$@.tmp"
+	mv "$@.tmp" "$@"
+
 .dot.eps:
 	$(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$@.tmp"
 	mv "$@.tmp" "$@"
@@ -43,6 +47,6 @@ DOT_OPTIONS =						\
 # We cannot add new dependencies to `doc/guix.pdf' & co. (info "(automake)
 # Extending").  Using the `-local' rules is imperfect, because they may be
 # 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
 ps-local: doc/images/bootstrap-graph.eps