diff options
author | Benjamin Berg <bberg@redhat.com> | 2021-08-30 13:11:42 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2021-09-02 17:47:30 +0200 |
commit | f2e702d4dc22a04e6b660c63e77c93f269fb3818 (patch) | |
tree | 94bf38696e2342c163ecf629fb68808cee483011 /doc/man | |
parent | 46ed29945125c241fe9a103e8b4f565472d453ef (diff) | |
download | upower-f2e702d4dc22a04e6b660c63e77c93f269fb3818.tar.gz |
build: Support building upower with meson
Diffstat (limited to 'doc/man')
-rw-r--r-- | doc/man/meson.build | 18 |
1 files changed, 18 insertions, 0 deletions
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 |