From fe7d004ee50892d15f5384fbeaa85c65b4f73866 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 30 Mar 2021 18:31:25 -0400 Subject: [PATCH] meson: Install documentation when requested Signed-off-by: Matt Turner --- meson.build | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index 531e8ab..698d4c2 100644 --- a/meson.build +++ b/meson.build @@ -225,9 +225,7 @@ if dep_check.found() endif doxygen = find_program('doxygen', required: get_option('documentation')) -if doxygen.found() - doxygen = find_program('doxygen') - +if doxygen.found() and get_option('documentation').enabled() src_doxygen = files( # source files join_paths(dir_src, 'libevdev.h'), @@ -263,11 +261,13 @@ if doxygen.found() doxyfile = configure_file(input: 'doc/libevdev.doxygen.in', output: 'libevdev.doxygen', configuration: doc_config) + docdir = join_paths(get_option('datadir'), 'doc', meson.project_name()) custom_target('doxygen', input: [doxyfiles, doxyfile] + src_doxygen, - output: ['.'], + output: 'html', command: [doxygen, doxyfile], - install: false, + install: true, + install_dir: docdir, build_by_default: true) endif -- GitLab