build: add RUNDIR variable

This commit is contained in:
Simon Ser 2023-02-06 15:23:14 +01:00
parent c0b03b943f
commit 0cec35a2f8

View File

@ -6,11 +6,14 @@ PREFIX ?= /usr/local
BINDIR ?= bin
MANDIR ?= share/man
SYSCONFDIR ?= /etc
RUNDIR ?= /run
sharedstatedir := /var/lib
config_path := $(DESTDIR)$(SYSCONFDIR)/soju/config
goflags := $(GOFLAGS) \
-ldflags="-X 'git.sr.ht/~emersion/soju/config.DefaultPath=$(config_path)'"
admin_socket_path := $(RUNDIR)/soju/admin
goflags := $(GOFLAGS) -ldflags=" \
-X 'git.sr.ht/~emersion/soju/config.DefaultPath=$(config_path)' \
-X 'git.sr.ht/~emersion/soju.DefaultUnixAdminPath=$(admin_socket_path)'"
all: soju sojudb sojuctl doc/soju.1