Revert "Revert "Revert "Only build manual pages in maintainer mode"""

This reverts commit 970c59ed.

this has been discussed on irc.

I agree that not rebuilding man pages when they are already there makes
sense.

But not building man pages when we could, does not make any sense to me.
And enforcing maintainer mode to build from git does not seem to make
any sense to me either.
parent 970c59ed
......@@ -37,7 +37,6 @@ CC="$PTHREAD_CC"
AC_PROG_INSTALL
AM_COND_IF([MAINTAINER_MODE], [dnl
AC_ARG_WITH([rst2man],
AS_HELP_STRING([--with-rst2man=PATH], [Location of rst2man (auto)]),
[RST2MAN="$withval"],
......@@ -48,7 +47,6 @@ if test "x$RST2MAN" = "xno"; then
AC_MSG_ERROR(
[rst2man is needed to build Varnish, please install python3-docutils.])
fi
])dnl AM_COND_IF MAINTAINER_MODE
AC_ARG_WITH([sphinx-build],
AS_HELP_STRING([--with-sphinx-build=PATH], [Location of sphinx-build (auto)]),
......
......@@ -24,9 +24,8 @@ dist_man_MANS = \
vmod_unix.3 \
vmod_proxy.3
MAINTAINERCLEANFILES = $(dist_man_MANS)
CLEANFILES = $(dist_man_MANS)
if MAINTAINER_MODE
RST2ANY_FLAGS = --halt=2
BUILD_MAN = $(AM_V_GEN) $(RST2MAN) $(RST2ANY_FLAGS)
......@@ -121,4 +120,3 @@ vmod_proxy.3: $(top_builddir)/lib/libvmod_proxy/vmod_proxy.man.rst
$(BUILD_MAN) $? $@
.NOPATH: $(dist_man_MANS)
endif # MAINTAINER_MODE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment