Skip to content

Commit d38e29b

Browse files
AndersonTorresrfjakob
authored andcommitted
Makefile: hardcode systemd unit installation path
The path can't be relative to PREFIX, because of systemd. Sources: - systemd/systemd#19414 - https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html
1 parent 04e93de commit d38e29b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ PREFIX ?= /usr/local
1212
BINDIR ?= $(PREFIX)/bin
1313
MANDIR ?= $(PREFIX)/share/man
1414
MAN1DIR ?= $(MANDIR)/man1
15-
SYSCONFDIR ?= $(PREFIX)/etc
16-
SYSTEMDUNITDIR ?= $(SYSCONFDIR)/systemd/system
15+
# Systemd hardcodes its unit path list
16+
SYSCONFDIR ?= /etc
17+
SYSTEMDUNITDIR ?= /etc/systemd/system
1718
PANDOC := $(shell command -v pandoc 2> /dev/null)
1819

1920
.PHONY: all clean install uninstall format test

0 commit comments

Comments
 (0)