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, because of systemd.

Sources:
- systemd/systemd#19414
- https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html
  • Loading branch information
AndersonTorres committed Nov 2, 2024
1 parent 04e93de commit 92cd4da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92cd4da

Please sign in to comment.