From 748c966d44ec9ccc0eecd8f09c4bb46145858e95 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 9 Sep 2020 15:13:57 +0200 Subject: [PATCH] Add Makefile --- .gitignore | 2 ++ Makefile | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f1b2343 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/tlstunnel +/tlstunnel.1 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..96a9129 --- /dev/null +++ b/Makefile @@ -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 + +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