Skip to content

Commit fd81395

Browse files
committed
Always install systemd service if SYSTEMD_SYSTEM_DIR is set
This makes it easier to build inside a chroot jail, for example.
1 parent c85acd9 commit fd81395

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,10 @@ man:
5252
done
5353
install:
5454

55-
@if [ -e /run/systemd/system ] && [ -n '$(SYSTEMD_SYSTEM_DIR)' ]; then \
55+
@if [ -n '$(SYSTEMD_SYSTEM_DIR)' ]; then \
5656
sed -e 's#@PREFIX@#$(PREFIX)#' keyd.service.in > keyd.service; \
5757
mkdir -p '$(DESTDIR)$(SYSTEMD_SYSTEM_DIR)'; \
5858
install -Dm644 keyd.service '$(DESTDIR)$(SYSTEMD_SYSTEM_DIR)/keyd.service'; \
59-
elif [ -n '$(SYSTEMD_SYSTEM_DIR)' ]; then \
60-
echo "NOTE: systemd not found, you will need to manually add keyd to your system's init process."; \
6159
fi
6260

6361
@if [ "$(VKBD)" = "usb-gadget" ]; then \

0 commit comments

Comments
 (0)