1
1
mirror of https://git.sr.ht/~emersion/tlstunnel synced 2024-09-21 20:51:42 +02:00
tlstunnel/Makefile
Simon Ser ec2a768909
Move executable to cmd/tlstunnel
This allows us to expose the toplevel tlstunnel package.
2020-09-10 14:49:59 +02:00

26 lines
505 B
Makefile

.POSIX:
.SUFFIXES:
GO = go
RM = rm
SCDOC = scdoc
GOFLAGS =
PREFIX = /usr/local
BINDIR = bin
MANDIR = share/man
all: tlstunnel tlstunnel.1
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)$(PREFIX)/$(BINDIR)
mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
cp -f tlstunnel $(DESTDIR)$(PREFIX)/$(BINDIR)
cp -f tlstunnel.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1