[PATCH] Makefile: add MANDIR variable

5 views
Skip to first unread message

Alyssa Ross

unread,
Jul 26, 2020, 1:35:30 AM7/26/20
to libhug...@googlegroups.com, Alyssa Ross
Otherwise, if I want to install all the man pages somewhere custom, I
have to set one variable for each section of the manual.

Signed-off-by: Alyssa Ross <h...@alyssa.is>
---
Makefile | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index d2f2ab6..97bf647 100644
--- a/Makefile
+++ b/Makefile
@@ -192,10 +192,11 @@ LDSCRIPTDIR = $(PREFIX)/share/libhugetlbfs/ldscripts
BINDIR = $(PREFIX)/share/libhugetlbfs
EXEDIR = $(PREFIX)/bin
DOCDIR = $(PREFIX)/share/doc/libhugetlbfs
-MANDIR1 = $(PREFIX)/share/man/man1
-MANDIR3 = $(PREFIX)/share/man/man3
-MANDIR7 = $(PREFIX)/share/man/man7
-MANDIR8 = $(PREFIX)/share/man/man8
+MANDIR = $(PREFIX)/share/man
+MANDIR1 = $(MANDIR)/man1
+MANDIR3 = $(MANDIR)/man3
+MANDIR7 = $(MANDIR)/man7
+MANDIR8 = $(MANDIR)/man8

ifdef LIB32
LIBPATHS += -DLIB32='"$(LIB32)"' -DLIBDIR32='"$(LIBDIR32)"'
--
2.27.0

Eric B Munson

unread,
Aug 10, 2020, 10:31:53 AM8/10/20
to Alyssa Ross, libhug...@googlegroups.com
On Sun, 26 Jul 2020, Alyssa Ross wrote:

> Otherwise, if I want to install all the man pages somewhere custom, I
> have to set one variable for each section of the manual.
>
> Signed-off-by: Alyssa Ross <h...@alyssa.is>

Applied, thanks.

Eric
signature.asc
Reply all
Reply to author
Forward
0 new messages