1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
manpages = [
['tracker3-endpoint', 1, true],
['tracker3-export', 1, true],
['tracker3-import', 1, true],
['tracker3-sparql', 1, true],
['tracker3-sql', 1, true],
['tracker-xdg-portal-3', 1, false],
]
manpage_files = []
foreach m : manpages
name = m[0]
section = m[1]
documentation = m[2]
manpage = '@0@.@1@'.format(name, section)
if documentation
manpage_files += join_paths(meson.current_source_dir(), manpage + '.txt')
endif
custom_target(manpage,
command: [a2x,
'--attribute=author=The Tracker developers',
'--attribute=manversion=@0@'.format(meson.project_version()),
'--attribute=manmanual=Tracker manual',
'--doctype=manpage',
'--format=manpage',
'--no-xmllint',
'--xsltproc-opts=' + ' '.join([
'--stringparam', 'man.authors.section.enabled', '0',
]),
'-D', '@OUTDIR@',
'@INPUT@'],
input: manpage + '.txt',
output: manpage,
install: true,
install_dir: get_option('mandir') / 'man@0@'.format(section),
)
endforeach
|