build: add sharedstatedir variable
This commit is contained in:
parent
f57492af56
commit
c0b03b943f
9
Makefile
9
Makefile
@ -5,9 +5,10 @@ GOFLAGS ?=
|
|||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
BINDIR ?= bin
|
BINDIR ?= bin
|
||||||
MANDIR ?= share/man
|
MANDIR ?= share/man
|
||||||
SYSCONFDIR ?= etc
|
SYSCONFDIR ?= /etc
|
||||||
|
|
||||||
config_path := $(DESTDIR)/$(SYSCONFDIR)/soju/config
|
sharedstatedir := /var/lib
|
||||||
|
config_path := $(DESTDIR)$(SYSCONFDIR)/soju/config
|
||||||
goflags := $(GOFLAGS) \
|
goflags := $(GOFLAGS) \
|
||||||
-ldflags="-X 'git.sr.ht/~emersion/soju/config.DefaultPath=$(config_path)'"
|
-ldflags="-X 'git.sr.ht/~emersion/soju/config.DefaultPath=$(config_path)'"
|
||||||
|
|
||||||
@ -27,8 +28,8 @@ clean:
|
|||||||
install:
|
install:
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
|
mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
||||||
mkdir -p $(DESTDIR)/$(SYSCONFDIR)/soju
|
mkdir -p $(DESTDIR)$(SYSCONFDIR)/soju
|
||||||
mkdir -p $(DESTDIR)/var/lib/soju
|
mkdir -p $(DESTDIR)$(sharedstatedir)/soju
|
||||||
cp -f soju sojudb sojuctl $(DESTDIR)$(PREFIX)/$(BINDIR)
|
cp -f soju sojudb sojuctl $(DESTDIR)$(PREFIX)/$(BINDIR)
|
||||||
cp -f doc/soju.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
cp -f doc/soju.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
||||||
[ -f $(config_path) ] || cp -f config.in $(config_path)
|
[ -f $(config_path) ] || cp -f config.in $(config_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user