[4.0] b5929ad Move doc generation into doc/sphinx and man

Tollef Fog Heen tfheen at err.no
Thu Mar 13 10:24:23 CET 2014


commit b5929ad76db05b36876c91f990e2d043106c72b4
Author: Tollef Fog Heen <tfheen at fastly.com>
Date:   Wed Feb 5 15:34:25 2014 +0100

    Move doc generation into doc/sphinx and man

diff --git a/.gitignore b/.gitignore
index 78cdba5..35dfbe7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -76,32 +76,19 @@ cscope.*out
 
 # Man-files and binaries
 /man/vsc2rst
-/man/vcl.7
-/man/vsl.7
-/man/vsl-query.7
-/man/varnish-cli.7
-/man/varnish-counters.7
+/man/*.7
+/man/*.1
+/doc/sphinx/include
 /bin/varnish*/varnish*_opt2rst
 /bin/varnishadm/varnishadm
-/bin/varnishadm/varnishadm.1
 /bin/varnishd/varnishd
-/bin/varnishd/varnishd.1
 /bin/varnishhist/varnishhist
-/bin/varnishhist/varnishhist.1
 /bin/varnishlog/varnishlog
-/bin/varnishlog/varnishlog.1
-/bin/varnishlog/varnishlog_*.rst
 /bin/varnishncsa/varnishncsa
-/bin/varnishncsa/varnishncsa.1
-/bin/varnishncsa/varnishncsa_*.rst
 /bin/varnishreplay/varnishreplay
-/bin/varnishreplay/varnishreplay.1
 /bin/varnishstat/varnishstat
-/bin/varnishstat/varnishstat.1
 /bin/varnishtest/varnishtest
-/bin/varnishtest/varnishtest.1
 /bin/varnishtop/varnishtop
-/bin/varnishtop/varnishtop.1
 
 # Doc-stuff generated from xml
 /doc/*.html
diff --git a/Makefile.am b/Makefile.am
index 2aa609f..389be99 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,8 +1,6 @@
 ACLOCAL_AMFLAGS = -I m4
 
-SUBDIRS = include lib bin etc doc man
-
-SUBDIRS += redhat
+SUBDIRS = include lib bin etc doc redhat
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = varnishapi.pc
@@ -22,6 +20,16 @@ DISTCHECK_CONFIGURE_FLAGS = \
 install-data-local:
 	$(install_sh) -d -m 0755 $(DESTDIR)$(localstatedir)/varnish
 
+if HAVE_RST2MAN
+SUBDIRS += man
+else
+dist-hook:
+	@echo "========================================"
+	@echo "You need rst2man installed to make dist"
+	@echo "========================================"
+	@false
+endif
+
 distcheck-hook:
 	V="@PACKAGE_VERSION@" ; \
 	V="$${V%%-*}" ; \
diff --git a/bin/varnishadm/Makefile.am b/bin/varnishadm/Makefile.am
index 8fb28d7..f3050eb 100644
--- a/bin/varnishadm/Makefile.am
+++ b/bin/varnishadm/Makefile.am
@@ -4,8 +4,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/include
 
 bin_PROGRAMS = varnishadm
 
-dist_man_MANS = varnishadm.1
-
 varnishadm_SOURCES = \
 	varnishadm.c \
 	$(top_builddir)/lib/libvarnish/vas.c \
@@ -19,13 +17,3 @@ varnishadm_LDADD = \
 	$(top_builddir)/lib/libvarnishapi/libvarnishapi.la \
 	$(top_builddir)/lib/libvarnishcompat/libvarnishcompat.la \
 	${PTHREAD_LIBS} ${RT_LIBS} ${NET_LIBS} @LIBEDIT_LIBS@ ${LIBM}
-
-varnishadm.1: $(top_srcdir)/doc/sphinx/reference/varnishadm.rst
-if HAVE_RST2MAN
-	${RST2MAN} $? $@
-else
-	@echo "========================================"
-	@echo "You need rst2man installed to make dist"
-	@echo "========================================"
-	@false
-endif
diff --git a/bin/varnishhist/Makefile.am b/bin/varnishhist/Makefile.am
index 5423155..9511a6e 100644
--- a/bin/varnishhist/Makefile.am
+++ b/bin/varnishhist/Makefile.am
@@ -4,8 +4,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/include
 
 bin_PROGRAMS = varnishhist
 
-dist_man_MANS = varnishhist.1
-
 varnishhist_SOURCES = varnishhist.c \
 	$(top_builddir)/lib/libvarnish/vas.c \
 	$(top_builddir)/lib/libvarnish/version.c
@@ -15,13 +13,3 @@ varnishhist_LDADD = \
 	$(top_builddir)/lib/libvarnishapi/libvarnishapi.la \
 	-lm \
 	@CURSES_LIB@ ${RT_LIBS} ${PTHREAD_LIBS}
-
-varnishhist.1: $(top_srcdir)/doc/sphinx/reference/varnishhist.rst
-if HAVE_RST2MAN
-	${RST2MAN} $? $@
-else
-	@echo "========================================"
-	@echo "You need rst2man installed to make dist"
-	@echo "========================================"
-	@false
-endif
diff --git a/bin/varnishlog/Makefile.am b/bin/varnishlog/Makefile.am
index a757b61..1e6fa79 100644
--- a/bin/varnishlog/Makefile.am
+++ b/bin/varnishlog/Makefile.am
@@ -4,8 +4,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/include
 
 bin_PROGRAMS = varnishlog
 
-dist_man_MANS = varnishlog.1
-
 varnishlog_SOURCES = \
 	varnishlog.c \
 	varnishlog_options.h \
@@ -28,29 +26,3 @@ varnishlog_opt2rst_SOURCES = \
 	varnishlog_options.h \
 	varnishlog_options.c \
 	$(top_srcdir)/lib/libvarnishtools/opt2rst.c
-
-BUILT_SOURCES = varnishlog_options.rst varnishlog_synopsis.rst
-EXTRA_DIST = $(BUILT_SOURCES)
-MAINTAINERCLEANFILES = $(EXTRA_DIST)
-
-varnishlog_options.rst:
-	./varnishlog_opt2rst options > $@
-varnishlog_synopsis.rst:
-	./varnishlog_opt2rst synopsis > $@
-
-if HAVE_RST2MAN
-varnishlog_options.rst varnishlog_synopsis.rst: varnishlog_opt2rst
-endif
-
-varnishlog.1: \
-	$(top_srcdir)/doc/sphinx/reference/varnishlog.rst \
-	varnishlog_options.rst \
-	varnishlog_synopsis.rst
-if HAVE_RST2MAN
-	${RST2MAN} $(top_srcdir)/doc/sphinx/reference/varnishlog.rst $@
-else
-	@echo "========================================"
-	@echo "You need rst2man installed to make dist"
-	@echo "========================================"
-	@false
-endif
diff --git a/bin/varnishncsa/Makefile.am b/bin/varnishncsa/Makefile.am
index 6f3a7f9..12a3f4d 100644
--- a/bin/varnishncsa/Makefile.am
+++ b/bin/varnishncsa/Makefile.am
@@ -4,8 +4,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/include
 
 bin_PROGRAMS = varnishncsa
 
-dist_man_MANS = varnishncsa.1
-
 varnishncsa_SOURCES = \
 	varnishncsa.c \
 	varnishncsa_options.h \
@@ -30,29 +28,3 @@ varnishncsa_opt2rst_SOURCES = \
 	varnishncsa_options.h \
 	varnishncsa_options.c \
 	$(top_srcdir)/lib/libvarnishtools/opt2rst.c
-
-BUILT_SOURCES = varnishncsa_options.rst varnishncsa_synopsis.rst
-EXTRA_DIST = $(BUILT_SOURCES)
-MAINTAINERCLEANFILES = $(EXTRA_DIST)
-
-varnishncsa_options.rst:
-	./varnishncsa_opt2rst options > $@
-varnishncsa_synopsis.rst:
-	./varnishncsa_opt2rst synopsis > $@
-
-if HAVE_RST2MAN
-varnishncsa_options.rst varnishncsa_synopsis.rst: varnishncsa_opt2rst
-endif
-
-varnishncsa.1: \
-	$(top_srcdir)/doc/sphinx/reference/varnishncsa.rst \
-	varnishncsa_options.rst \
-	varnishncsa_synopsis.rst
-if HAVE_RST2MAN
-	${RST2MAN} $(top_srcdir)/doc/sphinx/reference/varnishncsa.rst $@
-else
-	@echo "========================================"
-	@echo "You need rst2man installed to make dist"
-	@echo "========================================"
-	@false
-endif
diff --git a/bin/varnishreplay/Makefile.am b/bin/varnishreplay/Makefile.am
index 59c6a0d..72a293d 100644
--- a/bin/varnishreplay/Makefile.am
+++ b/bin/varnishreplay/Makefile.am
@@ -4,8 +4,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/include
 
 bin_PROGRAMS = varnishreplay
 
-dist_man_MANS = varnishreplay.1
-
 varnishreplay_SOURCES = \
 	varnishreplay.c \
 	$(top_builddir)/lib/libvarnish/vas.c \
@@ -16,13 +14,3 @@ varnishreplay_LDADD = \
 	$(top_builddir)/lib/libvarnishcompat/libvarnishcompat.la \
 	$(top_builddir)/lib/libvarnishapi/libvarnishapi.la \
 	${RT_LIBS} ${PTHREAD_LIBS} ${NET_LIBS} ${LIBM}
-
-varnishreplay.1: $(top_srcdir)/doc/sphinx/reference/varnishreplay.rst
-if HAVE_RST2MAN
-	${RST2MAN} $? $@
-else
-	@echo "========================================"
-	@echo "You need rst2man installed to make dist"
-	@echo "========================================"
-	@false
-endif
diff --git a/bin/varnishstat/Makefile.am b/bin/varnishstat/Makefile.am
index d22edac..fe17250 100644
--- a/bin/varnishstat/Makefile.am
+++ b/bin/varnishstat/Makefile.am
@@ -4,8 +4,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/include
 
 bin_PROGRAMS = varnishstat
 
-dist_man_MANS = varnishstat.1
-
 varnishstat_SOURCES = \
 	varnishstat.h \
 	\
@@ -19,13 +17,3 @@ varnishstat_LDADD = \
 	$(top_builddir)/lib/libvarnishcompat/libvarnishcompat.la \
 	$(top_builddir)/lib/libvarnishapi/libvarnishapi.la \
 	@CURSES_LIB@ ${RT_LIBS} ${LIBM} ${PTHREAD_LIBS}
-
-varnishstat.1: $(top_srcdir)/doc/sphinx/reference/varnishstat.rst
-if HAVE_RST2MAN
-	${RST2MAN} $? $@
-else
-	@echo "========================================"
-	@echo "You need rst2man installed to make dist"
-	@echo "========================================"
-	@false
-endif
diff --git a/bin/varnishtest/Makefile.am b/bin/varnishtest/Makefile.am
index b51d822..5af8068 100644
--- a/bin/varnishtest/Makefile.am
+++ b/bin/varnishtest/Makefile.am
@@ -19,8 +19,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/lib/libvgz
 
 bin_PROGRAMS =	varnishtest
 
-dist_man_MANS = varnishtest.1
-
 varnishtest_SOURCES = \
 		vtc.c \
 		vtc.h \
@@ -47,13 +45,3 @@ varnishtest_CFLAGS = \
 
 EXTRA_DIST = $(top_srcdir)/bin/varnishtest/tests/*.vtc \
 	$(top_srcdir)/bin/varnishtest/tests/README
-
-varnishtest.1: $(top_srcdir)/doc/sphinx/reference/varnishtest.rst
-if HAVE_RST2MAN
-	${RST2MAN} $? $@
-else
-	@echo "========================================"
-	@echo "You need rst2man installed to make dist"
-	@echo "========================================"
-	@false
-endif
diff --git a/bin/varnishtop/Makefile.am b/bin/varnishtop/Makefile.am
index a38e293..b919dba 100644
--- a/bin/varnishtop/Makefile.am
+++ b/bin/varnishtop/Makefile.am
@@ -4,8 +4,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/include
 
 bin_PROGRAMS = varnishtop
 
-dist_man_MANS = varnishtop.1
-
 varnishtop_SOURCES = varnishtop.c \
 	varnishtop_options.h \
 	varnishtop_options.c \
@@ -28,29 +26,3 @@ varnishtop_opt2rst_SOURCES = \
 	varnishtop_options.h \
 	varnishtop_options.c \
 	$(top_srcdir)/lib/libvarnishtools/opt2rst.c
-
-BUILT_SOURCES = varnishtop_options.rst varnishtop_synopsis.rst
-EXTRA_DIST = $(BUILT_SOURCES)
-MAINTAINERCLEANFILES = $(EXTRA_DIST)
-
-varnishtop_options.rst:
-	./varnishtop_opt2rst options > $@
-varnishtop_synopsis.rst:
-	./varnishtop_opt2rst synopsis > $@
-
-if HAVE_RST2MAN
-varnishtop_options.rst varnishtop_synopsis.rst: varnishtop_opt2rst
-endif
-
-varnishtop.1: \
-	$(top_srcdir)/doc/sphinx/reference/varnishtop.rst \
-	varnishtop_options.rst \
-	varnishtop_synopsis.rst
-if HAVE_RST2MAN
-	${RST2MAN} $(top_srcdir)/doc/sphinx/reference/varnishtop.rst $@
-else
-	@echo "========================================"
-	@echo "You need rst2man installed to make dist"
-	@echo "========================================"
-	@false
-endif
diff --git a/configure.ac b/configure.ac
index 38634b9..f25b2cf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -554,6 +554,9 @@ fi
 VTC_TESTS="$(cd $srcdir/bin/varnishtest && echo tests/*.vtc)"
 AC_SUBST(VTC_TESTS)
 
+# Make sure this include dir exists
+AC_CONFIG_COMMANDS([mkdir], [$MKDIR_P doc/sphinx/include])
+
 # Generate output
 AC_CONFIG_FILES([
     Makefile
diff --git a/doc/sphinx/Makefile.am b/doc/sphinx/Makefile.am
index df3d3c4..7940d07 100644
--- a/doc/sphinx/Makefile.am
+++ b/doc/sphinx/Makefile.am
@@ -30,7 +30,7 @@ help:
 clean:
 	-rm -rf $(BUILDDIR)/*
 
-html: reference/params.rst
+html:
 	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
 	@echo
 	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
@@ -112,7 +112,6 @@ EXTRA_DIST = \
 	phk/vcl_expr.rst \
 	phk/wanton_destruction.rst \
 	reference/index.rst \
-	reference/params.rst \
 	reference/varnishadm.rst \
 	reference/varnish-cli.rst \
 	reference/varnishd.rst \
@@ -168,7 +167,6 @@ EXTRA_DIST = \
 	users-guide/vcl-variables.rst \
 	users-guide/websockets.rst
 
-
 dist-hook:
 	$(MAKE) html
 	cp -r $(BUILDDIR) $(distdir)
@@ -176,8 +174,30 @@ dist-hook:
 distclean-local:
 	rm -rf $(BUILDDIR)
 
-reference/params.rst: $(top_builddir)/bin/varnishd/varnishd
-	mkdir -p reference
-	$(top_builddir)/bin/varnishd/varnishd -x dumprstparam > reference/params.rst
-
-BUILT_SOURCES = reference/params.rst
+include/params.rst: $(top_builddir)/bin/varnishd/varnishd
+	$(top_builddir)/bin/varnishd/varnishd -x dumprstparam > include/params.rst
+BUILT_SOURCES = include/params.rst
+
+include/varnishncsa_options.rst: $(top_builddir)/bin/varnishncsa/varnishncsa_opt2rst
+	$(top_builddir)/bin/varnishncsa/varnishncsa_opt2rst options > $@
+include/varnishncsa_synopsis.rst: $(top_builddir)/bin/varnishncsa/varnishncsa_opt2rst
+	$(top_builddir)/bin/varnishncsa/varnishncsa_opt2rst synopsis > $@
+BUILT_SOURCES += include/varnishncsa_options.rst \
+	include/varnishncsa_synopsis.rst
+
+include/varnishlog_options.rst: $(top_builddir)/bin/varnishlog/varnishlog_opt2rst
+	$(top_builddir)/bin/varnishlog/varnishlog_opt2rst options > $@
+include/varnishlog_synopsis.rst: $(top_builddir)/bin/varnishlog/varnishlog_opt2rst
+	$(top_builddir)/bin/varnishlog/varnishlog_opt2rst synopsis > $@
+BUILT_SOURCES += include/varnishlog_options.rst \
+	include/varnishlog_synopsis.rst
+
+include/varnishtop_options.rst: $(top_builddir)/bin/varnishtop/varnishtop_opt2rst
+	$(top_builddir)/bin/varnishtop/varnishtop_opt2rst options > $@
+include/varnishtop_synopsis.rst: $(top_builddir)/bin/varnishtop/varnishtop_opt2rst
+	$(top_builddir)/bin/varnishtop/varnishtop_opt2rst synopsis > $@
+BUILT_SOURCES += include/varnishtop_options.rst \
+	 include/varnishtop_synopsis.rst
+
+EXTRA_DIST += $(BUILT_SOURCES)
+MAINTAINERCLEANFILES = $(EXTRA_DIST)
diff --git a/doc/sphinx/reference/varnishd.rst b/doc/sphinx/reference/varnishd.rst
index 48fd44c..f5599c5 100644
--- a/doc/sphinx/reference/varnishd.rst
+++ b/doc/sphinx/reference/varnishd.rst
@@ -230,7 +230,7 @@ workspace_client (=16k), thread_pool_workspace (=16k), http_resp_size
 thread_pool_stack (=64k) are reduced relative to the values listed
 here, in order to conserve VM space.
 
-.. include:: params.rst
+.. include:: ../include/params.rst
 
 SEE ALSO
 ========
diff --git a/doc/sphinx/reference/varnishlog.rst b/doc/sphinx/reference/varnishlog.rst
index 9d93fe1..60ebc57 100644
--- a/doc/sphinx/reference/varnishlog.rst
+++ b/doc/sphinx/reference/varnishlog.rst
@@ -19,7 +19,7 @@ Display Varnish logs
 SYNOPSIS
 ========
 
-.. include:: ../../../bin/varnishlog/varnishlog_synopsis.rst
+.. include:: ../include/varnishlog_synopsis.rst
 varnishlog |synopsis| <query expression>
 
 OPTIONS
@@ -27,7 +27,7 @@ OPTIONS
 
 The following options are available:
 
-.. include:: ../../../bin/varnishlog/varnishlog_options.rst
+.. include:: ../include/varnishlog_options.rst
 
 -k num
 
diff --git a/doc/sphinx/reference/varnishncsa.rst b/doc/sphinx/reference/varnishncsa.rst
index 50dcfe6..8189696 100644
--- a/doc/sphinx/reference/varnishncsa.rst
+++ b/doc/sphinx/reference/varnishncsa.rst
@@ -16,7 +16,7 @@ Display Varnish logs in Apache / NCSA combined log format
 SYNOPSIS
 ========
 
-.. include:: ../../../bin/varnishncsa/varnishncsa_synopsis.rst
+.. include:: ../include/varnishncsa_synopsis.rst
 varnishncsa |synopsis|
 
 DESCRIPTION
@@ -33,7 +33,7 @@ applicable transactions. Non-request transactions are ignored.
 
 The following options are available:
 
-.. include:: ../../../bin/varnishncsa/varnishncsa_options.rst
+.. include:: ../include/varnishncsa_options.rst
 
 FORMAT
 ======
diff --git a/doc/sphinx/reference/varnishtop.rst b/doc/sphinx/reference/varnishtop.rst
index 23298d5..7ebc384 100644
--- a/doc/sphinx/reference/varnishtop.rst
+++ b/doc/sphinx/reference/varnishtop.rst
@@ -17,7 +17,7 @@ Varnish log entry ranking
 SYNOPSIS
 ========
 
-.. include:: ../../../bin/varnishtop/varnishtop_synopsis.rst
+.. include:: ../include/varnishtop_synopsis.rst
 varnishtop |synopsis|
 
 DESCRIPTION
@@ -32,7 +32,7 @@ recorded in the log.
 
 The following options are available:
 
-.. include:: ../../../bin/varnishtop/varnishtop_options.rst
+.. include:: ../include/varnishtop_options.rst
 
 EXAMPLES
 ========
diff --git a/man/Makefile.am b/man/Makefile.am
index 7d0b1f6..2b26b0b 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -8,68 +8,59 @@ vsc2rst_SOURCES = vsc2rst.c \
 
 AM_CPPFLAGS = -I$(top_srcdir)/include
 
-dist_man_MANS = vcl.7 varnish-cli.7 varnish-counters.7 vsl.7 vsl-query.7 varnishd.1
+dist_man_MANS = vcl.7 \
+	varnish-cli.7 \
+	varnish-counters.7 \
+	vsl.7 \
+	vsl-query.7 \
+	varnishadm.1 \
+	varnishd.1 \
+	varnishlog.1 \
+	varnishncsa.1 \
+	varnishreplay.1 \
+	varnishstat.1 \
+	varnishtest.1 \
+	varnishtop.1
+
 MAINTAINERCLEANFILES = $(dist_man_MANS)
 
 vcl.7: $(top_srcdir)/doc/sphinx/reference/vcl.rst \
 	$(top_srcdir)/bin/varnishd/builtin.vcl
-if HAVE_RST2MAN
 	${RST2MAN} $(top_srcdir)/doc/sphinx/reference/vcl.rst $@
-else
-	@echo "========================================"
-	@echo "You need rst2man installed to make dist"
-	@echo "========================================"
-	@false
-endif
 
 varnish-cli.7: $(top_srcdir)/doc/sphinx/reference/varnish-cli.rst
-if HAVE_RST2MAN
 	${RST2MAN} $(top_srcdir)/doc/sphinx/reference/varnish-cli.rst $@
-else
-	@echo "========================================"
-	@echo "You need rst2man installed to make dist"
-	@echo "========================================"
-	@false
-endif
 
-if HAVE_RST2MAN
 varnish-counters.7: vsc2rst
 	./vsc2rst | ${RST2MAN} - $@
-else
-varnish-counters.7: $(top_srcdir)/include/tbl/vsc_fields.h
-	@echo "========================================"
-	@echo "You need rst2man installed to make dist"
-	@echo "========================================"
-	@false
-endif
 
 vsl.7: $(top_srcdir)/doc/sphinx/reference/vsl.rst \
 	$(top_srcdir)/lib/libvarnishapi/vsl-tags.rst
-if HAVE_RST2MAN
 	${RST2MAN} $(top_srcdir)/doc/sphinx/reference/vsl.rst $@
-else
-	@echo "========================================"
-	@echo "You need rst2man installed to make dist"
-	@echo "========================================"
-	@false
-endif
 
 vsl-query.7: $(top_srcdir)/doc/sphinx/reference/vsl-query.rst
-if HAVE_RST2MAN
 	${RST2MAN} $(top_srcdir)/doc/sphinx/reference/vsl-query.rst $@
-else
-	@echo "========================================"
-	@echo "You need rst2man installed to make dist"
-	@echo "========================================"
-	@false
-endif
 
-varnishd.1: $(top_srcdir)/doc/sphinx/reference/varnishd.rst
-if HAVE_RST2MAN
-	${RST2MAN} $^ $@
-else
-	@echo "========================================"
-	@echo "You need rst2man installed to make dist"
-	@echo "========================================"
-	@false
-endif
+%.7: $(top_srcdir)/doc/sphinx/reference/%.rst
+	${RST2MAN} $(top_srcdir)/doc/sphinx/reference/vsl-query.rst $@
+
+%.1: $(top_srcdir)/doc/sphinx/reference/%.rst
+	${RST2MAN} $< $@
+
+varnishncsa.1: \
+	$(top_srcdir)/doc/sphinx/reference/varnishncsa.rst \
+	$(top_srcdir)/doc/sphinx/include/varnishncsa_options.rst \
+	$(top_srcdir)/doc/sphinx/include/varnishncsa_synopsis.rst
+	${RST2MAN} $(top_srcdir)/doc/sphinx/reference/varnishncsa.rst $@
+
+varnishlog.1: \
+	$(top_srcdir)/doc/sphinx/reference/varnishlog.rst \
+	$(top_srcdir)/doc/sphinx/include/varnishlog_options.rst \
+	$(top_srcdir)/doc/sphinx/include/varnishlog_synopsis.rst
+	${RST2MAN} $(top_srcdir)/doc/sphinx/reference/varnishlog.rst $@
+
+varnishtop.1: \
+	$(top_srcdir)/doc/sphinx/reference/varnishtop.rst \
+	$(top_srcdir)/doc/sphinx/include/varnishtop_options.rst \
+	$(top_srcdir)/doc/sphinx/include/varnishtop_synopsis.rst
+	${RST2MAN} $(top_srcdir)/doc/sphinx/reference/varnishtop.rst $@



More information about the varnish-commit mailing list