summaryrefslogtreecommitdiff
path: root/system/radeontop/man.patch
blob: b9f26245a90ca9fa7d40a4158d3014ef25532aac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From dfbff6274ce25814a4357a8a788c404425cecb69 Mon Sep 17 00:00:00 2001
From: orbea <orbea@fredslev.dk>
Date: Sat, 1 Dec 2018 07:43:12 -0800
Subject: [PATCH] Makefile: Add MANDIR.

Not all Linux distros install manpages to $(PREFIX)/share/man.
For example Slackware installs manpages to /usr/man/.
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 6010bc9..4cb7093 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,7 @@
 PREFIX ?= /usr
 INSTALL ?= install
 LIBDIR ?= lib
+MANDIR ?= share/man
 
 nls ?= 1
 xcb ?= 1
@@ -103,7 +104,7 @@ install: all
 ifeq ($(xcb), 1)
 	$(INSTALL) -D -m755 $(xcblib) $(DESTDIR)/$(PREFIX)/$(LIBDIR)/$(xcblib)
 endif
-	$(INSTALL) -D -m644 radeontop.1 $(DESTDIR)/$(PREFIX)/share/man/man1/radeontop.1
+	$(INSTALL) -D -m644 radeontop.1 $(DESTDIR)/$(PREFIX)/$(MANDIR)/man1/radeontop.1
 ifeq ($(nls), 1)
 	$(MAKE) -C translations install PREFIX=$(PREFIX)
 endif