From fd81395b6cb9e4771b3f17bda1b177ef4da0ec4b Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 27 Feb 2024 23:55:34 -0800 Subject: [PATCH] Always install systemd service if `SYSTEMD_SYSTEM_DIR` is set This makes it easier to build inside a chroot jail, for example. --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ef3debf..35b0c69 100644 --- a/Makefile +++ b/Makefile @@ -52,12 +52,10 @@ man: done install: - @if [ -e /run/systemd/system ] && [ -n '$(SYSTEMD_SYSTEM_DIR)' ]; then \ + @if [ -n '$(SYSTEMD_SYSTEM_DIR)' ]; then \ sed -e 's#@PREFIX@#$(PREFIX)#' keyd.service.in > keyd.service; \ mkdir -p '$(DESTDIR)$(SYSTEMD_SYSTEM_DIR)'; \ install -Dm644 keyd.service '$(DESTDIR)$(SYSTEMD_SYSTEM_DIR)/keyd.service'; \ - elif [ -n '$(SYSTEMD_SYSTEM_DIR)' ]; then \ - echo "NOTE: systemd not found, you will need to manually add keyd to your system's init process."; \ fi @if [ "$(VKBD)" = "usb-gadget" ]; then \