Skip to content

Commit

Permalink
Makefile: hardcode systemd unit installation path
Browse files Browse the repository at this point in the history
The path can't be relative to PREFIX.
This is how things work with systemd...

Sources:
- systemd/systemd#19414
- https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html
  • Loading branch information
AndersonTorres committed Nov 1, 2024
1 parent 04e93de commit 0a07fc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/share/man
MAN1DIR ?= $(MANDIR)/man1
SYSCONFDIR ?= $(PREFIX)/etc
SYSTEMDUNITDIR ?= $(SYSCONFDIR)/systemd/system
# Systemd hardcodes its unit path list
SYSTEMDUNITDIR ?= /etc/systemd/system
PANDOC := $(shell command -v pandoc 2> /dev/null)

.PHONY: all clean install uninstall format test
Expand Down

0 comments on commit 0a07fc6

Please sign in to comment.