]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: rename conflicting target names
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 3 Mar 2023 05:54:21 +0000 (14:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 3 Mar 2023 10:56:38 +0000 (19:56 +0900)
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

index b7725ce5f0ecd3344a47d444280fd7d063ddd5c5..23819d03f5ab56e91364e00884bc5c29104150df 100644 (file)
@@ -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),