<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">diff --git a/bin/varnishhist/Makefile.am b/bin/varnishhist/Makefile.am<br>

index a24f29a..986966f 100644<br>
--- a/bin/varnishhist/Makefile.am<br>
+++ b/bin/varnishhist/Makefile.am<br>
@@ -19,3 +19,35 @@ varnishhist_LDADD = \<br>
        $(top_builddir)/lib/libvarnishapi/<a href="http://libvarnishapi.la" target="_blank">libvarnishapi.la</a> \<br>
        -lm \<br>
        @CURSES_LIB@ ${RT_LIBS} ${PTHREAD_LIBS}<br>
+<br>
+noinst_PROGRAMS = varnishhist_opt2rst<br>
+varnishhist_opt2rst_SOURCES = \<br>
+       varnishhist_options.h \<br>
+       varnishhist_options.c \<br>
+       $(top_srcdir)/lib/libvarnishtools/opt2rst.c<br>
+<br>
+BUILT_SOURCES = varnishhist_options.rst varnishhist_synopsis.rst<br>
+EXTRA_DIST = $(BUILT_SOURCES)<br>
+MAINTAINERCLEANFILES = $(EXTRA_DIST)<br>
+<br>
+varnishhist_options.rst:<br>
+       ./varnishhist_opt2rst options > $@<br>
+varnishhist_synopsis.rst:<br>
+       ./varnishhist_opt2rst synopsis > $@<br>
+<br>
+if HAVE_RST2MAN<br>
+varnishhist_options.rst varnishhist_synopsis.rst: varnishhist_opt2rst<br>
+endif<br>
+<br>
+varnishhist.1: \<br>
+       $(top_srcdir)/doc/sphinx/reference/varnishhist.rst \<br>
+       varnishhist_options.rst \<br>
+       varnishhist_synopsis.rst<br>
+if HAVE_RST2MAN<br>
+       ${RST2MAN} $(top_srcdir)/doc/sphinx/reference/varnishhist.rst $@<br>
+else<br>
+       @echo "========================================"<br>
+       @echo "You need rst2man installed to make dist"<br>
+       @echo "========================================"<br>
+       @false<br>
+endif<br>
</blockquote><div><br></div><div>This is different to how all the other docs are built now, I think it should be changed to be in line with how we do it now.</div><div><br></div><div>- Tollef</div></div></div></div>