From f2e702d4dc22a04e6b660c63e77c93f269fb3818 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Mon, 30 Aug 2021 13:11:42 +0200 Subject: build: Support building upower with meson --- doc/man/meson.build | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/man/meson.build (limited to 'doc/man') diff --git a/doc/man/meson.build b/doc/man/meson.build new file mode 100644 index 0000000..bd1408d --- /dev/null +++ b/doc/man/meson.build @@ -0,0 +1,18 @@ + +man_pages = [ + [ 'upower', 1 ], + [ 'upowerd', 8 ], + [ 'UPower', 7 ], +] + +foreach man: man_pages + custom_target( + '@0@.@1@'.format(man[0], man[1]), + input: files(join_paths(man[0] + '.xml')), + output: '@0@.@1@'.format(man[0], man[1]), + command: [xsltproc, '--output', '@OUTPUT@', '-nonet', 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl', '@INPUT@'], + build_by_default: get_option('man'), + install: get_option('man'), + install_dir: get_option('prefix') / get_option('mandir') / 'man@0@'.format(man[1]), + ) +endforeach -- cgit v1.2.1