From: Phillip Berndt Date: Tue, 24 Nov 2015 18:10:24 +0000 (+0100) Subject: Only use name of executable in systemd detection (See #38) X-Git-Tag: 1.0~39 X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=commitdiff_plain;h=dcb1e65fd14e96c32d9fc1bc2e1ab0c0f8efd220 Only use name of executable in systemd detection (See #38) --- diff --git a/Makefile b/Makefile index a8ed793..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 $$(readlink -f $$(cat /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