~emersion/tlstunnel

748c966d44ec9ccc0eecd8f09c4bb46145858e95 — Simon Ser 8 months ago 5d42297
Add Makefile
2 files changed, 27 insertions(+), 0 deletions(-)

A .gitignore
A Makefile
A .gitignore => .gitignore +2 -0
@@ 0,0 1,2 @@
/tlstunnel
/tlstunnel.1

A Makefile => Makefile +25 -0
@@ 0,0 1,25 @@
.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) .
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