[master] b4be194 Process c files to retrieve the syntax doc

Guillaume Quintard guillaume at varnish-software.com
Mon Jun 6 11:01:08 CEST 2016


commit b4be194e0cdb58b9aa937052c230b2ffb48464a1
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date:   Mon May 30 17:23:31 2016 +0200

    Process c files to retrieve the syntax doc

diff --git a/doc/sphinx/Makefile.am b/doc/sphinx/Makefile.am
index 7a55e4b..2e11fa3 100644
--- a/doc/sphinx/Makefile.am
+++ b/doc/sphinx/Makefile.am
@@ -175,6 +175,11 @@ include/vsl-tags.rst: $(top_builddir)/lib/libvarnishapi/vsl2rst
 	$(top_builddir)/lib/libvarnishapi/vsl2rst > $@
 BUILT_SOURCES += include/vsl-tags.rst
 
+VTCSYN_SRC = $(top_srcdir)/bin/varnishtest/vtc.c
+include/vtc-syntax.rst: vtc-syntax.awk $(VTCSYN_SRC)
+	awk -f $(top_srcdir)/doc/sphinx/vtc-syntax.awk $(VTCSYN_SRC) > $@
+BUILT_SOURCES += include/vtc-syntax.rst
+
 .PHONY: reference
 reference:
 	test -d $@ || mkdir $@
diff --git a/man/Makefile.am b/man/Makefile.am
index f27934b..da9b405 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -67,7 +67,8 @@ varnishstat.1: $(top_srcdir)/doc/sphinx/reference/varnishstat.rst \
 varnishtest.1: $(top_srcdir)/doc/sphinx/reference/varnishtest.rst
 	${RST2MAN} $(RST2ANY_FLAGS) $(top_srcdir)/doc/sphinx/reference/varnishtest.rst $@
 
-vtc.7: $(top_srcdir)/doc/sphinx/reference/vtc.rst
+vtc.7: $(top_srcdir)/doc/sphinx/reference/vtc.rst \
+	$(top_srcdir)/doc/sphinx/include/vtc-syntax.rst
 	${RST2MAN} $(RST2ANY_FLAGS) $(top_srcdir)/doc/sphinx/reference/vtc.rst $@
 
 varnishtop.1: \



More information about the varnish-commit mailing list