]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commit
Makefile: fix install_udev target by s/TARGETS/MAKECMDGOALS/
authorFlorian Schmaus <flo@geekplace.eu>
Thu, 20 Oct 2022 08:48:54 +0000 (10:48 +0200)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Thu, 20 Oct 2022 09:19:56 +0000 (11:19 +0200)
commitef1896d7769ba9c745247d239b3828189276750a
tree9e55cc2bb0ac5f4099fde71444d710ed751f723d
parent4653ea6c5d8bf98bd8e2f34fe8a225f6abdbd3a5
Makefile: fix install_udev target by s/TARGETS/MAKECMDGOALS/

A Gentoo user reported [1] that the 'install_udev' target would
install a systemd-flavored udev rules, despite the 'systemd' target
not being selected. Replacing 'TARGETS' with 'MAKECMDGOALS' in the
Makefile rule fixes this .

I am not sure where the TARGETS variable origniates from, but GNU make
uses MAKECMDGOALS (FreeBSD make uses .TARGETS, i.e., with a leading
dot). So if further portability between make variants is required,
then this needs to be adjusted.

1: https://bugs.gentoo.org/803545#c3
Fixes: ae1f18a06039 ("udev rule: Dynamically call either systemd or autorandr directly depending on whether systemd unit is available")
Makefile