X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Makefile;h=8eb12e6c93fbdb77780d2545abcd584ebb6f54fb;hb=dcb1e65fd14e96c32d9fc1bc2e1ab0c0f8efd220;hp=122c2f79b807591cb6866ca491602a4866acc686;hpb=0e7fb8b21d6cf02a78b2ea48467ce02cd4badfb7;p=deb_pkgs%2Fautorandr.git diff --git a/Makefile b/Makefile index 122c2f7..8eb12e6 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 /proc/1/cmdline && echo "y") +HAVE_SYSTEMD=$(shell grep -q systemd $$(readlink -f $$(awk '{print $$1}' /proc/1/cmdline)) && echo "y") ifeq ($(HAVE_SYSTEMD),y) DEFAULT_TARGETS+=systemd endif