build: simplify Makefile paths

This commit is contained in:
Simon Ser 2020-09-10 23:17:52 +02:00
parent 2fdea9d4ed
commit 51785ebdf0
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 6 additions and 6 deletions

View File

@ -6,8 +6,8 @@ RM = rm
SCDOC = scdoc SCDOC = scdoc
GOFLAGS = GOFLAGS =
PREFIX = /usr/local PREFIX = /usr/local
BINDIR = bin BINDIR = $(PREFIX)/bin
MANDIR = share/man MANDIR = $(PREFIX)/share/man
all: tlstunnel tlstunnel.1 all: tlstunnel tlstunnel.1
@ -19,7 +19,7 @@ tlstunnel.1: tlstunnel.1.scd
clean: clean:
$(RM) -rf tlstunnel doc/tlstunnel.1 $(RM) -rf tlstunnel doc/tlstunnel.1
install: all install: all
mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR) mkdir -p $(DESTDIR)$(BINDIR)
mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1 mkdir -p $(DESTDIR)$(MANDIR)/man1
cp -f tlstunnel $(DESTDIR)$(PREFIX)/$(BINDIR) cp -f tlstunnel $(DESTDIR)$(BINDIR)
cp -f tlstunnel.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1 cp -f tlstunnel.1 $(DESTDIR)$(MANDIR)/man1