aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-09-17 14:25:13 +0700
committerShulhan <ms@kilabit.info>2022-09-17 17:59:21 +0700
commitb2a4fb1351628323d9a16c74fc0771a7c451d89e (patch)
tree7b67b7f8a496dd65ea790b7c9dd4dbd82182311d /Makefile
downloadbin.sh-b2a4fb1351628323d9a16c74fc0771a7c451d89e.tar.xz
bin.sh: a collection of shell scripts
In this first commit we have tmux-session.sh, a script to open tmux session based on name and configuration in ~/.tmux.session.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4a33a63
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+## SPDX-FileCopyrightText: 2022 M. Shulhan <ms@kilabit.info>
+## SPDX-License-Identifier: GPL-3.0-or-later
+
+.PHONY: install uninstall
+
+install:
+ install -d $(DESTDIR)usr/bin
+ install bin/tmux-session.sh $(DESTDIR)usr/bin/
+
+ install -d $(DESTDIR)etc/bash_completion.d
+ install --mode=0644 etc/bash_completion.d/tmux-session \
+ $(DESTDIR)/etc/bash_completion.d/
+
+uninstall:
+ rm -f $(DESTDIR)etc/bash_completion.d/tmux-session
+ rm -f $(DESTDIR)bin/tmux-session.sh