commit 28b5f0d4d6fb63e711aa23f8438fc30abc3c42d2
parent 716ef5acfc0a217881bfd01a64f953fbe729a924
Author: Avindra Goolcharan <aavindraa@gmail.com>
Date: Mon, 11 Sep 2017 20:20:25 -0400
Makefile: use DESTDIR in MANDIR
without `DESTDIR`, the scripts generating the rpm file try to install to the root filesystem instead of the fake root.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -3,7 +3,7 @@ SRC = diary.c
PREFIX ?= /usr/local
BINDIR ?= $(DESTDIR)$(PREFIX)/bin
-MANDIR := $(PREFIX)/share/man
+MANDIR := $(DESTDIR)$(PREFIX)/share/man
MAN1 = diary.1
CC = gcc