From d2ec38e2b2d7baa374ffbd0f81f1183e78ce1ca6 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 3 Mar 2023 14:54:21 +0900 Subject: [PATCH] meson: rename conflicting target names The update-man-rules and update-dbus-docs targets are both declared in the main meson.build and man/meson.build, so we cannot build the target with 'meson compile' command: ==== $ meson compile update-man-rules INFO: autodetecting backend as ninja ERROR: Can't invoke target `update-man-rules`: ambiguous name.Add target type and/or path: - ./man/update-man-rules:custom - ./update-man-rules:run ==== Let's rename the targets declared in man/meson.build. --- man/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man/meson.build b/man/meson.build index b7725ce5f0..23819d03f5 100644 --- a/man/meson.build +++ b/man/meson.build @@ -218,7 +218,7 @@ configure_file( ############################################################ update_dbus_docs = custom_target( - 'update-dbus-docs', + 'update-dbus-docs-impl', output : 'update-dbus-docs', command : [update_dbus_docs_py, '--build-dir', project_build_root, '@INPUT@'], input : dbus_docs) @@ -232,7 +232,7 @@ if conf.get('BUILD_MODE_DEVELOPER') == 1 endif update_man_rules = custom_target( - 'update-man-rules', + 'update-man-rules-impl', output : 'update-man-rules', command : [update_man_rules_py, '@0@/man/*.xml'.format(project_source_root), -- 2.25.1