[master] a1a5122 fix out-of-tree make dist

Nils Goroll nils.goroll at uplex.de
Mon Oct 13 17:52:03 CEST 2014


commit a1a5122e5c2fbf6437e4c851da9dd58cf8416f65
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Oct 13 17:51:45 2014 +0200

    fix out-of-tree make dist

diff --git a/doc/graphviz/Makefile.am b/doc/graphviz/Makefile.am
index 3823fab..3f20340 100644
--- a/doc/graphviz/Makefile.am
+++ b/doc/graphviz/Makefile.am
@@ -1,5 +1,20 @@
 # Makefile for graphviz outputs
-#
+
+# for an out-of-tree build, sphinx needs the output in builddir
+# XXX is there a better way to do this?
+
+.PHONY: link_srcdir
+
+link_srcdir:
+	if test "x$(srcdir)" != "x$(builddir)" && \
+	   test ! -f cache_http1_fsm.svg ; then \
+		d=`pwd`/$(builddir) ; \
+		cd $(srcdir) && find . -name \*.svg -type f | \
+		cpio -ldmp $${d} ; \
+	fi
+
+dist-hook:
+	$(MAKE) html
 
 # You can set these variables from the command line.
 # this is a4, letter is 8.5,11
@@ -19,7 +34,7 @@ SVGS = \
 
 pdf: $(PDFS)
 
-html: $(SVGS)
+html: $(SVGS) link_srcdir
 
 endif
 



More information about the varnish-commit mailing list