summaryrefslogtreecommitdiff
path: root/man/meson.build
blob: b9e3b9ed558025d240c3ea78bbaa02d2b0957bf7 (plain)
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
41
42
43
44
45
46
47
48
49
xsltproc = find_program('xsltproc')

stylesheet_url = 'http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl'
ret = run_command(xsltproc, '--nonet', stylesheet_url)
if ret.returncode() != 0
  error('Cannot build man pages without docbook-xsl-ns')
endif

xsltproc_args = [
  xsltproc,
  '--output', '@OUTPUT@',
  '--nonet',
  '--stringparam', 'man.authors.section.enabled', '0',
  '--stringparam', 'man.copyright.section.enabled', '0',
  '--stringparam', 'man.output.quietly', '1',
  '--stringparam', 'man.th.extra1.suppress', '1',
  '--stringparam', 'funcsynopsis.style', 'ansi',
  stylesheet_url,
  '@INPUT@',
]

custom_target('colormgr-man',
  input : 'colormgr.xml',
  output : '@BASENAME@.1',
  command : xsltproc_args,
  install : true,
  install_dir : join_paths(mandir, 'man1'),
)
custom_target('cd-create-profile-man',
  input : 'cd-create-profile.xml',
  output : '@BASENAME@.1',
  command : xsltproc_args,
  install : true,
  install_dir : join_paths(mandir, 'man1'),
)
custom_target('cd-fix-profile-man',
  input : 'cd-fix-profile.xml',
  output : '@BASENAME@.1',
  command : xsltproc_args,
  install : true,
  install_dir : join_paths(mandir, 'man1'),
)
custom_target('cd-it8-man',
  input : 'cd-it8.xml',
  output : '@BASENAME@.1',
  command : xsltproc_args,
  install : true,
  install_dir : join_paths(mandir, 'man1'),
)