From 70ff056475fb8937183354b8dd51c36f3e1029d4 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Fri, 15 Mar 2024 23:28:10 +0100 Subject: Added new target 'install-manpages' --- maketargets/install.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/maketargets/install.mk b/maketargets/install.mk index c7c2678..c0cc14a 100644 --- a/maketargets/install.mk +++ b/maketargets/install.mk @@ -1,10 +1,11 @@ -# SPDX-FileCopyrightText: 2023 Markus Uhlin +# SPDX-FileCopyrightText: 2023-2024 Markus Uhlin # SPDX-License-Identifier: ISC # Don't provide a default value for DESTDIR. It should be empty. DESTDIR ?= BINDIR = $(DESTDIR)$(PREFIX)/bin +MANDIR = $(DESTDIR)/usr/local/man/man1 install-init: install -d $(BINDIR) @@ -45,6 +46,12 @@ install-init: install -d $(DESTDIR)$(FICS_HOME)/games/journal install -d $(DESTDIR)$(FICS_HOME)/players +install-manpages: + install -d $(MANDIR) + install -m 0444 $(ROOT)manpages/fics.1 $(MANDIR) + install -m 0444 $(ROOT)manpages/fics_addplayer.1 $(MANDIR) + install -m 0444 $(ROOT)manpages/makerank.1 $(MANDIR) + install: install-init $(ROOT)scripts/i-data-admin.sh $(ROOT)data/admin \ $(DESTDIR)$(FICS_HOME)/data/admin -- cgit v1.2.3