diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-29 19:36:28 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-29 19:36:28 +0200 |
commit | eba7744c6cf0db8eed005bcde6185ad74c74fcc9 (patch) | |
tree | 8d0303f20cb0c64406b41cb705d71c6e4d8a735d | |
parent | d63b8d7dba0803ad7a8b53b93e604845420c0025 (diff) | |
download | gnunet-eba7744c6cf0db8eed005bcde6185ad74c74fcc9.tar.gz gnunet-eba7744c6cf0db8eed005bcde6185ad74c74fcc9.zip |
BUILD: towards better handbook integration
-rw-r--r-- | contrib/meson.build | 1 | ||||
-rw-r--r-- | doc/meson.build | 27 |
2 files changed, 23 insertions, 5 deletions
diff --git a/contrib/meson.build b/contrib/meson.build index 29caa54a7..ff8a0a989 100644 --- a/contrib/meson.build +++ b/contrib/meson.build | |||
@@ -2,6 +2,7 @@ subdir('conf') | |||
2 | subdir('hellos') | 2 | subdir('hellos') |
3 | subdir('scripts') | 3 | subdir('scripts') |
4 | 4 | ||
5 | |||
5 | install_data(['gns'/'def.tex', | 6 | install_data(['gns'/'def.tex', |
6 | 'gns'/'gns-bcd.html', | 7 | 'gns'/'gns-bcd.html', |
7 | 'gns'/'gns-bcd.tex', | 8 | 'gns'/'gns-bcd.tex', |
diff --git a/doc/meson.build b/doc/meson.build index a5c2d7729..6bbc2b43e 100644 --- a/doc/meson.build +++ b/doc/meson.build | |||
@@ -1,7 +1,24 @@ | |||
1 | fs = import('fs') | ||
1 | 2 | ||
2 | install_subdir('handbook/html', | 3 | if fs.exists('handbook'/'html') |
3 | install_dir: docdir, | 4 | install_subdir('handbook/html', |
4 | strip_directory: false) | 5 | install_dir: docdir, |
5 | install_data('handbook/texinfo/gnunet.texi', | 6 | strip_directory: false) |
6 | install_dir: get_option('infodir')) | 7 | else |
8 | sphinx = find_program('sphinx-build', native: true, required: true) | ||
9 | |||
10 | if sphinx.found() | ||
11 | sphinxhandbook = custom_target('handbook', | ||
12 | output: 'handbook', | ||
13 | command: [sphinx, | ||
14 | '-b', 'html', | ||
15 | #'-b', 'info', | ||
16 | meson.project_source_root()/'contrib'/'sphinx', '@OUTPUT@'/'html'], | ||
17 | install: true, | ||
18 | install_dir: docdir) | ||
19 | endif | ||
20 | endif | ||
21 | |||
22 | #install_data('handbook/texinfo/gnunet.texi', | ||
23 | # install_dir: get_option('infodir')) | ||
7 | subdir('man') | 24 | subdir('man') |