Makefile: fix install path for udev rules
`pkg-config --variable=udevdir udev` returns the root folder for udev.
This commit is contained in:
parent
729e8caf52
commit
33df4b3935
2
Makefile
2
Makefile
|
@ -86,7 +86,7 @@ uninstall_systemd:
|
||||||
rm -f ${DESTDIR}/${SYSTEMD_UNIT_DIR}/autorandr-resume.service
|
rm -f ${DESTDIR}/${SYSTEMD_UNIT_DIR}/autorandr-resume.service
|
||||||
|
|
||||||
# Rules for udev
|
# Rules for udev
|
||||||
UDEV_RULES_DIR:=$(shell pkg-config --variable=udevdir udev 2>/dev/null)
|
UDEV_RULES_DIR:=$(shell pkg-config --variable=udevdir udev 2>/dev/null)/rules.d
|
||||||
ifneq (,$(UDEV_RULES_DIR),y)
|
ifneq (,$(UDEV_RULES_DIR),y)
|
||||||
DEFAULT_TARGETS+=udev
|
DEFAULT_TARGETS+=udev
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue