mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-09-10 13:00:08 +00:00
build: Make sync-udev-hwdb dependent on hwdb list re-generation
This commit is contained in:
@@ -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 = executable('fprint-list-udev-hwdb',
|
||||||
udev_hwdb_list_file,
|
udev_hwdb_list_file,
|
||||||
dependencies: libfprint_private_dep,
|
dependencies: libfprint_private_dep,
|
||||||
@@ -354,8 +355,13 @@ if install_udev_rules
|
|||||||
)
|
)
|
||||||
endif
|
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',
|
run_target('sync-udev-hwdb',
|
||||||
depends: udev_hwdb_generator,
|
depends: udev_hwdb_list_updater,
|
||||||
command: [
|
command: [
|
||||||
'cp', '-v',
|
'cp', '-v',
|
||||||
udev_hwdb_generator.full_path(),
|
udev_hwdb_generator.full_path(),
|
||||||
@@ -363,9 +369,7 @@ run_target('sync-udev-hwdb',
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
run_target('sync-unsupported-devices',
|
alias_target('sync-unsupported-devices', udev_hwdb_list_updater)
|
||||||
command: [ sync_unsupported_files, udev_hwdb_list_file ]
|
|
||||||
)
|
|
||||||
|
|
||||||
supported_devices = executable('fprint-list-supported-devices',
|
supported_devices = executable('fprint-list-supported-devices',
|
||||||
'fprint-list-supported-devices.c',
|
'fprint-list-supported-devices.c',
|
||||||
|
|||||||
Reference in New Issue
Block a user