Skip to content

Commit

Permalink
Always install systemd service if SYSTEMD_SYSTEM_DIR is set
Browse files Browse the repository at this point in the history
This makes it easier to build inside a chroot jail, for example.
  • Loading branch information
rhansen committed Sep 9, 2024
1 parent c85acd9 commit fd81395
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit fd81395

Please sign in to comment.