build: add RUNDIR variable
This commit is contained in:
parent
c0b03b943f
commit
0cec35a2f8
7
Makefile
7
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user