X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Makefile;fp=Makefile;h=a8ed7931d3d49f2c4d999083c615c14d3983180f;hb=48713bbae23554ea604f11a9a5bcf07888a7b08c;hp=122c2f79b807591cb6866ca491602a4866acc686;hpb=96231a60c0771d39b994d2d54f5b528aba0e7802;p=deb_pkgs%2Fautorandr.git diff --git a/Makefile b/Makefile index 122c2f7..a8ed793 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 $$(cat /proc/1/cmdline)) && echo "y") ifeq ($(HAVE_SYSTEMD),y) DEFAULT_TARGETS+=systemd endif