From 66bb4d388d06a79aa67393a61f46c8ea8665463f Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 11 Dec 2018 20:09:51 +0200 Subject: Documentation: Set install_dir in custom_target() The custom_target() function accepts an install_dir parameter. Along with setting install to true, this can be used to replace the install_subdir() function. Signed-off-by: Laurent Pinchart --- Documentation/meson.build | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Documentation') diff --git a/Documentation/meson.build b/Documentation/meson.build index 578c1cae..49e6f374 100644 --- a/Documentation/meson.build +++ b/Documentation/meson.build @@ -14,8 +14,7 @@ if sphinx.found() command: [sphinx, '-W', '-b', 'html', meson.current_source_dir(), '@OUTPUT@'], input: docs_sources, output: 'html', - build_by_default: true) - - install_subdir(meson.current_build_dir() + '/html', - install_dir: 'share/doc/libcamera-@0@'.format(api_version)) + build_by_default: true, + install: true, + install_dir: 'share/doc/libcamera-@0@'.format(api_version)) endif -- cgit v1.2.1