Raw
1 custom_target(
2 input: 'git-contacts',
3 output: 'git-contacts',
4 command: generate_perl_command,
5 depends: [git_version_file],
6 install: true,
7 install_dir: get_option('libexecdir') / 'git-core',
8 )
9
10 if get_option('docs').contains('man')
11 contacts_xml = custom_target(
12 command: asciidoc_common_options + [
13 '--backend=' + asciidoc_docbook,
14 '--doctype=manpage',
15 '--out-file=@OUTPUT@',
16 '@INPUT@',
17 ],
18 depends: documentation_deps,
19 input: 'git-contacts.adoc',
20 output: 'git-contacts.xml',
21 )
22
23 doc_targets += custom_target(
24 command: [
25 xmlto,
26 '-m', '@INPUT@',
27 'man',
28 contacts_xml,
29 '-o',
30 meson.current_build_dir(),
31 ] + xmlto_extra,
32 input: [
33 '../../Documentation/manpage-normal.xsl',
34 ],
35 output: 'git-contacts.1',
36 install: true,
37 install_dir: get_option('mandir') / 'man1',
38 )
39 endif
40
41 if get_option('docs').contains('html')
42 doc_targets += custom_target(
43 command: asciidoc_common_options + [
44 '--backend=' + asciidoc_html,
45 '--doctype=manpage',
46 '--out-file=@OUTPUT@',
47 '@INPUT@',
48 ],
49 depends: documentation_deps,
50 input: 'git-contacts.adoc',
51 output: 'git-contacts.html',
52 install: true,
53 install_dir: htmldir,
54 )
55 endif