From 51785ebdf0f236ee7bf89371070d88c88b8ad04d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 10 Sep 2020 23:17:52 +0200 Subject: [PATCH] build: simplify Makefile paths --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 6665c5e..800b092 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,8 @@ RM = rm SCDOC = scdoc GOFLAGS = PREFIX = /usr/local -BINDIR = bin -MANDIR = share/man +BINDIR = $(PREFIX)/bin +MANDIR = $(PREFIX)/share/man all: tlstunnel tlstunnel.1 @@ -19,7 +19,7 @@ tlstunnel.1: tlstunnel.1.scd 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 + mkdir -p $(DESTDIR)$(BINDIR) + mkdir -p $(DESTDIR)$(MANDIR)/man1 + cp -f tlstunnel $(DESTDIR)$(BINDIR) + cp -f tlstunnel.1 $(DESTDIR)$(MANDIR)/man1