[gvfs] build: Simplify man file building
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] build: Simplify man file building
- Date: Fri, 4 Jan 2019 15:52:30 +0000 (UTC)
commit 7aaada6e723122c705ac5a5dc638e18b8f8ddd36
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Tue Dec 18 09:23:50 2018 +0100
build: Simplify man file building
man file building has been simplified by taking advantage of meson
arrays and generators placeholders.
man/meson.build | 30 ++++++++----------------------
1 file 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',
-)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]