man.patch 944 B

123456789101112131415161718192021222324252627282930313233
  1. From dfbff6274ce25814a4357a8a788c404425cecb69 Mon Sep 17 00:00:00 2001
  2. From: orbea <orbea@fredslev.dk>
  3. Date: Sat, 1 Dec 2018 07:43:12 -0800
  4. Subject: [PATCH] Makefile: Add MANDIR.
  5. Not all Linux distros install manpages to $(PREFIX)/share/man.
  6. For example Slackware installs manpages to /usr/man/.
  7. ---
  8. Makefile | 3 ++-
  9. 1 file changed, 2 insertions(+), 1 deletion(-)
  10. diff --git a/Makefile b/Makefile
  11. index 6010bc9..4cb7093 100644
  12. --- a/Makefile
  13. +++ b/Makefile
  14. @@ -13,6 +13,7 @@
  15. PREFIX ?= /usr
  16. INSTALL ?= install
  17. LIBDIR ?= lib
  18. +MANDIR ?= share/man
  19. nls ?= 1
  20. xcb ?= 1
  21. @@ -103,7 +104,7 @@ install: all
  22. ifeq ($(xcb), 1)
  23. $(INSTALL) -D -m755 $(xcblib) $(DESTDIR)/$(PREFIX)/$(LIBDIR)/$(xcblib)
  24. endif
  25. - $(INSTALL) -D -m644 radeontop.1 $(DESTDIR)/$(PREFIX)/share/man/man1/radeontop.1
  26. + $(INSTALL) -D -m644 radeontop.1 $(DESTDIR)/$(PREFIX)/$(MANDIR)/man1/radeontop.1
  27. ifeq ($(nls), 1)
  28. $(MAKE) -C translations install PREFIX=$(PREFIX)
  29. endif