libfprint: Add top-level sync-udev-hwdb target for updating DB

This commit is contained in:
Marco Trevisan (Treviño)
2022-09-27 14:05:53 +02:00
parent ca481cce50
commit 70dc61d647
2 changed files with 4 additions and 2 deletions

View File

@@ -330,7 +330,7 @@ if install_udev_rules
) )
endif endif
custom_target('sync-udev-hwdb', sync_udev_udb = custom_target('sync-udev-hwdb',
depends: udev_hwdb_generator, depends: udev_hwdb_generator,
output: 'sync-udev-hwdb', output: 'sync-udev-hwdb',
install: false, install: false,
@@ -341,6 +341,8 @@ custom_target('sync-udev-hwdb',
] ]
) )
alias_target('sync-udev-hwdb', sync_udev_udb)
supported_devices = executable('fprint-list-supported-devices', supported_devices = executable('fprint-list-supported-devices',
'fprint-list-supported-devices.c', 'fprint-list-supported-devices.c',
dependencies: libfprint_private_dep, dependencies: libfprint_private_dep,

View File

@@ -24,7 +24,7 @@ fi
if ! diff -u "$MESON_SOURCE_ROOT/data/autosuspend.hwdb" "$generated_rules"; then if ! diff -u "$MESON_SOURCE_ROOT/data/autosuspend.hwdb" "$generated_rules"; then
echo "E: Autosuspend file needs to be re-generated!" echo "E: Autosuspend file needs to be re-generated!"
echo " ninja -C $MESON_BUILD_ROOT libfprint/sync-udev-hwdb" echo " ninja -C $MESON_BUILD_ROOT sync-udev-hwdb"
exit 1 exit 1
fi fi