mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-28 03:50:15 +01:00
udev requires callout binaries to sit in /lib/udev or otherwise provide an absolute path. The test suite should work without installing everything first, so create two rule files - one to install, one with the path to the $builddir/test Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
27 lines
784 B
Makefile
27 lines
784 B
Makefile
udevdir=$(UDEV_DIR)
|
|
udev_PROGRAMS = libinput-device-group
|
|
|
|
litest_rules = 80-libinput-device-groups-litest.rules \
|
|
90-libinput-model-quirks-litest.rules
|
|
udev_SCRIPTS = $(litest_rules)
|
|
|
|
libinput_device_group_SOURCES = libinput-device-group.c
|
|
libinput_device_group_CFLAGS = $(LIBUDEV_CFLAGS) $(GCC_CFLAGS)
|
|
libinput_device_group_LDADD = $(LIBUDEV_LIBS)
|
|
|
|
udev_rulesdir=$(UDEV_DIR)/rules.d
|
|
dist_udev_rules_DATA = \
|
|
80-libinput-device-groups.rules \
|
|
90-libinput-model-quirks.rules
|
|
|
|
udev_hwdbdir=$(UDEV_DIR)/hwdb.d
|
|
dist_udev_hwdb_DATA = \
|
|
90-libinput-model-quirks.hwdb
|
|
|
|
%-litest.rules: %.rules.in
|
|
$(SED) -e "s|\@UDEV_TEST_PATH\@|$(abs_builddir)/|" < $^ > $@
|
|
|
|
CLEANFILES = $(litest_rules)
|
|
DISTCLEANFILES = \
|
|
80-libinput-device-groups.rules \
|
|
90-libinput-model-quirks.rules
|