aboutsummaryrefslogtreecommitdiffstats
path: root/maketargets/install.mk
diff options
context:
space:
mode:
Diffstat (limited to 'maketargets/install.mk')
-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