Debian Codegraph @

doc/meson.build

raw
1 # SPDX-License-Identifier: LGPL-2.1+
2
3 if want_mans
4 PAGES = [
5 ['lxc', '7'],
6 ['lxc.conf', '5'],
7 ['lxc.container.conf', '5'],
8 ['lxc.system.conf', '5'],
9 ['lxc-update-config', '1'],
10 ['lxc-usernet', '5'],
11 ['lxc-user-nic', '1'],
12 ['lxc-usernsexec', '1'],
13 ]
14
15 if want_tools
16 PAGES += [
17 ['lxc-attach', '1'],
18 ['lxc-autostart', '1'],
19 ['lxc-cgroup', '1'],
20 ['lxc-checkconfig', '1'],
21 ['lxc-checkpoint', '1'],
22 ['lxc-config', '1'],
23 ['lxc-console', '1'],
24 ['lxc-copy', '1'],
25 ['lxc-create', '1'],
26 ['lxc-destroy', '1'],
27 ['lxc-device', '1'],
28 ['lxc-execute', '1'],
29 ['lxc-freeze', '1'],
30 ['lxc-info', '1'],
31 ['lxc-ls', '1'],
32 ['lxc-monitor', '1'],
33 ['lxc-snapshot', '1'],
34 ['lxc-start', '1'],
35 ['lxc-stop', '1'],
36 ['lxc-top', '1'],
37 ['lxc-unfreeze', '1'],
38 ['lxc-unshare', '1'],
39 ['lxc-wait', '1'],
40 ]
41 endif
42
43 if want_pam_cgroup
44 PAGES += [
45 ['pam_cgfs', '8'],
46 ]
47 endif
48
49 # Common files.
50 configure_file(
51 configuration: docconf,
52 input: 'common_options.sgml.in',
53 output: 'common_options.sgml')
54
55 configure_file(
56 configuration: docconf,
57 input: 'see_also.sgml.in',
58 output: 'see_also.sgml')
59
60 # Initial templating.
61 foreach page : PAGES
62 sgml = configure_file(
63 configuration: docconf,
64 input: page[0] + '.sgml.in',
65 output: page[0] + '.sgml')
66
67 configure_file(
68 input: sgml,
69 output: page[0] + '.' + page[1],
70 command: [sgml2man, '--encoding=UTF-8', page[0] + '.sgml'],
71 install: true,
72 install_dir: join_paths(mandir, 'man' + page[1]))
73 endforeach
74 endif
75
76 # API Docs (Doxygen)
77 if want_api_docs
78 doxygen = find_program('doxygen', required: true)
79
80 api_docs = custom_target(
81 'api-docs',
82 input: files('api/Doxyfile'),
83 output: 'api-docs.stamp',
84 command: [doxygen, '@INPUT@'],
85 build_by_default: true
86 )
87 endif