aboutsummaryrefslogtreecommitdiffstats
path: root/maketargets
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-20 20:38:13 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-20 20:38:13 +0100
commitb2f44b72c61ae144e8251cc4cbf5096395b88494 (patch)
treeff6c21ab62a8a5e8e9f43c546a2c13cdae4dfc4d /maketargets
parent5e9406502a1e1cc3e928de2a98d2e242acd0f910 (diff)
Install target
Diffstat (limited to 'maketargets')
-rw-r--r--maketargets/install.mk17
1 files changed, 17 insertions, 0 deletions
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 <maxxe@rpblc.net>
+# 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