libfuse / sshfs

A network filesystem client to connect to SSH servers
GNU General Public License v2.0
5.74k stars 488 forks source link

meson: allow explicitly disabling manpage generation #283

Open patrickdepinguin opened 2 years ago

patrickdepinguin commented 2 years ago

While manpage generation is optional depending on whether 'rst2man'/'rst2man.py' is found, a broken rst2man will still cause build breakage.

For a build system like Buildroot, where manpages are anyway not needed, it is preferred to be able to disable manpage generation altogether, to avoid any impact of a broken user environment.

Add an option of type 'feature' which can be disabled explicitly as follows: -Dbuild-manual=disabled

In that case, even if rst2man would be present, the manpage would still not be generated.

The 'feature' option type was added in meson 0.47, so bump the minimum meson version accordingly.

See https://mesonbuild.com/Build-options.html#features .

Signed-off-by: Thomas De Schampheleire thomas.de_schampheleire@nokia.com