From 9d6d2b767f08feabaa8cec2c928a6cf6ede21af8 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Thu, 4 Feb 2016 11:53:41 +0200 Subject: [PATCH] Properly install the man page when using a custom prefix --- src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 0239b23f4..900dfb360 100644 --- a/src/Makefile +++ b/src/Makefile @@ -38,7 +38,7 @@ NCURSESW_INCLUDE ?= /usr/include/ncursesw bindir := $(DESTDIR)$(PREFIX)/bin sharedir := $(DESTDIR)$(PREFIX)/share/kak docdir := $(DESTDIR)$(PREFIX)/share/doc/kak -mandir := $(DESTDIR)$(PREFIX)/man/man1 +mandir := $(DESTDIR)$(PREFIX)/share/man/man1 os := $(shell uname) @@ -112,6 +112,7 @@ install: kak man doc mkdir -p $(sharedir)/colors install -m 0644 ../colors/* $(sharedir)/colors mkdir -p $(docdir)/manpages + mkdir -p $(mandir) install -m 0644 ../README.asciidoc $(docdir) install -m 0644 ../doc/manpages/*.gz $(docdir)/manpages install -m 0644 ../doc/kakoune.1.gz $(mandir)