From 92cd4da359ac94948a48aa4b7d8d187436bf22d2 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 30 Oct 2024 21:39:43 -0300 Subject: [PATCH] Makefile: hardcode systemd unit installation path The path can't be relative to PREFIX, because of systemd. Sources: - https://github.com/systemd/systemd/issues/19414 - https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1db4749..8072010 100644 --- a/Makefile +++ b/Makefile @@ -12,8 +12,9 @@ PREFIX ?= /usr/local BINDIR ?= $(PREFIX)/bin MANDIR ?= $(PREFIX)/share/man MAN1DIR ?= $(MANDIR)/man1 -SYSCONFDIR ?= $(PREFIX)/etc -SYSTEMDUNITDIR ?= $(SYSCONFDIR)/systemd/system +# Systemd hardcodes its unit path list +SYSCONFDIR ?= /etc +SYSTEMDUNITDIR ?= /etc/systemd/system PANDOC := $(shell command -v pandoc 2> /dev/null) .PHONY: all clean install uninstall format test