The manpage listing needs to be inside the conditional.
EXTRA_DIST += \
version.xml.in
-man_MANS = \
+man_MANS =
+
+if ENABLE_MAN
+
+man_MANS += \
gio-querymodules.1 \
glib-compile-schemas.1 \
glib-compile-resources.1 \
gdbus.1 \
gdbus-codegen.1
-if ENABLE_MAN
-
XSLTPROC_FLAGS = \
--nonet \
--stringparam man.output.quietly 1 \
########################################################################
-man_MANS = \
+man_MANS =
+
+if ENABLE_MAN
+
+man_MANS += \
glib-gettextize.1 \
gtester.1 \
gtester-report.1
-if ENABLE_MAN
-
XSLTPROC_FLAGS = \
--nonet \
--stringparam man.output.quietly 1 \
########################################################################
-man_MANS = \
+man_MANS =
+
+if ENABLE_MAN
+
+man_MANS += \
glib-mkenums.1 \
glib-genmarshal.1 \
gobject-query.1
-if ENABLE_MAN
XSLTPROC_FLAGS = \
--nonet \