diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2018-12-18 09:23:50 +0100 |
---|---|---|
committer | Iñigo Martínez <inigomartinez@gmail.com> | 2019-01-04 16:33:53 +0100 |
commit | 7aaada6e723122c705ac5a5dc638e18b8f8ddd36 (patch) | |
tree | 430387beaafd4de9d4c5a5ebe39f935583335530 /man | |
parent | a644c8763e1ed8a97fb1115046903d0c2583b8d5 (diff) | |
download | gvfs-7aaada6e723122c705ac5a5dc638e18b8f8ddd36.tar.gz |
build: Simplify man file building
man file building has been simplified by taking advantage of meson
arrays and generators placeholders.
Diffstat (limited to 'man')
-rw-r--r-- | man/meson.build | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/man/meson.build b/man/meson.build index 063920a8..a333194a 100644 --- a/man/meson.build +++ b/man/meson.build @@ -15,33 +15,19 @@ xsltproc_cmd = [ ] mans = [ - 'gvfsd', - 'gvfsd-fuse', - 'gvfsd-metadata', + ['gvfs', '7'], + ['gvfsd', '1'], + ['gvfsd-fuse', '1'], + ['gvfsd-metadata', '1'], ] foreach man: mans - xml = man + '.xml' - output = man + '.1' - custom_target( - output, - input: xml, - output: output, + man[0] + man[1], + input: man[0] + '.xml', + output: '@BASENAME@.' + man[1], command: xsltproc_cmd, install: true, - install_dir: gvfs_mandir / 'man1', + install_dir: gvfs_mandir / ('man' + man[1]), ) endforeach - -man = 'gvfs' -output = man + '.7' - -custom_target( - output, - input: man + '.xml', - output: output, - command: xsltproc_cmd, - install: true, - install_dir: gvfs_mandir / 'man7', -) |