X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Makefile;h=a312da8fde60c30c0d4ef038af2e7900407d8591;hb=7f722b738c80ce38491a43bc8fb5e91bb586e005;hp=42ee710fcd5c04f0b4fa57dc98df0abf14a5eb25;hpb=2b3ac61cda7bea1269778c96246d6e66b9476010;p=deb_pkgs%2Fautorandr.git diff --git a/Makefile b/Makefile index 42ee710..a312da8 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ uninstall_pmutils: rm -f ${DESTDIR}/etc/pm/sleep.d/40autorandr # Rules for systemd -HAVE_SYSTEMD=$(shell grep -q systemd $$(readlink -f $$(awk '{print $$1}' /proc/1/cmdline)) && echo "y") +HAVE_SYSTEMD=$(shell grep -q systemd /proc/1/comm && echo "y") ifeq ($(HAVE_SYSTEMD),y) DEFAULT_TARGETS+=systemd endif @@ -62,7 +62,7 @@ ifeq ($(HAVE_UDEV),y) DEFAULT_TARGETS+=udev endif -install_udev: +install_udev: install_pmutils install -D -m 644 contrib/udev/40-monitor-hotplug.rules ${DESTDIR}/etc/udev/rules.d/40-monitor-hotplug.rules ifeq (${USER},root) udevadm control --reload-rules @@ -71,7 +71,7 @@ else @echo " udevadm control --reload-rules" endif -uninstall_udev: +uninstall_udev: uninstall_pmutils rm -f ${DESTDIR}/etc/udev/rules.d/40-monitor-hotplug.rules