aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-10-15 12:27:55 +0200
committerThomas Voss <mail@thomasvoss.com> 2022-10-15 12:27:55 +0200
commit129fddd44da838e8c60cc798ebc121d6d3c72d57 (patch)
treeb4968fe792a25f7379f3655ac66da98f69eb7a77 /Makefile
parent106b303b1f76b8b92c89fb4f54c1f97ddbac5d2c (diff)
Use the MANDIR variable
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files 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