From 1235a3d4c89f9759e5d23b4447c9b23f78829597 Mon Sep 17 00:00:00 2001 From: Sebastian Hiebl Date: Mon, 4 Jul 2022 19:00:31 +0200 Subject: [PATCH] add autorandr-lid-listener.service to install target in Makefile --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e50dfb3..f51aa0f 100644 --- a/Makefile +++ b/Makefile @@ -83,18 +83,21 @@ install_systemd: $(if $(SYSTEMD_UNIT_DIR),,$(error SYSTEMD_UNIT_DIR is not defined)) mkdir -p ${DESTDIR}/${SYSTEMD_UNIT_DIR} install -m 644 contrib/systemd/autorandr.service ${DESTDIR}/${SYSTEMD_UNIT_DIR}/autorandr.service + install -m 644 contrib/systemd/autorandr-lid-listener.service ${DESTDIR}/${SYSTEMD_UNIT_DIR}/autorandr-lid-listener.service ifneq ($(PREFIX),/usr/) sed -i -re 's#/usr/bin/autorandr#$(subst #,\#,${PREFIX})/bin/autorandr#g' ${DESTDIR}/${SYSTEMD_UNIT_DIR}/autorandr.service endif @echo - @echo "To activate the systemd unit, run this command as root:" + @echo "To activate the systemd units, run this command as root:" @echo " systemctl daemon-reload" @echo " systemctl enable autorandr.service" + @echo " systemctl enable autorandr-lid-listener.service" @echo uninstall_systemd: $(if $(SYSTEMD_UNIT_DIR),,$(error SYSTEMD_UNIT_DIR is not defined)) rm -f ${DESTDIR}/${SYSTEMD_UNIT_DIR}/autorandr.service + rm -f ${DESTDIR}/${SYSTEMD_UNIT_DIR}/autorandr-lid-listener.service # Rules for pmutils PM_SLEEPHOOKS_DIR:=$(shell pkg-config --variable=pm_sleephooks pm-utils 2>/dev/null) -- 2.39.2