summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2018-12-18 09:23:50 +0100
committerIñigo Martínez <inigomartinez@gmail.com>2019-01-21 21:18:06 +0100
commit1f007245368921fb7374eb762c3325a0595faaa2 (patch)
tree1b29c957282b536ca2de73d51c75ef2a3871d68f /man
parent8b7864294a2bb2360cc82c90c2d8a77f4e85ee27 (diff)
downloadgvfs-1f007245368921fb7374eb762c3325a0595faaa2.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.build30
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',
-)