mirror of
https://git.sr.ht/~emersion/tlstunnel
synced 2024-11-19 15:53:50 +01:00
build: use SYSCONFDIR for default config path
This commit is contained in:
parent
51785ebdf0
commit
399cf88146
8
Makefile
8
Makefile
@ -8,18 +8,24 @@ GOFLAGS =
|
||||
PREFIX = /usr/local
|
||||
BINDIR = $(PREFIX)/bin
|
||||
MANDIR = $(PREFIX)/share/man
|
||||
SYSCONFDIR = /etc
|
||||
|
||||
goflags = $(GOFLAGS) \
|
||||
-ldflags="-X 'main.configPath=$(SYSCONFDIR)/tlstunnel/config'"
|
||||
|
||||
all: tlstunnel tlstunnel.1
|
||||
|
||||
tlstunnel:
|
||||
$(GO) build $(GOFLAGS) ./cmd/tlstunnel
|
||||
$(GO) build $(goflags) ./cmd/tlstunnel
|
||||
tlstunnel.1: tlstunnel.1.scd
|
||||
$(SCDOC) <tlstunnel.1.scd >tlstunnel.1
|
||||
|
||||
clean:
|
||||
$(RM) -rf tlstunnel doc/tlstunnel.1
|
||||
|
||||
install: all
|
||||
mkdir -p $(DESTDIR)$(BINDIR)
|
||||
mkdir -p $(DESTDIR)$(MANDIR)/man1
|
||||
mkdir -p $(DESTDIR)$(SYSCONFDIR)/tlstunnel
|
||||
cp -f tlstunnel $(DESTDIR)$(BINDIR)
|
||||
cp -f tlstunnel.1 $(DESTDIR)$(MANDIR)/man1
|
||||
|
Loading…
Reference in New Issue
Block a user