[master] 1e2d4aa basic build infrastructure for graphviz output

Nils Goroll nils.goroll at uplex.de
Tue Oct 7 15:09:31 CEST 2014


commit 1e2d4aab8064ee08e4d1a0a730a14be995ea57d4
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Oct 6 17:56:29 2014 +0200

    basic build infrastructure for graphviz output

diff --git a/.gitignore b/.gitignore
index 460e76a..516380e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -98,6 +98,8 @@ cscope.*out
 /doc/sphinx/build/
 /doc/sphinx/conf.py
 /doc/sphinx/include/vcl_var.rst
+# graphviz-generated
+/doc/graphviz/*.pdf
 
 # NetBeans insists on this
 /nbproject/private/
diff --git a/configure.ac b/configure.ac
index 7195207..0691424 100644
--- a/configure.ac
+++ b/configure.ac
@@ -648,6 +648,7 @@ AC_CONFIG_FILES([
     bin/varnishtest/Makefile
     bin/varnishncsa/Makefile
     doc/Makefile
+    doc/graphviz/Makefile
     doc/sphinx/Makefile
     doc/sphinx/conf.py
     etc/Makefile
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 5da0749..927b54a 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -14,4 +14,4 @@ else
 	@false
 endif
 
-SUBDIRS = sphinx
+SUBDIRS = sphinx graphviz
diff --git a/doc/graphviz/Makefile.am b/doc/graphviz/Makefile.am
new file mode 100644
index 0000000..8d2ca8f
--- /dev/null
+++ b/doc/graphviz/Makefile.am
@@ -0,0 +1,24 @@
+# Makefile for graphviz outputs
+#
+
+# You can set these variables from the command line.
+# this is a4, letter is 8.5,11
+SIZE	      = 8.4,11.7
+
+if HAVE_DOT
+if HAVE_PS2PDF
+
+PDFS = \
+	cache_http1_fsm.pdf \
+	cache_req_fsm.pdf
+
+pdf: $(PDFS)
+
+endif
+endif
+
+%.ps: %.dot
+	@DOT@ -Tps -Gsize=$(SIZE) $< >$@
+
+%.pdf: %.ps
+	@PS2PDF@ $<



More information about the varnish-commit mailing list