X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Makefile;fp=Makefile;h=30419ac3d7a2c763f5302ba468dc65919f24a2a9;hb=6cd92b657027423721a29dfe0c7080483cdfc81e;hp=42ee710fcd5c04f0b4fa57dc98df0abf14a5eb25;hpb=582290b6d53679ece8653f976b4daf1c709b757b;p=deb_pkgs%2Fautorandr.git diff --git a/Makefile b/Makefile index 42ee710..30419ac 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