[master] 1346cd8 Build varnishhist documentation
Tollef Fog Heen
tfheen at fastly.com
Tue Feb 25 16:02:18 CET 2014
>
> diff --git a/bin/varnishhist/Makefile.am b/bin/varnishhist/Makefile.am
> index a24f29a..986966f 100644
> --- a/bin/varnishhist/Makefile.am
> +++ b/bin/varnishhist/Makefile.am
> @@ -19,3 +19,35 @@ varnishhist_LDADD = \
> $(top_builddir)/lib/libvarnishapi/libvarnishapi.la \
> -lm \
> @CURSES_LIB@ ${RT_LIBS} ${PTHREAD_LIBS}
> +
> +noinst_PROGRAMS = varnishhist_opt2rst
> +varnishhist_opt2rst_SOURCES = \
> + varnishhist_options.h \
> + varnishhist_options.c \
> + $(top_srcdir)/lib/libvarnishtools/opt2rst.c
> +
> +BUILT_SOURCES = varnishhist_options.rst varnishhist_synopsis.rst
> +EXTRA_DIST = $(BUILT_SOURCES)
> +MAINTAINERCLEANFILES = $(EXTRA_DIST)
> +
> +varnishhist_options.rst:
> + ./varnishhist_opt2rst options > $@
> +varnishhist_synopsis.rst:
> + ./varnishhist_opt2rst synopsis > $@
> +
> +if HAVE_RST2MAN
> +varnishhist_options.rst varnishhist_synopsis.rst: varnishhist_opt2rst
> +endif
> +
> +varnishhist.1: \
> + $(top_srcdir)/doc/sphinx/reference/varnishhist.rst \
> + varnishhist_options.rst \
> + varnishhist_synopsis.rst
> +if HAVE_RST2MAN
> + ${RST2MAN} $(top_srcdir)/doc/sphinx/reference/varnishhist.rst $@
> +else
> + @echo "========================================"
> + @echo "You need rst2man installed to make dist"
> + @echo "========================================"
> + @false
> +endif
>
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.
- Tollef
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-commit/attachments/20140225/9b279328/attachment.html>
More information about the varnish-commit
mailing list