From b2f44b72c61ae144e8251cc4cbf5096395b88494 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Wed, 20 Dec 2023 20:38:13 +0100 Subject: Install target --- maketargets/install.mk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 maketargets/install.mk (limited to 'maketargets') diff --git a/maketargets/install.mk b/maketargets/install.mk new file mode 100644 index 0000000..ac0c2f4 --- /dev/null +++ b/maketargets/install.mk @@ -0,0 +1,17 @@ +# SPDX-FileCopyrightText: 2023 Markus Uhlin +# SPDX-License-Identifier: ISC + +# Don't provide a default value for DESTDIR. It should be empty. +DESTDIR ?= + +BINDIR = $(DESTDIR)$(PREFIX)/bin + +install: + install -d $(BINDIR) + install -m 0755 fics $(BINDIR) + install -m 0755 fics_addplayer $(BINDIR) + install -m 0755 makerank $(BINDIR) + install -d $(DESTDIR)$(FICS_HOME)/data + install -d $(DESTDIR)$(FICS_HOME)/data/admin + $(ROOT)scripts/i-data-admin.sh $(ROOT)data/admin \ + $(DESTDIR)$(FICS_HOME)/data/admin -- cgit v1.2.3