forked from gsliepen/tinc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
62 lines (53 loc) · 1.14 KB
/
meson.build
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
50
51
52
53
54
55
56
57
58
59
60
61
man_pages = [
'tinc-gui.8.in',
'tinc.8.in',
'tinc.conf.5.in',
'tincd.8.in',
]
info_pages = [
'tinc.texi',
]
info_includes = [
'tincinclude.texi.in',
]
man_conf = configuration_data()
man_conf.set_quoted('PACKAGE', meson.project_name())
man_conf.set_quoted('VERSION', meson.project_version())
man_conf.set_quoted('localstatedir', dir_local_state)
man_conf.set_quoted('runstatedir', dir_run_state)
man_conf.set_quoted('sysconfdir', dir_sysconf)
foreach man_src : man_pages
man = configure_file(
input: man_src,
output: '@BASENAME@',
configuration: man_conf,
)
install_man(man)
endforeach
prog_makeinfo = find_program('makeinfo', required: opt_docs)
if not prog_makeinfo.found()
subdir_done()
endif
foreach inc : info_includes
configure_file(
input: inc,
output: '@BASENAME@',
configuration: man_conf,
)
endforeach
info_cmd = [
prog_makeinfo,
'-P', '@BUILD_ROOT@/doc',
'@INPUT@',
'--output', '@OUTPUT@',
]
foreach page : info_pages
custom_target(
'info-page-' + page,
input: page,
output: '@[email protected]',
command: info_cmd,
install: true,
install_dir: dir_info,
)
endforeach