~emersion/tlstunnel

ref: e8f71081cbea3ed15c4084e92c0a0e6490623583 tlstunnel/Makefile -rw-r--r-- 713 bytes
e8f71081Simon Ser Add support for ALPN 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.POSIX:
.SUFFIXES:

GO = go
RM = rm
SCDOC = scdoc
GOFLAGS =
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man
SYSCONFDIR = /etc
SHAREDSTATEDIR = /var/lib

goflags = $(GOFLAGS) \
	-ldflags="-X 'main.configPath=$(SYSCONFDIR)/tlstunnel/config' \
		-X 'main.certDataPath=$(SHAREDSTATEDIR)/tlstunnel'"

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 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