From 4aa848d5d6b5d85aa02abcdd445770db801e0b0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Mon, 18 Jun 2018 13:06:37 +0100 Subject: [PATCH] Properly name the targets --- mesonbuild/modules/gnome.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 05108d00b..ef849cd86 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -957,8 +957,8 @@ This will become a hard error in the future.''') 'build_by_default': build_by_default } - base_custom_target = build.CustomTarget(output, state.subdir, state.subproject, custom_kwargs) - targets.append(base_custom_target) + cfile_custom_target = build.CustomTarget(output, state.subdir, state.subproject, custom_kwargs) + targets.append(cfile_custom_target) output = namebase + '.h' if mesonlib.version_compare(self._get_native_glib_version(state), '>= 2.56.2'): @@ -976,10 +976,11 @@ This will become a hard error in the future.''') 'build_by_default': build_by_default, 'install': install_header, 'install_dir': install_dir, - 'depends': base_custom_target + 'depends': cfile_custom_target } - targets.append(build.CustomTarget(output, state.subdir, state.subproject, custom_kwargs)) + hfile_custom_target = build.CustomTarget(output, state.subdir, state.subproject, custom_kwargs) + targets.append(hfile_custom_target) if 'docbook' in kwargs: docbook = kwargs['docbook'] @@ -1005,10 +1006,11 @@ This will become a hard error in the future.''') 'output': outputs, 'command': cmd, 'build_by_default': build_by_default, - 'depends': base_custom_target + 'depends': cfile_custom_target } - targets.append(build.CustomTarget(output, state.subdir, state.subproject, custom_kwargs)) + docbook_custom_target = build.CustomTarget(output, state.subdir, state.subproject, custom_kwargs) + targets.append(docbook_custom_target) return ModuleReturnValue(targets, targets)