From 129fddd44da838e8c60cc798ebc121d6d3c72d57 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 15 Oct 2022 12:27:55 +0200 Subject: Use the MANDIR variable --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 08d1dff..2992073 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,9 @@ .POSIX: -CFLAGS = -Ofast -march=native -mtune=native -pipe -Wall -Wextra -Werror -pedantic -PREFIX = /usr +CFLAGS = -Ofast -march=native -mtune=native -pipe -Wall -Wextra -Werror -pedantic +PREFIX = /usr DPREFIX = ${DESTDIR}${PREFIX} +MANDIR = ${DPREFIX}/share/man target = center @@ -13,6 +14,6 @@ clean: rm -f ${target} install: - mkdir -p ${DPREFIX}/bin ${DPREFIX}/share/man/man1 + mkdir -p ${DPREFIX}/bin ${MANDIR}/man1 cp ${target} ${DPREFIX}/bin - cp ${target}.1 ${DPREFIX}/share/man/man1 + cp ${target}.1 ${MANDIR}/man1 -- cgit v1.2.3