Re: [PATCH 6/8] meson: allow not building and installing handbook

Martin Schanzenbach <[email protected]> Fri, 10 Oct 2025 12:03:52 +0200
Newsgroups gmane.network.gnunet.devel
Message-ID <[email protected]>
Hi,

this also needs a different fix I think.
The handbook info files should already be built.
makeinfo should be optional. If not, the fix may have to look
different.
What is the problem here?

BR

On Fri, 2025-10-10 at 02:13 +0100, Daniel Golle wrote:
> Introduce meson option exclude-handbook to not build and install the
> GNUnet handbook.
> ---
> =C2=A0doc/meson.build | 4 +++-
> =C2=A0meson.options=C2=A0=C2=A0 | 1 +
> =C2=A02 files changed, 4 insertions(+), 1 deletion(-)
>=20
> diff --git a/doc/meson.build b/doc/meson.build
> index 3b02eb6e3..65ca17f4e 100644
> --- a/doc/meson.build
> +++ b/doc/meson.build
> @@ -1,4 +1,6 @@
> -subdir('handbook')
> +if false =3D=3D get_option('exclude-handbook')
> +=C2=A0=C2=A0=C2=A0 subdir('handbook')
> +endif
> =C2=A0if false =3D=3D get_option('exclude-manpages')
> =C2=A0=C2=A0=C2=A0=C2=A0 subdir('man')
> =C2=A0endif
> diff --git a/meson.options b/meson.options
> index a48f936ac..af41279be 100644
> --- a/meson.options
> +++ b/meson.options
> @@ -2,6 +2,7 @@
> =C2=A0option('monolith', type : 'boolean', value : false, description:
> 'Build a single, monolithic libgnunet shlib')
> =C2=A0option('testbed', type : 'boolean', value : false, description:
> 'Build the testbed')
> =C2=A0option('exclude-manpages', type : 'boolean', value : false,
> description: 'Do not install manpages')
> +option('exclude-handbook', type : 'boolean', value : false,
> description: 'Do not install handbook')
> =C2=A0option('experimental', type : 'boolean', value : false, description=
:
> 'Build experimental components')
> =C2=A0option('malicious', type : 'boolean', value : false, description:
> 'Enable malicious code paths')
> =C2=A0option('benchmarks', type : 'boolean', value : false, description:
> 'Enable benchmarking')