-
Notifications
You must be signed in to change notification settings - Fork 355
/
Copy pathmeson.build
60 lines (56 loc) · 1.19 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
man1 = get_option('mandir') / 'man1'
man5 = get_option('mandir') / 'man5'
pod2man_version_arg = '--release=@0@'.format(meson.project_version())
dunst1 = configure_file(
input: 'dunst.1.pod.in',
output: 'dunst.1.pod',
configuration: conf_data,
)
custom_target(
'dunst1_pod2man',
input: dunst1,
output: 'dunst.1',
command: [
pod2man,
'--name=dunst',
'--center=Dunst Reference',
'--section=1',
pod2man_version_arg,
'@INPUT@',
'@OUTPUT@',
],
install: true,
install_dir: man1,
)
custom_target(
'dunst5_pod2man',
input: 'dunst.5.pod',
output: 'dunst.5',
command: [
pod2man,
'--name=dunst',
'--center=Dunst Reference',
'--section=5',
pod2man_version_arg,
'@INPUT@',
'@OUTPUT@',
],
install: true,
install_dir: man5,
)
custom_target(
'dunstctl_pod2man',
input: 'dunstctl.pod',
output: 'dunstctl.1',
command: [
pod2man,
'--name=dunst',
'--center=dunstctl Reference',
'--section=1',
pod2man_version_arg,
'@INPUT@',
'@OUTPUT@',
],
install: true,
install_dir: man1,
)