build: simplify Makefile paths
This commit is contained in:
parent
2fdea9d4ed
commit
51785ebdf0
12
Makefile
12
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue