diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2019-03-21 16:36:07 +0100 |
---|---|---|
committer | Iñigo Martínez <inigomartinez@gmail.com> | 2019-03-30 21:15:41 +0100 |
commit | 79bd7e5a84b01e4a50365deca3ef799acd8c998b (patch) | |
tree | 1b890c265f020a5a200a9ffc6f66c8efc3fd4218 /man | |
parent | 9b22a0251053b5869d6c2505aa9e9f34f16e0183 (diff) | |
download | glade-79bd7e5a84b01e4a50365deca3ef799acd8c998b.tar.gz |
build: Port to meson build system
meson is a build system focused on speed an ease of use, which
helps speeding up the software development.
meson build system has been added along with autotools.
Diffstat (limited to 'man')
-rw-r--r-- | man/meson.build | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/man/meson.build b/man/meson.build new file mode 100644 index 00000000..2345ea1f --- /dev/null +++ b/man/meson.build @@ -0,0 +1,33 @@ +xsltproc = find_program('xsltproc', required: false) +assert(xsltproc.found(), 'xsltproc is required for man pages generation') + +xsltproc_cmd = [ + xsltproc, + '--output', '@OUTPUT@', + '--nonet', + '--stringparam', 'man.output.quietly', '1', + '--stringparam', 'funcsynopsis.style', 'ansi', + '--stringparam', 'man.th.extra1.suppress', '1', + '--stringparam', 'man.authors.section.enabled', '0', + '--stringparam', 'man.copyright.section.enabled', '0', + 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl', + '@INPUT@', +] + +mans = [ + 'glade', + 'glade-previewer', +] + +foreach man: mans + output = man + '.1' + + custom_target( + output, + input: man + '.xml', + output: output, + command: xsltproc_cmd, + install: true, + install_dir: glade_mandir / 'man1', + ) +endforeach |