From 77f9ad2df151a13d86415cd7585e032537246a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Sun, 26 Jul 2026 00:09:30 +0200 Subject: [PATCH] build: Make sync-udev-hwdb dependent on hwdb list re-generation --- libfprint/meson.build | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/libfprint/meson.build b/libfprint/meson.build index e771bc6d..f11533ca 100644 --- a/libfprint/meson.build +++ b/libfprint/meson.build @@ -301,7 +301,8 @@ libfprint_private_dep = declare_dependency( ] ) -udev_hwdb_list_file = files('fprint-list-udev-hwdb.c') +udev_hwdb_list = 'fprint-list-udev-hwdb.c' +udev_hwdb_list_file = files(udev_hwdb_list) udev_hwdb = executable('fprint-list-udev-hwdb', udev_hwdb_list_file, dependencies: libfprint_private_dep, @@ -354,8 +355,13 @@ if install_udev_rules ) endif +udev_hwdb_list_updater = custom_target('udev-hwdb-list-updater', + output: udev_hwdb_list, + command: [ sync_unsupported_files, udev_hwdb_list_file ], +) + run_target('sync-udev-hwdb', - depends: udev_hwdb_generator, + depends: udev_hwdb_list_updater, command: [ 'cp', '-v', udev_hwdb_generator.full_path(), @@ -363,9 +369,7 @@ run_target('sync-udev-hwdb', ] ) -run_target('sync-unsupported-devices', - command: [ sync_unsupported_files, udev_hwdb_list_file ] -) +alias_target('sync-unsupported-devices', udev_hwdb_list_updater) supported_devices = executable('fprint-list-supported-devices', 'fprint-list-supported-devices.c',