From 0cec35a2f80fe10c34b04dc0853471cc3da6aec3 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 6 Feb 2023 15:23:14 +0100 Subject: [PATCH] build: add RUNDIR variable --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index eae3fb1..2861e16 100644 --- a/Makefile +++ b/Makefile @@ -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