qclib/0002-introduce-MANDIR-in-Makefile.patch

36 lines
1.3 KiB
Diff
Raw Normal View History

2020-09-23 10:27:40 +00:00
From 88747097f3f6d2512811a7f9045f935e60b3cd44 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
Date: Wed, 23 Sep 2020 12:14:22 +0200
Subject: [PATCH 2/2] introduce MANDIR in Makefile
---
Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 0e8bf31..a3ca5bd 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,7 @@ CFILES = query_capacity.c query_capacity_data.c query_capacity_sysinfo.c \
OBJECTS = $(patsubst %.c,%.o,$(CFILES))
.SUFFIXES: .o .c
DOCDIR ?= /usr/share/doc/packages/
+MANDIR ?= /usr/share/
ifneq ("${V}","1")
MAKEFLAGS += --quiet
@@ -126,8 +127,8 @@ install: libqc.a libqc.so.$(VERSION)
ln -sr $(DESTDIR)/usr/lib64/libqc.so.$(VERSION) $(DESTDIR)/usr/lib64/libqc.so
install -Dm 755 zname $(DESTDIR)/usr/bin/zname
install -Dm 755 zhypinfo $(DESTDIR)/usr/bin/zhypinfo
- install -Dm 644 zname.8 $(DESTDIR)/usr/share/man8/zname.8
- install -Dm 644 zhypinfo.8 $(DESTDIR)/usr/share/man8/zhypinfo.8
+ install -Dm 644 zname.8 $(DESTDIR)/$(MANDIR)/man8/zname.8
+ install -Dm 644 zhypinfo.8 $(DESTDIR)/$(MANDIR)/man8/zhypinfo.8
install -Dm 644 query_capacity.h $(DESTDIR)/usr/include/query_capacity.h
install -Dm 644 README $(DESTDIR)/$(DOCDIR)/qclib/README
install -Dm 644 LICENSE $(DESTDIR)/$(DOCDIR)/qclib/LICENSE
--
2.26.2