mirror of
https://git.sr.ht/~emersion/tlstunnel
synced 2024-11-19 15:53:50 +01:00
Add Makefile
This commit is contained in:
parent
5d422977df
commit
748c966d44
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/tlstunnel
|
||||||
|
/tlstunnel.1
|
25
Makefile
Normal file
25
Makefile
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user