From 141d54aff9e0344446d472bd44e54ebdc7049e32 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 24 Dec 2023 20:47:46 -0500 Subject: [PATCH] meson: build and install the libpsl.3 manpage Followup to #168. Fixes #136 --- docs/libpsl/meson.build | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/libpsl/meson.build b/docs/libpsl/meson.build index f9250b0..11d9877 100644 --- a/docs/libpsl/meson.build +++ b/docs/libpsl/meson.build @@ -6,7 +6,7 @@ if get_option('docs') output : 'version.xml', configuration : cdata) - gnome.gtkdoc('libpsl', + docs = gnome.gtkdoc('libpsl', main_sgml: 'libpsl-docs.sgml', src_dir: [ 'src', @@ -17,4 +17,16 @@ if get_option('docs') '--ignore-decorators=G_GNUC_PSL_UNUSED', ], install: true) + + man = custom_target( + output: 'libpsl.3', + command: [ + 'xsltproc', '-nonet', + '--output', '@OUTPUT@', + 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl', + meson.current_build_dir() / 'xml/libpsl.xml', + ], + depends: docs, + install: true, + install_dir: get_option('mandir') / 'man3') endif