doc: add installable target for doxygen output

Signed-off-by: Julian Orth <ju.orth@gmail.com>
This commit is contained in:
Julian Orth 2026-02-02 12:41:27 +01:00
parent 2096ecf99f
commit 7f7e2d50f2

View file

@ -58,6 +58,8 @@ formats = {
},
}
html_targets = []
foreach f_name, sections: formats
foreach s_name, s_files: sections
t_name = '@0@-@1@-doc'.format(f_name, s_name)
@ -66,7 +68,7 @@ foreach f_name, sections: formats
# will complain if one is not set, so we use a
# dummy 'stamp' file
stamp = join_paths(meson.current_build_dir(), '@0@.stamp'.format(t_name))
custom_target(
html_targets += custom_target(
t_name,
command: [
gen_doxygen,
@ -85,6 +87,16 @@ foreach f_name, sections: formats
endforeach
endforeach
custom_target(
'html',
input: html_targets,
output: 'html',
command: 'true',
build_by_default: true,
install: true,
install_dir: publican_install_prefix,
)
man_files = shared_files + server_files + client_files + cursor_files
stamp = join_paths(meson.current_build_dir(), 'man3.stamp')
custom_target(