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
|
BINDIR ?= bin
|
||||||
MANDIR ?= share/man
|
MANDIR ?= share/man
|
||||||
SYSCONFDIR ?= /etc
|
SYSCONFDIR ?= /etc
|
||||||
|
RUNDIR ?= /run
|
||||||
|
|
||||||
sharedstatedir := /var/lib
|
sharedstatedir := /var/lib
|
||||||
config_path := $(DESTDIR)$(SYSCONFDIR)/soju/config
|
config_path := $(DESTDIR)$(SYSCONFDIR)/soju/config
|
||||||
goflags := $(GOFLAGS) \
|
admin_socket_path := $(RUNDIR)/soju/admin
|
||||||
-ldflags="-X 'git.sr.ht/~emersion/soju/config.DefaultPath=$(config_path)'"
|
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
|
all: soju sojudb sojuctl doc/soju.1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user