summaryrefslogtreecommitdiffstats
path: root/doc/man/meson.build
blob: 4a389bcbddbf0c3a235c9abb226bb94648227215 (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
man1_dir = join_paths(session_mandir, 'man1')

xsltproc_cmd = [
  xsltproc,
  '--output', '@OUTPUT@',
  '--nonet',
  '--stringparam', 'man.output.quietly', '1',
  '--stringparam', 'funcsynopsis.style', 'ansi',
  '--stringparam', 'man.th.extra1.suppress', '1',
  '--stringparam', 'man.authors.section.enabled', '0',
  '--stringparam', 'man.copyright.section.enabled', '0',
  'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl',
  '@INPUT@'
]

mans = ['gnome-session-inhibit']

if enable_session_selector
  mans += 'gnome-session-selector'
endif

foreach man: mans
  output = man + '.1'

  custom_target(
    output,
    input: man + '.xml',
    output: output,
    command: xsltproc_cmd,
    install: true,
    install_dir: man1_dir
  )
endforeach

man_data = files(
  'gnome-session.1',
  'gnome-session-quit.1'
)

install_data(
  man_data,
  install_dir: man1_dir
)